Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.001389/0.001389, allocations: 110.5 kB / 16.41 MB, free: 6.508 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.001372/0.001372, allocations: 181.2 kB / 17.34 MB, free: 5.738 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.476/1.476, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7815/0.7815, allocations: 97.65 MB / 388.9 MB, free: 1.445 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002452/0.002452, allocations: 82.14 kB / 0.5268 GB, free: 38.41 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1027, allocations: 69.24 MB / 0.5944 GB, free: 500 kB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.1703/0.273, allocations: 145.7 MB / 0.7367 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.004687/0.2777, allocations: 3.338 MB / 0.74 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004027/0.2781, allocations: 15.94 kB / 0.74 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006949/0.2788, allocations: 210.5 kB / 0.7402 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001215/0.28, allocations: 0.4971 MB / 0.7407 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.2811, allocations: 398.7 kB / 0.7411 GB, free: 9.719 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.000918/0.282, allocations: 0.7156 MB / 0.7418 GB, free: 9 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/0.2822, allocations: 72.89 kB / 0.7418 GB, free: 8.926 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006687/0.2828, allocations: 362.5 kB / 0.7422 GB, free: 8.57 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004686/0.2833, allocations: 354.6 kB / 0.7425 GB, free: 8.223 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.638e-05/0.2834, allocations: 32 kB / 0.7426 GB, free: 8.191 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00118/0.2845, allocations: 0.5888 MB / 0.7431 GB, free: 7.602 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.2847, allocations: 87.56 kB / 0.7432 GB, free: 7.516 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002438/0.2849, allocations: 234.8 kB / 0.7434 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.2861, allocations: 0.7432 MB / 0.7442 GB, free: 6.539 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2861, allocations: 0 / 0.7442 GB, free: 6.539 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2861, allocations: 0 / 0.7442 GB, free: 6.539 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.385e-05/0.2861, allocations: 0 / 0.7442 GB, free: 6.539 MB / 0.5919 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.001635/0.2877, allocations: 0.8535 MB / 0.745 GB, free: 5.633 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.2878, allocations: 12.03 kB / 0.745 GB, free: 5.621 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.2879, allocations: 52.61 kB / 0.7451 GB, free: 5.57 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006966/0.2886, allocations: 434.2 kB / 0.7455 GB, free: 5.105 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.2886, allocations: 29.38 kB / 0.7455 GB, free: 5.078 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.903e-05/0.2887, allocations: 28.38 kB / 0.7455 GB, free: 5.051 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007726/0.2894, allocations: 428.1 kB / 0.7459 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.2894, allocations: 0 / 0.7459 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.719e-05/0.2895, allocations: 12 kB / 0.7459 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.2895, allocations: 8 kB / 0.746 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007503/0.2902, allocations: 374.3 kB / 0.7463 GB, free: 4.227 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002354/0.2926, allocations: 1.853 MB / 0.7481 GB, free: 2.199 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008224/0.2934, allocations: 313.3 kB / 0.7484 GB, free: 1.887 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003436/0.2938, allocations: 155.6 kB / 0.7486 GB, free: 1.734 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2409/0.5347, allocations: 1.525 MB / 0.7501 GB, free: 157.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005378/0.5352, allocations: 201.5 kB / 0.7502 GB, free: 157.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=37): time 2.575e-06/0.5352, allocations: 1.5 kB / 0.7502 GB, free: 157.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=37): time 0.001393/0.5366, allocations: 0.6059 MB / 0.7508 GB, free: 157.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.756e-05/0.5367, allocations: 62.08 kB / 0.7509 GB, free: 157.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003717/0.537, allocations: 359.8 kB / 0.7512 GB, free: 157.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.5371, allocations: 34.73 kB / 0.7513 GB, free: 157.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.5372, allocations: 221.6 kB / 0.7515 GB, free: 157.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.389e-05/0.5373, allocations: 135.7 kB / 0.7516 GB, free: 157.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.5374, allocations: 67.83 kB / 0.7517 GB, free: 157.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.76e-05/0.5374, allocations: 355.6 kB / 0.752 GB, free: 156.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002668/0.5377, allocations: 120.7 kB / 0.7521 GB, free: 156.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.538, allocations: 185.7 kB / 0.7523 GB, free: 156.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005524/0.5385, allocations: 328.4 kB / 0.7526 GB, free: 156.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5385, allocations: 2 kB / 0.7526 GB, free: 156.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008433/0.5394, allocations: 481.4 kB / 0.7531 GB, free: 156.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.052e-05/0.5394, allocations: 37.05 kB / 0.7531 GB, free: 156.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.5394, allocations: 4.281 kB / 0.7531 GB, free: 156.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002139/0.5396, allocations: 37.8 kB / 0.7532 GB, free: 156.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002913/0.5399, allocations: 75.67 kB / 0.7532 GB, free: 156.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009932/0.5409, allocations: 1.534 MB / 0.7547 GB, free: 155.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.5412, allocations: 42.95 kB / 0.7548 GB, free: 155.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.651e-05/0.5412, allocations: 18.34 kB / 0.7548 GB, free: 155.1 MB / 0.5919 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.0001651/0.5414, allocations: 161.8 kB / 0.7549 GB, free: 155 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.345e-05/0.5415, allocations: 48 kB / 0.755 GB, free: 155 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001055/0.5425, allocations: 0.5147 MB / 0.7555 GB, free: 154.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.5425, allocations: 7.797 kB / 0.7555 GB, free: 154.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.5425, allocations: 0.9375 kB / 0.7555 GB, free: 154.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.5425, allocations: 1.781 kB / 0.7555 GB, free: 154.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.544, allocations: 0.965 MB / 0.7564 GB, free: 154.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.544, allocations: 4.188 kB / 0.7564 GB, free: 154.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002561/0.5443, allocations: 61.98 kB / 0.7565 GB, free: 154.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001558/0.5444, allocations: 42.95 kB / 0.7565 GB, free: 154.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.975e-05/0.5445, allocations: 14.05 kB / 0.7566 GB, free: 154.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009306/0.5454, allocations: 1.532 MB / 0.7581 GB, free: 153.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5454, allocations: 4.844 kB / 0.7581 GB, free: 153.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.5465, allocations: 0.6527 MB / 0.7587 GB, free: 153 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.998e-05/0.5466, allocations: 122.8 kB / 0.7588 GB, free: 152.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.533e-05/0.5467, allocations: 11.98 kB / 0.7588 GB, free: 152.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/0.5469, allocations: 15.36 kB / 0.7588 GB, free: 152.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.547, allocations: 39.75 kB / 0.7589 GB, free: 152.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.791e-05/0.547, allocations: 10.22 kB / 0.7589 GB, free: 152.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002581/0.5473, allocations: 270.6 kB / 0.7591 GB, free: 152.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.5473, allocations: 0 / 0.7591 GB, free: 152.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005648/0.5479, allocations: 169.3 kB / 0.7593 GB, free: 152.7 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.0003595/0.5482, allocations: 245.3 kB / 0.7595 GB, free: 152.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009307/0.5491, allocations: 485 kB / 0.76 GB, free: 152.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.5491, allocations: 0 / 0.76 GB, free: 152.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004583/0.5496, allocations: 282 kB / 0.7603 GB, free: 152.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008174/0.5504, allocations: 143.8 kB / 0.7604 GB, free: 152.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.5521, allocations: 0.845 MB / 0.7612 GB, free: 151.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.5524, allocations: 0.8248 MB / 0.762 GB, free: 151.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002967/0.5526, allocations: 89.2 kB / 0.7621 GB, free: 151.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.5528, allocations: 45.39 kB / 0.7622 GB, free: 151.2 MB / 0.5919 GB Notification: Performance of SimCode: time 5.01e-07/0.5528, allocations: 0 / 0.7622 GB, free: 151.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.01478/0.5675, allocations: 8.263 MB / 0.7702 GB, free: 147.1 MB / 0.5919 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches