Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008247/0.008247, allocations: 169.9 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6437/0.6437, allocations: 91.32 MB / 382.8 MB, free: 9.656 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003658/0.0003659, allocations: 10.72 kB / 462.7 MB, free: 23.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1127, allocations: 69.2 MB / 0.5195 GB, free: 9.105 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4034/0.5161, allocations: 169.4 MB / 0.6849 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01397/0.5301, allocations: 11.07 MB / 0.6957 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001413/0.5315, allocations: 51.62 kB / 0.6958 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001903/0.5335, allocations: 0.7074 MB / 0.6965 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00397/0.5375, allocations: 1.547 MB / 0.698 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002679/0.5402, allocations: 0.9699 MB / 0.6989 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003729/0.5439, allocations: 3.349 MB / 0.7022 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007429/0.5447, allocations: 446.1 kB / 0.7026 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001635/0.5463, allocations: 0.8944 MB / 0.7035 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001888/0.5482, allocations: 1.261 MB / 0.7047 GB, free: 9.711 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002456/0.5485, allocations: 67.94 kB / 0.7048 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003969/0.5525, allocations: 1.856 MB / 0.7066 GB, free: 7.785 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003759/0.5528, allocations: 266.8 kB / 0.7069 GB, free: 7.523 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0009766/0.5538, allocations: 0.736 MB / 0.7076 GB, free: 6.777 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00375/0.5576, allocations: 2.399 MB / 0.7099 GB, free: 4.371 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.5576, allocations: 7.938 kB / 0.7099 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.453e-06/0.5576, allocations: 0 / 0.7099 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.643e-05/0.5577, allocations: 0 / 0.7099 GB, free: 4.363 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.003901/0.5616, allocations: 1.761 MB / 0.7117 GB, free: 2.539 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.5616, allocations: 8.031 kB / 0.7117 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003753/0.562, allocations: 167 kB / 0.7118 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001485/0.5635, allocations: 0.9084 MB / 0.7127 GB, free: 1.418 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.279e-05/0.5636, allocations: 90.78 kB / 0.7128 GB, free: 1.328 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002076/0.5638, allocations: 124.4 kB / 0.7129 GB, free: 1.207 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00272/0.5665, allocations: 1.54 MB / 0.7144 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.5666, allocations: 4 kB / 0.7144 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.5667, allocations: 48 kB / 0.7145 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.528e-05/0.5667, allocations: 32 kB / 0.7145 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00287/0.5696, allocations: 1.688 MB / 0.7162 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008099/0.5777, allocations: 6.248 MB / 0.7223 GB, free: 6.984 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002608/0.5804, allocations: 1.315 MB / 0.7235 GB, free: 5.66 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001274/0.5817, allocations: 0.7075 MB / 0.7242 GB, free: 4.953 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005437/0.5871, allocations: 4.025 MB / 0.7282 GB, free: 480 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001403/0.5886, allocations: 0.755 MB / 0.7289 GB, free: 15.7 MB / 0.545 GB Notification: Performance of pre-optimization done (n=128): time 3.697e-06/0.5886, allocations: 3.938 kB / 0.7289 GB, free: 15.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=129): time 0.00821/0.5968, allocations: 4.024 MB / 0.7328 GB, free: 11.58 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.859e-05/0.5969, allocations: 68.72 kB / 0.7329 GB, free: 11.5 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009162/0.5978, allocations: 0.7127 MB / 0.7336 GB, free: 10.78 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001186/0.5979, allocations: 45.7 kB / 0.7336 GB, free: 10.73 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004211/0.5984, allocations: 0.5239 MB / 0.7342 GB, free: 10.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004443/0.5988, allocations: 437.6 kB / 0.7346 GB, free: 9.766 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/0.599, allocations: 89.67 kB / 0.7347 GB, free: 9.672 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.5991, allocations: 345.9 kB / 0.735 GB, free: 9.328 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/0.6002, allocations: 0.5296 MB / 0.7355 GB, free: 8.801 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/0.6014, allocations: 0.6329 MB / 0.7361 GB, free: 8.148 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002303/0.6037, allocations: 1.267 MB / 0.7374 GB, free: 6.855 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.6037, allocations: 0 / 0.7374 GB, free: 6.855 MB / 0.545 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003238/0.6069, allocations: 1.615 MB / 0.7389 GB, free: 5.223 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.073e-05/0.607, allocations: 29.7 kB / 0.739 GB, free: 5.188 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.607, allocations: 4 kB / 0.739 GB, free: 5.184 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005443/0.6076, allocations: 162.5 kB / 0.7391 GB, free: 5.023 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.6086, allocations: 247.7 kB / 0.7394 GB, free: 4.781 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004124/0.6127, allocations: 2.533 MB / 0.7418 GB, free: 2.113 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009303/0.6137, allocations: 95.81 kB / 0.7419 GB, free: 2.02 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001717/0.6139, allocations: 55.97 kB / 0.742 GB, free: 1.965 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000595/0.6145, allocations: 285.6 kB / 0.7422 GB, free: 1.676 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002545/0.6147, allocations: 122.5 kB / 0.7424 GB, free: 1.555 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004715/0.6195, allocations: 2.34 MB / 0.7447 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.627e-05/0.6195, allocations: 16 kB / 0.7447 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.6195, allocations: 4 kB / 0.7447 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.912e-05/0.6195, allocations: 7.969 kB / 0.7447 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006164/0.6257, allocations: 3.45 MB / 0.748 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.6258, allocations: 0 / 0.748 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.6268, allocations: 271.9 kB / 0.7483 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004478/0.6273, allocations: 148.6 kB / 0.7484 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001183/0.6274, allocations: 43.98 kB / 0.7485 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002672/0.6301, allocations: 2.231 MB / 0.7507 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.6301, allocations: 0 / 0.7507 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004842/0.635, allocations: 2.618 MB / 0.7532 GB, free: 6.203 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003219/0.6353, allocations: 199.4 kB / 0.7534 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002112/0.6355, allocations: 31.94 kB / 0.7534 GB, free: 5.957 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008122/0.6364, allocations: 99.83 kB / 0.7535 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000246/0.6366, allocations: 117.1 kB / 0.7537 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/0.6367, allocations: 51.98 kB / 0.7537 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0006764/0.6374, allocations: 0.5194 MB / 0.7542 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6374, allocations: 0 / 0.7542 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001514/0.6389, allocations: 0.5078 MB / 0.7547 GB, free: 4.656 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009837/0.6399, allocations: 0.5786 MB / 0.7553 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003211/0.6432, allocations: 1.649 MB / 0.7569 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.6432, allocations: 0 / 0.7569 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001834/0.645, allocations: 1.01 MB / 0.7579 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002219/0.6473, allocations: 377.8 kB / 0.7582 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005342/0.6526, allocations: 3.292 MB / 0.7614 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008233/0.6535, allocations: 1.19 MB / 0.7626 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001235/0.6547, allocations: 356.9 kB / 0.7629 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004348/0.6552, allocations: 143.4 kB / 0.7631 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of SimCode: time 9.42e-07/0.6552, allocations: 0 / 0.7631 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of Templates: time 0.04251/0.6977, allocations: 25.12 MB / 0.7876 GB, free: 3.105 MB / 0.5919 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches