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.0008901/0.0008901, allocations: 73.09 kB / 20.65 MB, free: 3.844 MB / 18.57 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.00162/0.00162, allocations: 169 kB / 24.06 MB, free: 452 kB / 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 1.005/1.005, allocations: 177.1 MB / 204.5 MB, free: 5.488 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.6982/0.6982, allocations: 118.6 MB / 379.7 MB, free: 1.328 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 1.312e-06/1.312e-06, allocations: 0 / 484.8 MB, free: 8.117 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.301e-05/2.433e-05, allocations: 3.656 kB / 484.8 MB, free: 8.113 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.1437/0.1437, allocations: 128.2 MB / 0.5987 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.004378/0.1481, allocations: 1.757 MB / 0.6004 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002968/0.1484, allocations: 23.81 kB / 0.6004 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0004069/0.1488, allocations: 123 kB / 0.6005 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0006697/0.1494, allocations: 421.1 kB / 0.6009 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004849/0.1499, allocations: 283 kB / 0.6012 GB, free: 13.15 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.00058/0.1505, allocations: 0.8153 MB / 0.602 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.1507, allocations: 85.36 kB / 0.6021 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005467/0.1512, allocations: 466.5 kB / 0.6025 GB, free: 11.79 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003187/0.1515, allocations: 335.1 kB / 0.6029 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.946e-05/0.1516, allocations: 32 kB / 0.6029 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000339/0.1519, allocations: 255.6 kB / 0.6031 GB, free: 11.18 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 7.857e-05/0.152, allocations: 91.53 kB / 0.6032 GB, free: 11.09 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.1521, allocations: 171.5 kB / 0.6034 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0005948/0.1527, allocations: 0.5411 MB / 0.6039 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1527, allocations: 0 / 0.6039 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of FrontEnd: time 8.22e-07/0.1527, allocations: 4 kB / 0.6039 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.1527, allocations: 4 kB / 0.6039 GB, free: 10.37 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.001237/0.1539, allocations: 0.8875 MB / 0.6048 GB, free: 9.441 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.154, allocations: 8.031 kB / 0.6048 GB, free: 9.434 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/0.1541, allocations: 96.5 kB / 0.6049 GB, free: 9.34 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000399/0.1545, allocations: 381.2 kB / 0.6052 GB, free: 8.938 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.1545, allocations: 29.38 kB / 0.6053 GB, free: 8.91 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.757e-05/0.1546, allocations: 28.38 kB / 0.6053 GB, free: 8.883 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.1549, allocations: 323.4 kB / 0.6056 GB, free: 8.539 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.1549, allocations: 4.125 kB / 0.6056 GB, free: 8.535 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.155, allocations: 20.12 kB / 0.6056 GB, free: 8.516 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.155, allocations: 11.98 kB / 0.6056 GB, free: 8.504 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.1551, allocations: 136.4 kB / 0.6058 GB, free: 8.375 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.1563, allocations: 1.374 MB / 0.6071 GB, free: 6.949 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000349/0.1567, allocations: 230.8 kB / 0.6073 GB, free: 6.715 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.888e-05/0.1568, allocations: 90.58 kB / 0.6074 GB, free: 6.625 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008738/0.1576, allocations: 0.7104 MB / 0.6081 GB, free: 5.895 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/0.1579, allocations: 149 kB / 0.6083 GB, free: 5.734 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=37): time 3.165e-06/0.1579, allocations: 0 / 0.6083 GB, free: 5.734 MB / 0.5261 GB Notification: Performance of matching and sorting (n=37): time 0.000724/0.1586, allocations: 376.9 kB / 0.6086 GB, free: 5.355 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.1586, allocations: 55.41 kB / 0.6087 GB, free: 5.289 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002547/0.1589, allocations: 374.5 kB / 0.609 GB, free: 4.906 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.1589, allocations: 37.7 kB / 0.6091 GB, free: 4.863 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.1591, allocations: 283 kB / 0.6093 GB, free: 4.582 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.04e-05/0.1592, allocations: 126.9 kB / 0.6095 GB, free: 4.457 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.83e-05/0.1593, allocations: 83.69 kB / 0.6095 GB, free: 4.363 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001746/0.1594, allocations: 0.5312 MB / 0.6101 GB, free: 3.82 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.033e-05/0.1595, allocations: 70.42 kB / 0.6101 GB, free: 3.746 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.1597, allocations: 153.5 kB / 0.6103 GB, free: 3.566 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002202/0.1599, allocations: 216.1 kB / 0.6105 GB, free: 3.324 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1599, allocations: 0 / 0.6105 GB, free: 3.324 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005107/0.1604, allocations: 393.1 kB / 0.6108 GB, free: 2.918 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.49e-05/0.1604, allocations: 29.7 kB / 0.6109 GB, free: 2.883 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.1605, allocations: 7.984 kB / 0.6109 GB, free: 2.875 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002519/0.1607, allocations: 39.8 kB / 0.6109 GB, free: 2.832 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001998/0.1609, allocations: 79.91 kB / 0.611 GB, free: 2.754 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.1623, allocations: 1.795 MB / 0.6128 GB, free: 0.8477 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001343/0.1625, allocations: 43.75 kB / 0.6128 GB, free: 0.8047 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.362e-05/0.1625, allocations: 12 kB / 0.6128 GB, free: 0.793 MB / 0.5261 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.0001358/0.1626, allocations: 172.5 kB / 0.613 GB, free: 0.6133 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.333e-05/0.1627, allocations: 63.66 kB / 0.613 GB, free: 0.5508 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005369/0.1632, allocations: 422.1 kB / 0.6134 GB, free: 132 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.1633, allocations: 8 kB / 0.6134 GB, free: 124 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1633, allocations: 0 / 0.6134 GB, free: 124 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.1633, allocations: 3.984 kB / 0.6134 GB, free: 120 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007548/0.164, allocations: 0.7236 MB / 0.6142 GB, free: 15.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.164, allocations: 0 / 0.6142 GB, free: 15.35 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.1641, allocations: 59.91 kB / 0.6142 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001517/0.1643, allocations: 59.72 kB / 0.6143 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.1643, allocations: 11.98 kB / 0.6143 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000929/0.1652, allocations: 1.784 MB / 0.616 GB, free: 13.31 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1652, allocations: 8 kB / 0.616 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004814/0.1657, allocations: 0.5079 MB / 0.6165 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 9.426e-05/0.1658, allocations: 87.47 kB / 0.6166 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.8e-05/0.1659, allocations: 11.98 kB / 0.6166 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.166, allocations: 15.94 kB / 0.6166 GB, free: 12.65 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.187e-05/0.166, allocations: 39.8 kB / 0.6167 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.1661, allocations: 19.92 kB / 0.6167 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001152/0.1662, allocations: 251 kB / 0.6169 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4e-08/0.1662, allocations: 0 / 0.6169 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003698/0.1665, allocations: 159.7 kB / 0.6171 GB, free: 12.19 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.0002304/0.1668, allocations: 171.1 kB / 0.6172 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004356/0.1672, allocations: 456.9 kB / 0.6177 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1672, allocations: 4.125 kB / 0.6177 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001988/0.1674, allocations: 297.2 kB / 0.618 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007045/0.1681, allocations: 174.4 kB / 0.6181 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.1694, allocations: 0.8135 MB / 0.6189 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.602e-05/0.1695, allocations: 113.8 kB / 0.619 GB, free: 10.06 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001799/0.1696, allocations: 84.98 kB / 0.6191 GB, free: 9.992 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002553/0.1699, allocations: 206.1 kB / 0.6193 GB, free: 9.789 MB / 0.5417 GB Notification: Performance of SimCode: time 7.12e-07/0.1699, allocations: 0 / 0.6193 GB, free: 9.789 MB / 0.5417 GB Notification: Performance of Templates: time 0.01125/0.1811, allocations: 9.257 MB / 0.6284 GB, free: 0.7422 MB / 0.5417 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: 3.963683237321675]