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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000962/0.000962, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 173 kB / 23.02 MB, free: 1.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9751/0.9751, allocations: 177.1 MB / 203.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6881/0.6881, allocations: 118.6 MB / 378.6 MB, free: 1.453 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.284e-06/2.284e-06, allocations: 0 / 483.6 MB, free: 8.246 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.034e-05/3.262e-05, allocations: 4.984 kB / 483.6 MB, free: 8.242 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.1532/0.1533, allocations: 131.1 MB / 0.6003 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.006266/0.1595, allocations: 1.773 MB / 0.6021 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005492/0.1601, allocations: 23.75 kB / 0.6021 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0004988/0.1606, allocations: 123 kB / 0.6022 GB, free: 11.17 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0008593/0.1614, allocations: 433 kB / 0.6026 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006398/0.1621, allocations: 275 kB / 0.6029 GB, free: 10.48 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0007715/0.1628, allocations: 0.8192 MB / 0.6037 GB, free: 9.656 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.163, allocations: 77.23 kB / 0.6038 GB, free: 9.578 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006998/0.1637, allocations: 470.6 kB / 0.6042 GB, free: 9.117 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003536/0.1641, allocations: 331.1 kB / 0.6045 GB, free: 8.793 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.1641, allocations: 32 kB / 0.6046 GB, free: 8.762 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000389/0.1645, allocations: 247.6 kB / 0.6048 GB, free: 8.52 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 8.762e-05/0.1646, allocations: 95.53 kB / 0.6049 GB, free: 8.426 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.1647, allocations: 171.5 kB / 0.605 GB, free: 8.258 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0006415/0.1654, allocations: 0.5489 MB / 0.6056 GB, free: 7.707 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1654, allocations: 0 / 0.6056 GB, free: 7.707 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.342e-06/0.1654, allocations: 0 / 0.6056 GB, free: 7.707 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.683e-06/0.1654, allocations: 0 / 0.6056 GB, free: 7.707 MB / 0.5261 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.001181/0.1666, allocations: 0.876 MB / 0.6064 GB, free: 6.789 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.1666, allocations: 12.03 kB / 0.6065 GB, free: 6.777 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001766/0.1668, allocations: 96.5 kB / 0.6065 GB, free: 6.684 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004301/0.1672, allocations: 381.2 kB / 0.6069 GB, free: 6.281 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/0.1672, allocations: 29.38 kB / 0.6069 GB, free: 6.254 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.354e-05/0.1673, allocations: 36.38 kB / 0.607 GB, free: 6.219 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004232/0.1677, allocations: 339.5 kB / 0.6073 GB, free: 5.859 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.1677, allocations: 8.062 kB / 0.6073 GB, free: 5.852 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.1677, allocations: 24.11 kB / 0.6073 GB, free: 5.828 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.1678, allocations: 12 kB / 0.6073 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002414/0.168, allocations: 171.7 kB / 0.6075 GB, free: 5.652 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.1693, allocations: 1.428 MB / 0.6089 GB, free: 4.164 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000399/0.1697, allocations: 243.3 kB / 0.6091 GB, free: 3.914 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/0.1698, allocations: 99.58 kB / 0.6092 GB, free: 3.812 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008266/0.1707, allocations: 0.7144 MB / 0.6099 GB, free: 3.078 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002193/0.1709, allocations: 160.8 kB / 0.6101 GB, free: 2.906 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=37): time 1.603e-06/0.1709, allocations: 0 / 0.6101 GB, free: 2.906 MB / 0.5261 GB Notification: Performance of matching and sorting (n=37): time 0.0006874/0.1716, allocations: 413.2 kB / 0.6105 GB, free: 2.492 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.1716, allocations: 55.41 kB / 0.6105 GB, free: 2.426 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.1718, allocations: 378.7 kB / 0.6109 GB, free: 2.039 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.527e-05/0.1719, allocations: 37.7 kB / 0.6109 GB, free: 1.996 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.172, allocations: 271.2 kB / 0.6112 GB, free: 1.727 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.352e-05/0.1721, allocations: 134.9 kB / 0.6113 GB, free: 1.594 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.18e-05/0.1721, allocations: 79.72 kB / 0.6114 GB, free: 1.504 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1723, allocations: 0.5196 MB / 0.6119 GB, free: 0.9727 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.1724, allocations: 90.41 kB / 0.612 GB, free: 0.8789 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.1725, allocations: 161.5 kB / 0.6121 GB, free: 0.6914 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.1728, allocations: 248.2 kB / 0.6124 GB, free: 428 kB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1728, allocations: 0 / 0.6124 GB, free: 428 kB / 0.5261 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004755/0.1732, allocations: 417.7 kB / 0.6128 GB, free: 15.98 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.1733, allocations: 33.86 kB / 0.6128 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.1733, allocations: 4 kB / 0.6128 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000183/0.1735, allocations: 47.58 kB / 0.6128 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.1736, allocations: 75.89 kB / 0.6129 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000875/0.1745, allocations: 1.826 MB / 0.6147 GB, free: 13.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.1746, allocations: 43.72 kB / 0.6147 GB, free: 13.83 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.1746, allocations: 12 kB / 0.6148 GB, free: 13.82 MB / 0.5417 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.0001202/0.1748, allocations: 172.5 kB / 0.6149 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.936e-05/0.1748, allocations: 75.58 kB / 0.615 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009952/0.1758, allocations: 440.8 kB / 0.6154 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.1758, allocations: 4 kB / 0.6154 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1758, allocations: 0 / 0.6154 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.1758, allocations: 3.984 kB / 0.6154 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009634/0.1768, allocations: 0.8088 MB / 0.6162 GB, free: 12.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.1768, allocations: 0 / 0.6162 GB, free: 12.26 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.1769, allocations: 59.91 kB / 0.6163 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000118/0.1771, allocations: 55.77 kB / 0.6163 GB, free: 12.14 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.132e-05/0.1771, allocations: 12 kB / 0.6163 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008031/0.1779, allocations: 1.814 MB / 0.6181 GB, free: 10.19 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.1779, allocations: 3.938 kB / 0.6181 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000633/0.1785, allocations: 0.55 MB / 0.6186 GB, free: 9.598 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 9.232e-05/0.1786, allocations: 79.55 kB / 0.6187 GB, free: 9.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.1786, allocations: 11.98 kB / 0.6187 GB, free: 9.508 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.1788, allocations: 15.94 kB / 0.6187 GB, free: 9.492 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.598e-05/0.1788, allocations: 39.8 kB / 0.6188 GB, free: 9.453 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.1789, allocations: 15.98 kB / 0.6188 GB, free: 9.438 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001646/0.179, allocations: 259.1 kB / 0.619 GB, free: 9.188 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8e-08/0.179, allocations: 0 / 0.619 GB, free: 9.188 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003452/0.1794, allocations: 171.7 kB / 0.6192 GB, free: 9.02 MB / 0.5417 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.0002534/0.1796, allocations: 171.1 kB / 0.6194 GB, free: 8.844 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005333/0.1802, allocations: 481.6 kB / 0.6198 GB, free: 8.336 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1802, allocations: 3.938 kB / 0.6198 GB, free: 8.332 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002174/0.1804, allocations: 313 kB / 0.6201 GB, free: 8.004 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000541/0.1809, allocations: 184.5 kB / 0.6203 GB, free: 7.836 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.1823, allocations: 0.818 MB / 0.6211 GB, free: 6.973 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.957e-05/0.1824, allocations: 105.8 kB / 0.6212 GB, free: 6.848 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001627/0.1825, allocations: 92.58 kB / 0.6213 GB, free: 6.766 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.23e-05/0.1826, allocations: 56.48 kB / 0.6214 GB, free: 6.711 MB / 0.5417 GB Notification: Performance of SimCode: time 8.52e-07/0.1826, allocations: 0 / 0.6214 GB, free: 6.711 MB / 0.5417 GB Notification: Performance of Templates: time 0.01074/0.1933, allocations: 8.949 MB / 0.6301 GB, free: 13.95 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.1404586639255285]