Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 106.7 kB / 16.41 MB, free: 6.465 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.001064/0.001064, allocations: 187 kB / 17.34 MB, free: 5.723 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7254/0.7254, allocations: 91.19 MB / 382.4 MB, free: 7.484 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 83.86 kB / 0.5175 GB, free: 4.098 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3678/0.3695, allocations: 67.68 MB / 0.5836 GB, free: 13.94 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1618/0.5314, allocations: 143.8 MB / 0.724 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004499/0.5359, allocations: 3.583 MB / 0.7275 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000392/0.5363, allocations: 11.94 kB / 0.7275 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006944/0.537, allocations: 174.8 kB / 0.7277 GB, free: 10.01 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001061/0.5381, allocations: 373.8 kB / 0.7281 GB, free: 9.641 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008382/0.539, allocations: 290.9 kB / 0.7283 GB, free: 9.355 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007085/0.5397, allocations: 0.4939 MB / 0.7288 GB, free: 8.859 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002055/0.5399, allocations: 89.5 kB / 0.7289 GB, free: 8.77 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005534/0.5405, allocations: 246.9 kB / 0.7291 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003623/0.5409, allocations: 231 kB / 0.7294 GB, free: 8.301 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.473e-05/0.541, allocations: 28 kB / 0.7294 GB, free: 8.273 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001004/0.542, allocations: 495 kB / 0.7299 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.5421, allocations: 59.77 kB / 0.7299 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001922/0.5423, allocations: 178.9 kB / 0.7301 GB, free: 7.555 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0009999/0.5433, allocations: 0.5392 MB / 0.7306 GB, free: 7.016 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.5433, allocations: 0 / 0.7306 GB, free: 7.016 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.272e-06/0.5433, allocations: 4 kB / 0.7306 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.243e-05/0.5433, allocations: 0 / 0.7306 GB, free: 7.012 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001495/0.5448, allocations: 0.7305 MB / 0.7313 GB, free: 6.227 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.5449, allocations: 8.031 kB / 0.7313 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.572e-05/0.545, allocations: 44.45 kB / 0.7314 GB, free: 6.176 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006715/0.5457, allocations: 379.6 kB / 0.7317 GB, free: 5.762 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.5457, allocations: 20.56 kB / 0.7318 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.5457, allocations: 24 kB / 0.7318 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000587/0.5463, allocations: 269.8 kB / 0.732 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.5464, allocations: 0 / 0.732 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.5464, allocations: 8 kB / 0.7321 GB, free: 5.434 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.5464, allocations: 8 kB / 0.7321 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005527/0.547, allocations: 217.6 kB / 0.7323 GB, free: 5.215 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.549, allocations: 1.097 MB / 0.7333 GB, free: 4 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005786/0.5496, allocations: 227.4 kB / 0.7336 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002571/0.5498, allocations: 116.8 kB / 0.7337 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001255/0.5511, allocations: 0.9722 MB / 0.7346 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003826/0.5515, allocations: 147.3 kB / 0.7348 GB, free: 2.387 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=23): time 2.645e-06/0.5515, allocations: 0 / 0.7348 GB, free: 2.387 MB / 0.5762 GB Notification: Performance of matching and sorting (n=23): time 0.001298/0.5528, allocations: 466.8 kB / 0.7352 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.567e-05/0.5529, allocations: 55.41 kB / 0.7353 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004042/0.5533, allocations: 341.6 kB / 0.7356 GB, free: 1.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.5533, allocations: 33.7 kB / 0.7356 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.5535, allocations: 196.2 kB / 0.7358 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.779e-05/0.5536, allocations: 82.81 kB / 0.7359 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.5537, allocations: 49.94 kB / 0.7359 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001737/0.5539, allocations: 346.8 kB / 0.7363 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.5541, allocations: 76.19 kB / 0.7363 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.5543, allocations: 115 kB / 0.7364 GB, free: 0.5859 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004369/0.5548, allocations: 214.7 kB / 0.7366 GB, free: 372 kB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.5548, allocations: 0 / 0.7366 GB, free: 372 kB / 0.5762 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006943/0.5555, allocations: 349.1 kB / 0.737 GB, free: 8 kB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.3207/0.8763, allocations: 32.02 kB / 0.737 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.8763, allocations: 1.156 kB / 0.737 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003507/0.8767, allocations: 43.12 kB / 0.7371 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/0.877, allocations: 41.28 kB / 0.7371 GB, free: 155 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001116/0.8781, allocations: 1.523 MB / 0.7386 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002586/0.8784, allocations: 31.25 kB / 0.7386 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.8784, allocations: 12.16 kB / 0.7386 GB, free: 153.7 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (25): * Single equations (assignments): 23 * 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.000164/0.8786, allocations: 159.9 kB / 0.7388 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.132e-05/0.8786, allocations: 35.33 kB / 0.7388 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008143/0.8795, allocations: 336.4 kB / 0.7391 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.8795, allocations: 2.906 kB / 0.7391 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.8795, allocations: 0.5312 kB / 0.7391 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.8795, allocations: 3.422 kB / 0.7391 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001152/0.8807, allocations: 0.7476 MB / 0.7399 GB, free: 153 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.8807, allocations: 4.844 kB / 0.7399 GB, free: 153 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.8808, allocations: 38.59 kB / 0.7399 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000143/0.881, allocations: 42.72 kB / 0.7399 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.176e-05/0.881, allocations: 8.797 kB / 0.74 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009099/0.8819, allocations: 1.527 MB / 0.7414 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.882, allocations: 1 kB / 0.7414 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000877/0.8828, allocations: 0.4986 MB / 0.7419 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.438e-05/0.8829, allocations: 119.6 kB / 0.742 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.495e-05/0.883, allocations: 8.438 kB / 0.7421 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.8832, allocations: 13.47 kB / 0.7421 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.435e-05/0.8833, allocations: 25.11 kB / 0.7421 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.8833, allocations: 7.938 kB / 0.7421 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002514/0.8835, allocations: 238.8 kB / 0.7423 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8836, allocations: 3.375 kB / 0.7423 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000511/0.8841, allocations: 125.8 kB / 0.7424 GB, free: 150.9 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.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 (22): * Single equations (assignments): 19 * 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.0003513/0.8844, allocations: 211.4 kB / 0.7427 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007585/0.8852, allocations: 394 kB / 0.743 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.8852, allocations: 3.75 kB / 0.743 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003874/0.8856, allocations: 242.4 kB / 0.7433 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006512/0.8863, allocations: 113.8 kB / 0.7434 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.8876, allocations: 0.7041 MB / 0.7441 GB, free: 150 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.8879, allocations: 0.7826 MB / 0.7448 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.888, allocations: 36.61 kB / 0.7449 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of SimCode: time 2.5e-07/0.888, allocations: 0 / 0.7449 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.01001/0.898, allocations: 7.021 MB / 0.7517 GB, free: 145.3 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches