Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_OM_adaptions_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_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.008588/0.008589, allocations: 169.9 kB / 15.12 MB, free: 5.559 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.655/1.655, allocations: 205.4 MB / 221.3 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001013/0.001013, allocations: 90.84 kB / 269.6 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8121/0.8121, allocations: 90.59 MB / 408.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004393/0.0004398, allocations: 8 kB / 485.2 MB, free: 2.098 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4975/0.4979, allocations: 66.27 MB / 0.5386 GB, free: 45.5 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1624/0.6604, allocations: 121.9 MB / 0.6576 GB, free: 1.84 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.003961/0.6644, allocations: 2.981 MB / 0.6605 GB, free: 14.86 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002254/0.6647, allocations: 5.5 kB / 0.6605 GB, free: 14.85 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005687/0.6652, allocations: 147.3 kB / 0.6606 GB, free: 14.71 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007173/0.666, allocations: 334.9 kB / 0.661 GB, free: 14.38 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006055/0.6666, allocations: 207.5 kB / 0.6612 GB, free: 14.18 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003716/0.667, allocations: 283.3 kB / 0.6614 GB, free: 13.9 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.6671, allocations: 65.55 kB / 0.6615 GB, free: 13.84 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003769/0.6675, allocations: 163.4 kB / 0.6617 GB, free: 13.68 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.6678, allocations: 155.4 kB / 0.6618 GB, free: 13.53 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.972e-05/0.6678, allocations: 12 kB / 0.6618 GB, free: 13.52 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008253/0.6686, allocations: 463.4 kB / 0.6623 GB, free: 13.06 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 6.45e-05/0.6687, allocations: 43.77 kB / 0.6623 GB, free: 13.02 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 7.413e-05/0.6688, allocations: 73.58 kB / 0.6624 GB, free: 12.94 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004632/0.6693, allocations: 316 kB / 0.6627 GB, free: 12.64 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.6693, allocations: 0 / 0.6627 GB, free: 12.64 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6693, allocations: 0 / 0.6627 GB, free: 12.64 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.6693, allocations: 1.219 kB / 0.6627 GB, free: 12.64 MB / 490.7 MB 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.001192/0.6705, allocations: 0.6221 MB / 0.6633 GB, free: 11.97 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.6705, allocations: 12.03 kB / 0.6633 GB, free: 11.96 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.586e-05/0.6706, allocations: 27.62 kB / 0.6633 GB, free: 11.93 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.671, allocations: 257.7 kB / 0.6636 GB, free: 11.64 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.232e-05/0.671, allocations: 17.56 kB / 0.6636 GB, free: 11.62 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.197e-05/0.6711, allocations: 27.91 kB / 0.6636 GB, free: 11.6 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004742/0.6715, allocations: 239.2 kB / 0.6638 GB, free: 11.36 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.6716, allocations: 3.984 kB / 0.6638 GB, free: 11.35 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.6716, allocations: 8 kB / 0.6638 GB, free: 11.34 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.6716, allocations: 8 kB / 0.6638 GB, free: 11.34 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000486/0.6721, allocations: 233.5 kB / 0.6641 GB, free: 11.11 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00151/0.6736, allocations: 1.057 MB / 0.6651 GB, free: 9.926 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005705/0.6742, allocations: 268.5 kB / 0.6654 GB, free: 9.656 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009543/0.6752, allocations: 0.8489 MB / 0.6662 GB, free: 8.707 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004329/0.6756, allocations: 194.9 kB / 0.6664 GB, free: 8.504 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 2.254e-06/0.6756, allocations: 0 / 0.6664 GB, free: 8.504 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.001299/0.6769, allocations: 0.5692 MB / 0.6669 GB, free: 7.891 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.451e-05/0.677, allocations: 81.11 kB / 0.667 GB, free: 7.793 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.6772, allocations: 236.9 kB / 0.6672 GB, free: 7.555 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.6773, allocations: 29.7 kB / 0.6673 GB, free: 7.52 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.6774, allocations: 160.2 kB / 0.6674 GB, free: 7.359 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.877e-05/0.6775, allocations: 82.84 kB / 0.6675 GB, free: 7.277 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.398e-05/0.6775, allocations: 8 kB / 0.6675 GB, free: 7.27 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.6777, allocations: 334.8 kB / 0.6678 GB, free: 6.934 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000222/0.6779, allocations: 95.94 kB / 0.6679 GB, free: 6.84 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000258/0.6782, allocations: 135.9 kB / 0.668 GB, free: 6.695 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002671/0.6784, allocations: 126.5 kB / 0.6682 GB, free: 6.57 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.6785, allocations: 4 kB / 0.6682 GB, free: 6.566 MB / 490.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007379/0.6792, allocations: 363.7 kB / 0.6685 GB, free: 6.195 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.069e-05/0.6793, allocations: 33.7 kB / 0.6685 GB, free: 6.156 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.6793, allocations: 0.6875 kB / 0.6685 GB, free: 6.156 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002541/0.6795, allocations: 44.78 kB / 0.6686 GB, free: 6.109 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.6798, allocations: 49.09 kB / 0.6686 GB, free: 6.062 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/0.6813, allocations: 1.431 MB / 0.67 GB, free: 4.496 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001997/0.6815, allocations: 31.86 kB / 0.6701 GB, free: 4.465 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.908e-05/0.6815, allocations: 12 kB / 0.6701 GB, free: 4.453 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001848/0.6817, allocations: 146 kB / 0.6702 GB, free: 4.301 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.328e-05/0.6818, allocations: 31.61 kB / 0.6702 GB, free: 4.27 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005973/0.6824, allocations: 287.4 kB / 0.6705 GB, free: 3.988 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/0.6824, allocations: 0 / 0.6705 GB, free: 3.988 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.6824, allocations: 7.984 kB / 0.6705 GB, free: 3.98 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.6824, allocations: 0 / 0.6705 GB, free: 3.98 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.6835, allocations: 0.7066 MB / 0.6712 GB, free: 3.211 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.6835, allocations: 4 kB / 0.6712 GB, free: 3.207 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.6836, allocations: 43.91 kB / 0.6713 GB, free: 3.164 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001307/0.6838, allocations: 40.78 kB / 0.6713 GB, free: 3.121 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.883e-05/0.6838, allocations: 11.98 kB / 0.6713 GB, free: 3.109 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001363/0.6852, allocations: 1.427 MB / 0.6727 GB, free: 1.551 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.6852, allocations: 0 / 0.6727 GB, free: 1.551 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.6862, allocations: 0.5587 MB / 0.6733 GB, free: 0.957 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.114e-05/0.6863, allocations: 104.8 kB / 0.6734 GB, free: 0.8359 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.383e-05/0.6864, allocations: 11.98 kB / 0.6734 GB, free: 0.8242 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.6866, allocations: 23.84 kB / 0.6734 GB, free: 0.8008 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.8e-05/0.6867, allocations: 40.19 kB / 0.6734 GB, free: 0.7617 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-05/0.6867, allocations: 7.984 kB / 0.6734 GB, free: 0.7539 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001602/0.6869, allocations: 164.5 kB / 0.6736 GB, free: 0.5977 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6869, allocations: 0 / 0.6736 GB, free: 0.5977 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0004961/0.6874, allocations: 119.9 kB / 0.6737 GB, free: 492 kB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004184/0.6878, allocations: 229.6 kB / 0.6739 GB, free: 264 kB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0009796/0.6888, allocations: 461.9 kB / 0.6744 GB, free: 15.77 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.6888, allocations: 0 / 0.6744 GB, free: 15.77 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.0005102/0.6893, allocations: 292.4 kB / 0.6746 GB, free: 15.47 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005174/0.6899, allocations: 78.66 kB / 0.6747 GB, free: 15.39 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.6911, allocations: 0.702 MB / 0.6754 GB, free: 14.66 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.6915, allocations: 0.7716 MB / 0.6762 GB, free: 13.87 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.0001821/0.6917, allocations: 45.19 kB / 0.6762 GB, free: 13.83 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.029e-05/0.6918, allocations: 27.42 kB / 0.6762 GB, free: 13.8 MB / 0.4949 GB Notification: Performance of SimCode: time 2.31e-07/0.6918, allocations: 0 / 0.6762 GB, free: 13.8 MB / 0.4949 GB Notification: Performance of Templates: time 0.01078/0.7026, allocations: 5.541 MB / 0.6816 GB, free: 8.355 MB / 0.4949 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches