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.001711/0.001711, allocations: 106.8 kB / 15.99 MB, free: 6.352 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.001928/0.001928, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.451/1.451, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7456/0.7456, allocations: 93.7 MB / 384.4 MB, free: 5.449 MB / 302.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002284/0.002284, allocations: 79.88 kB / 463.5 MB, free: 6.492 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1377, allocations: 68.27 MB / 0.5194 GB, free: 2.145 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.3774/0.5151, allocations: 143.6 MB / 0.6596 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.004427/0.5196, allocations: 3.351 MB / 0.6629 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003894/0.52, allocations: 20.44 kB / 0.6629 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0006465/0.5207, allocations: 191 kB / 0.6631 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0009888/0.5217, allocations: 457.6 kB / 0.6635 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008719/0.5226, allocations: 367 kB / 0.6638 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0007252/0.5233, allocations: 0.7156 MB / 0.6645 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002363/0.5236, allocations: 122.2 kB / 0.6647 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005842/0.5242, allocations: 359.1 kB / 0.665 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004191/0.5246, allocations: 354.6 kB / 0.6653 GB, free: 10 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.081e-05/0.5247, allocations: 32 kB / 0.6654 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009919/0.5257, allocations: 0.5887 MB / 0.6659 GB, free: 9.379 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.5258, allocations: 95.55 kB / 0.666 GB, free: 9.285 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002151/0.526, allocations: 230.8 kB / 0.6663 GB, free: 9.059 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0006411/0.5266, allocations: 0.5288 MB / 0.6668 GB, free: 8.531 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.5267, allocations: 0 / 0.6668 GB, free: 8.531 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5267, allocations: 0 / 0.6668 GB, free: 8.531 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.673e-06/0.5267, allocations: 0 / 0.6668 GB, free: 8.531 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: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001436/0.5281, allocations: 0.8397 MB / 0.6676 GB, free: 7.637 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.5282, allocations: 8.031 kB / 0.6676 GB, free: 7.629 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.5283, allocations: 52.38 kB / 0.6677 GB, free: 7.578 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005355/0.5288, allocations: 406.9 kB / 0.668 GB, free: 7.145 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.5289, allocations: 28 kB / 0.6681 GB, free: 7.117 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.214e-05/0.5289, allocations: 36.38 kB / 0.6681 GB, free: 7.082 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007427/0.5297, allocations: 424.1 kB / 0.6685 GB, free: 6.645 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.5297, allocations: 0.875 kB / 0.6685 GB, free: 6.645 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.416e-05/0.5297, allocations: 16 kB / 0.6685 GB, free: 6.629 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.5298, allocations: 8 kB / 0.6685 GB, free: 6.621 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006861/0.5304, allocations: 370.3 kB / 0.6689 GB, free: 6.262 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002126/0.5326, allocations: 1.851 MB / 0.6707 GB, free: 4.238 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007629/0.5334, allocations: 337 kB / 0.671 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003262/0.5337, allocations: 169.9 kB / 0.6712 GB, free: 3.734 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001999/0.5357, allocations: 1.531 MB / 0.6727 GB, free: 1.992 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005187/0.5362, allocations: 208.4 kB / 0.6729 GB, free: 1.777 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=37): time 2.194e-06/0.5362, allocations: 4 kB / 0.6729 GB, free: 1.773 MB / 0.5137 GB Notification: Performance of matching and sorting (n=37): time 0.00142/0.5377, allocations: 0.6035 MB / 0.6735 GB, free: 1.141 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.272e-05/0.5377, allocations: 59.41 kB / 0.6735 GB, free: 1.07 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003955/0.5381, allocations: 361.7 kB / 0.6739 GB, free: 0.707 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.387e-05/0.5382, allocations: 29.7 kB / 0.6739 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.5384, allocations: 230 kB / 0.6741 GB, free: 452 kB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.5385, allocations: 122.3 kB / 0.6742 GB, free: 328 kB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.5386, allocations: 73.97 kB / 0.6743 GB, free: 244 kB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001766/0.5388, allocations: 358.7 kB / 0.6746 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.5391, allocations: 116.7 kB / 0.6748 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003332/0.5394, allocations: 182.6 kB / 0.6749 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006249/0.54, allocations: 331.2 kB / 0.6752 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.5401, allocations: 4 kB / 0.6752 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009286/0.541, allocations: 467.2 kB / 0.6757 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.945e-05/0.541, allocations: 33.86 kB / 0.6757 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.5411, allocations: 9.156 kB / 0.6757 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000216/0.5413, allocations: 44.77 kB / 0.6758 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/0.5416, allocations: 72.91 kB / 0.6758 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.543, allocations: 1.534 MB / 0.6773 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/0.5433, allocations: 43.64 kB / 0.6774 GB, free: 12.88 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.951e-05/0.5434, allocations: 16 kB / 0.6774 GB, free: 12.86 MB / 0.5294 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.0002003/0.5436, allocations: 163.7 kB / 0.6776 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.855e-05/0.5436, allocations: 41.59 kB / 0.6776 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001153/0.5448, allocations: 0.5232 MB / 0.6781 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.5448, allocations: 4 kB / 0.6781 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.5448, allocations: 0.75 kB / 0.6781 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.5448, allocations: 7.984 kB / 0.6781 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001599/0.5464, allocations: 0.9657 MB / 0.6791 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.5465, allocations: 3.938 kB / 0.6791 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002469/0.5467, allocations: 65.03 kB / 0.6791 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001535/0.5469, allocations: 40.81 kB / 0.6792 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.517e-05/0.5469, allocations: 15.98 kB / 0.6792 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.5483, allocations: 1.536 MB / 0.6807 GB, free: 9.285 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.5483, allocations: 0 / 0.6807 GB, free: 9.285 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.5495, allocations: 0.6454 MB / 0.6813 GB, free: 8.613 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.5496, allocations: 124.5 kB / 0.6814 GB, free: 8.473 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.674e-05/0.5497, allocations: 10.91 kB / 0.6814 GB, free: 8.465 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.5499, allocations: 27.92 kB / 0.6815 GB, free: 8.438 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.55, allocations: 39.89 kB / 0.6815 GB, free: 8.398 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.489e-05/0.5501, allocations: 16.73 kB / 0.6815 GB, free: 8.383 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003015/0.5504, allocations: 267.2 kB / 0.6818 GB, free: 8.121 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5504, allocations: 0 / 0.6818 GB, free: 8.121 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0005573/0.551, allocations: 159.8 kB / 0.6819 GB, free: 7.965 MB / 0.5294 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.0003943/0.5514, allocations: 245.5 kB / 0.6822 GB, free: 7.727 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001061/0.5524, allocations: 0.5027 MB / 0.6827 GB, free: 7.199 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.5524, allocations: 0 / 0.6827 GB, free: 7.199 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0005134/0.553, allocations: 298.4 kB / 0.6829 GB, free: 6.895 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007981/0.5538, allocations: 141.5 kB / 0.6831 GB, free: 6.777 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001819/0.5556, allocations: 1.029 MB / 0.6841 GB, free: 5.711 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004373/0.5561, allocations: 0.8118 MB / 0.6849 GB, free: 4.871 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.5562, allocations: 51.42 kB / 0.6849 GB, free: 4.824 MB / 0.5294 GB Notification: Performance of SimCode: time 4.31e-07/0.5562, allocations: 0 / 0.6849 GB, free: 4.824 MB / 0.5294 GB Notification: Performance of Templates: time 0.01282/0.569, allocations: 9.184 MB / 0.6939 GB, free: 11.82 MB / 0.545 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 -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