Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.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.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005207/0.005207, allocations: 98.77 kB / 15.73 MB, free: 6.047 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.001179/0.001179, allocations: 193.6 kB / 16.67 MB, free: 5.969 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.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6561/0.6561, allocations: 91.19 MB / 381.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 71.89 kB / 0.5168 GB, free: 9.02 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1217, allocations: 67.7 MB / 0.583 GB, free: 5.238 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.4011/0.5228, allocations: 145.3 MB / 0.7249 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003996/0.5268, allocations: 3.336 MB / 0.7281 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003622/0.5272, allocations: 15.94 kB / 0.7281 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006312/0.5279, allocations: 202.6 kB / 0.7283 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001094/0.529, allocations: 0.4932 MB / 0.7288 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009057/0.53, allocations: 394.6 kB / 0.7292 GB, free: 2.387 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007672/0.5307, allocations: 0.7194 MB / 0.7299 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.531, allocations: 125.9 kB / 0.73 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006505/0.5316, allocations: 354.5 kB / 0.7303 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004412/0.5321, allocations: 358.6 kB / 0.7307 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.715e-05/0.5321, allocations: 36 kB / 0.7307 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.5332, allocations: 0.577 MB / 0.7313 GB, free: 244 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.5334, allocations: 91.61 kB / 0.7314 GB, free: 152 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002464/0.5336, allocations: 242.7 kB / 0.7316 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001029/0.5346, allocations: 0.7321 MB / 0.7323 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.5347, allocations: 0 / 0.7323 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.372e-06/0.5347, allocations: 0 / 0.7323 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.211e-05/0.5347, allocations: 0 / 0.7323 GB, free: 15.18 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001412/0.5361, allocations: 0.8436 MB / 0.7331 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.5361, allocations: 12.03 kB / 0.7331 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.5363, allocations: 64.55 kB / 0.7332 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005857/0.5369, allocations: 426.3 kB / 0.7336 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.5369, allocations: 33.36 kB / 0.7336 GB, free: 13.72 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.764e-05/0.537, allocations: 28.38 kB / 0.7337 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007335/0.5377, allocations: 424.3 kB / 0.7341 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.5377, allocations: 4 kB / 0.7341 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.092e-05/0.5378, allocations: 12 kB / 0.7341 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.5378, allocations: 8 kB / 0.7341 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006778/0.5385, allocations: 370.4 kB / 0.7345 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/0.5404, allocations: 1.845 MB / 0.7363 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007581/0.5412, allocations: 344.6 kB / 0.7366 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000317/0.5415, allocations: 173.6 kB / 0.7368 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002097/0.5436, allocations: 1.527 MB / 0.7382 GB, free: 8.59 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004309/0.5441, allocations: 203.3 kB / 0.7384 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=37): time 1.893e-06/0.5441, allocations: 3.938 kB / 0.7384 GB, free: 8.375 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37): time 0.001419/0.5455, allocations: 0.6077 MB / 0.739 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.5456, allocations: 55.41 kB / 0.7391 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005493/0.5461, allocations: 365.6 kB / 0.7394 GB, free: 7.305 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.396e-05/0.5462, allocations: 41.7 kB / 0.7395 GB, free: 7.258 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.5464, allocations: 220.5 kB / 0.7397 GB, free: 7.039 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.5465, allocations: 134.8 kB / 0.7398 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000204/0.5467, allocations: 74.06 kB / 0.7399 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002802/0.547, allocations: 354.7 kB / 0.7402 GB, free: 6.469 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003752/0.5474, allocations: 120.7 kB / 0.7403 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004051/0.5478, allocations: 179.2 kB / 0.7405 GB, free: 6.16 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006932/0.5485, allocations: 331.2 kB / 0.7408 GB, free: 5.812 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.5485, allocations: 0 / 0.7408 GB, free: 5.812 MB / 0.5762 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008765/0.5494, allocations: 472.8 kB / 0.7413 GB, free: 5.336 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/0.5494, allocations: 37.86 kB / 0.7413 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.5494, allocations: 4 kB / 0.7413 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002333/0.5497, allocations: 41.77 kB / 0.7414 GB, free: 5.246 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002842/0.55, allocations: 75.89 kB / 0.7414 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/0.5514, allocations: 1.535 MB / 0.7429 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002664/0.5517, allocations: 39.75 kB / 0.743 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.838e-05/0.5518, allocations: 19.98 kB / 0.743 GB, free: 3.434 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (42): * Single equations (assignments): 40 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003167/0.5521, allocations: 166.4 kB / 0.7431 GB, free: 3.262 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.541e-05/0.5522, allocations: 43.72 kB / 0.7432 GB, free: 3.219 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.5534, allocations: 0.5169 MB / 0.7437 GB, free: 2.699 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.5535, allocations: 11.94 kB / 0.7437 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.5535, allocations: 0 / 0.7437 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.5535, allocations: 0 / 0.7437 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001576/0.5551, allocations: 0.9777 MB / 0.7447 GB, free: 1.645 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.5551, allocations: 0 / 0.7447 GB, free: 1.645 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002244/0.5553, allocations: 59.97 kB / 0.7447 GB, free: 1.586 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001527/0.5555, allocations: 48.81 kB / 0.7448 GB, free: 1.535 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.265e-05/0.5555, allocations: 12 kB / 0.7448 GB, free: 1.523 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/0.5569, allocations: 1.529 MB / 0.7463 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.5569, allocations: 3.984 kB / 0.7463 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.5581, allocations: 0.6556 MB / 0.7469 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.5582, allocations: 128.7 kB / 0.747 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.896e-05/0.5583, allocations: 11.94 kB / 0.747 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.5585, allocations: 19.92 kB / 0.7471 GB, free: 15 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.5586, allocations: 43.95 kB / 0.7471 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.742e-05/0.5587, allocations: 8 kB / 0.7471 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000278/0.5589, allocations: 271.1 kB / 0.7474 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.01e-07/0.5589, allocations: 0 / 0.7474 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005677/0.5595, allocations: 159.7 kB / 0.7475 GB, free: 14.53 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (flowResistance.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 (34): * Single equations (assignments): 31 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004134/0.5599, allocations: 246.6 kB / 0.7478 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001053/0.561, allocations: 0.49 MB / 0.7482 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.561, allocations: 4.312 kB / 0.7482 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005057/0.5615, allocations: 302.3 kB / 0.7485 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007572/0.5623, allocations: 151 kB / 0.7487 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.5641, allocations: 0.8383 MB / 0.7495 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.5646, allocations: 0.8196 MB / 0.7503 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002927/0.5649, allocations: 93.86 kB / 0.7504 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.565, allocations: 47.42 kB / 0.7504 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of SimCode: time 5.91e-07/0.565, allocations: 0 / 0.7504 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of Templates: time 0.01491/0.5799, allocations: 8.169 MB / 0.7584 GB, free: 3.371 MB / 0.5919 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches