Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.001405/0.001405, allocations: 93.06 kB / 19.65 MB, free: 280 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.001566/0.001566, allocations: 165 kB / 23.02 MB, free: 1.555 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 1.011/1.011, allocations: 177.1 MB / 203.4 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.6958/0.6958, allocations: 118.6 MB / 378.6 MB, free: 1.527 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/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.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 483.6 MB, free: 8.305 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.819e-05/1.954e-05, allocations: 5.547 kB / 483.6 MB, free: 8.301 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1507/0.1508, allocations: 130.4 MB / 0.5996 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.001963/0.1527, allocations: 1.561 MB / 0.6011 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002588/0.153, allocations: 27.75 kB / 0.6012 GB, free: 12.32 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.000415/0.1534, allocations: 83.22 kB / 0.6012 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0006068/0.154, allocations: 333.7 kB / 0.6016 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006335/0.1546, allocations: 231.1 kB / 0.6018 GB, free: 11.69 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0005452/0.1552, allocations: 0.6062 MB / 0.6024 GB, free: 11.08 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.1553, allocations: 53.98 kB / 0.6024 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005329/0.1559, allocations: 374.8 kB / 0.6028 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000227/0.1561, allocations: 207.4 kB / 0.603 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.304e-05/0.1561, allocations: 24 kB / 0.603 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003199/0.1564, allocations: 231.5 kB / 0.6032 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 7.037e-05/0.1565, allocations: 67.64 kB / 0.6033 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.1566, allocations: 131.5 kB / 0.6034 GB, free: 10.01 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.00052/0.1571, allocations: 446.5 kB / 0.6038 GB, free: 9.57 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1571, allocations: 0 / 0.6038 GB, free: 9.57 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.373e-06/0.1571, allocations: 0 / 0.6038 GB, free: 9.57 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.1572, allocations: 3.938 kB / 0.6038 GB, free: 9.566 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009374/0.1581, allocations: 0.8128 MB / 0.6046 GB, free: 8.711 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.1581, allocations: 8.031 kB / 0.6046 GB, free: 8.703 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.1583, allocations: 72.55 kB / 0.6047 GB, free: 8.633 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004206/0.1587, allocations: 386 kB / 0.6051 GB, free: 8.227 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.1587, allocations: 20.81 kB / 0.6051 GB, free: 8.207 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.967e-05/0.1587, allocations: 24.38 kB / 0.6051 GB, free: 8.184 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.1591, allocations: 212.7 kB / 0.6053 GB, free: 7.953 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.946e-06/0.1591, allocations: 192 / 0.6053 GB, free: 7.953 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.1591, allocations: 19.94 kB / 0.6053 GB, free: 7.934 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1591, allocations: 4 kB / 0.6053 GB, free: 7.93 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001565/0.1592, allocations: 102.9 kB / 0.6054 GB, free: 7.832 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000905/0.1602, allocations: 0.9367 MB / 0.6064 GB, free: 6.848 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.1604, allocations: 151.1 kB / 0.6065 GB, free: 6.688 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.42e-05/0.1605, allocations: 71.27 kB / 0.6066 GB, free: 6.617 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004788/0.161, allocations: 0.5038 MB / 0.6071 GB, free: 6.094 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001769/0.1611, allocations: 117.5 kB / 0.6072 GB, free: 5.965 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=23): time 1.984e-06/0.1611, allocations: 0 / 0.6072 GB, free: 5.965 MB / 0.5261 GB Notification: Performance of matching and sorting (n=23): time 0.0005621/0.1617, allocations: 298.5 kB / 0.6075 GB, free: 5.664 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.1617, allocations: 59.41 kB / 0.6075 GB, free: 5.594 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.162, allocations: 398.7 kB / 0.6079 GB, free: 5.188 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.162, allocations: 25.7 kB / 0.6079 GB, free: 5.156 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.1621, allocations: 267.1 kB / 0.6082 GB, free: 4.891 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.32e-05/0.1622, allocations: 83.3 kB / 0.6083 GB, free: 4.809 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.1622, allocations: 59.31 kB / 0.6083 GB, free: 4.742 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002747/0.1625, allocations: 0.5235 MB / 0.6088 GB, free: 4.207 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.234e-05/0.1626, allocations: 65.61 kB / 0.6089 GB, free: 4.137 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.1627, allocations: 124.4 kB / 0.609 GB, free: 3.992 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/0.1629, allocations: 159.7 kB / 0.6092 GB, free: 3.816 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1629, allocations: 4 kB / 0.6092 GB, free: 3.812 MB / 0.5261 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003602/0.1633, allocations: 322.8 kB / 0.6095 GB, free: 3.477 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.1633, allocations: 33.69 kB / 0.6095 GB, free: 3.438 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.1633, allocations: 3.938 kB / 0.6095 GB, free: 3.434 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002015/0.1635, allocations: 51.73 kB / 0.6096 GB, free: 3.379 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.1637, allocations: 35.98 kB / 0.6096 GB, free: 3.344 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008472/0.1645, allocations: 1.822 MB / 0.6114 GB, free: 1.395 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.489e-05/0.1646, allocations: 23.89 kB / 0.6114 GB, free: 1.371 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.1646, allocations: 15.92 kB / 0.6114 GB, free: 1.355 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (26): * Single equations (assignments): 24 * 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.0001022/0.1647, allocations: 172.5 kB / 0.6116 GB, free: 1.176 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.589e-05/0.1648, allocations: 55.66 kB / 0.6116 GB, free: 1.121 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003329/0.1651, allocations: 262.7 kB / 0.6119 GB, free: 0.8516 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1651, allocations: 7.938 kB / 0.6119 GB, free: 0.8438 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.1651, allocations: 0 / 0.6119 GB, free: 0.8438 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.1651, allocations: 3.984 kB / 0.6119 GB, free: 0.8398 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005704/0.1657, allocations: 0.6419 MB / 0.6125 GB, free: 152 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1657, allocations: 0 / 0.6125 GB, free: 152 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.509e-05/0.1658, allocations: 31.98 kB / 0.6125 GB, free: 120 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001237/0.1659, allocations: 47.62 kB / 0.6126 GB, free: 68 kB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.1659, allocations: 8 kB / 0.6126 GB, free: 60 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007559/0.1667, allocations: 1.83 MB / 0.6144 GB, free: 14.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.1667, allocations: 7.938 kB / 0.6144 GB, free: 14.1 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003946/0.1671, allocations: 450.7 kB / 0.6148 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.212e-05/0.1671, allocations: 55.62 kB / 0.6149 GB, free: 13.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.1672, allocations: 11.98 kB / 0.6149 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.157e-05/0.1672, allocations: 8 kB / 0.6149 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.026e-05/0.1673, allocations: 27.95 kB / 0.6149 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.1673, allocations: 16.05 kB / 0.6149 GB, free: 13.52 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001549/0.1675, allocations: 271.1 kB / 0.6152 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5e-08/0.1675, allocations: 0 / 0.6152 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002629/0.1677, allocations: 115.8 kB / 0.6153 GB, free: 13.14 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (22): * Single equations (assignments): 19 * 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.0002008/0.1679, allocations: 166.8 kB / 0.6155 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000539/0.1685, allocations: 403.6 kB / 0.6158 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.1685, allocations: 4 kB / 0.6159 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001787/0.1687, allocations: 273.2 kB / 0.6161 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004528/0.1691, allocations: 155.2 kB / 0.6163 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.1703, allocations: 0.6976 MB / 0.6169 GB, free: 11.37 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.538e-05/0.1704, allocations: 97.3 kB / 0.617 GB, free: 11.26 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001184/0.1705, allocations: 63.12 kB / 0.6171 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.468e-05/0.1705, allocations: 40.48 kB / 0.6171 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of SimCode: time 8.82e-07/0.1705, allocations: 0 / 0.6171 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of Templates: time 0.008118/0.1787, allocations: 6.754 MB / 0.6237 GB, free: 4.582 MB / 0.5417 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.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.190325524192303]