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.001545/0.001545, allocations: 93.06 kB / 19.65 MB, free: 272 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.001608/0.001608, allocations: 169 kB / 23.02 MB, free: 1.543 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.9939/0.9939, 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.6818/0.6818, 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.573e-06/1.573e-06, allocations: 0 / 483.6 MB, free: 8.223 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.281e-05/2.439e-05, allocations: 9.375 kB / 483.6 MB, free: 8.219 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1377/0.1377, allocations: 130.4 MB / 0.5996 GB, free: 13.89 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.00219/0.1399, allocations: 1.561 MB / 0.6011 GB, free: 12.33 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003724/0.1403, allocations: 23.75 kB / 0.6012 GB, free: 12.3 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0004742/0.1407, allocations: 87.25 kB / 0.6012 GB, free: 12.22 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0006845/0.1414, allocations: 333.6 kB / 0.6016 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005425/0.142, allocations: 239.1 kB / 0.6018 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0005374/0.1425, allocations: 0.6024 MB / 0.6024 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.1427, allocations: 53.97 kB / 0.6024 GB, free: 10.99 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005457/0.1432, allocations: 382.8 kB / 0.6028 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002311/0.1434, allocations: 207.4 kB / 0.603 GB, free: 10.41 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.505e-05/0.1435, allocations: 28 kB / 0.603 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003274/0.1438, allocations: 223.5 kB / 0.6032 GB, free: 10.17 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 7.767e-05/0.1439, allocations: 71.62 kB / 0.6033 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.144, allocations: 135.6 kB / 0.6034 GB, free: 9.965 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0005468/0.1445, allocations: 458.3 kB / 0.6039 GB, free: 9.516 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1445, allocations: 0 / 0.6039 GB, free: 9.516 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.552e-06/0.1445, allocations: 0 / 0.6039 GB, free: 9.516 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.234e-06/0.1445, allocations: 0 / 0.6039 GB, free: 9.516 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.001012/0.1456, allocations: 0.7973 MB / 0.6046 GB, free: 8.676 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.1456, allocations: 12.03 kB / 0.6047 GB, free: 8.664 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001714/0.1458, allocations: 76.55 kB / 0.6047 GB, free: 8.59 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004226/0.1462, allocations: 385.9 kB / 0.6051 GB, free: 8.184 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.1462, allocations: 12.88 kB / 0.6051 GB, free: 8.172 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.467e-05/0.1463, allocations: 24.38 kB / 0.6051 GB, free: 8.148 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000321/0.1466, allocations: 216.7 kB / 0.6053 GB, free: 7.914 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1466, allocations: 4.188 kB / 0.6053 GB, free: 7.91 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.1466, allocations: 11.94 kB / 0.6054 GB, free: 7.898 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.1466, allocations: 8 kB / 0.6054 GB, free: 7.891 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001593/0.1468, allocations: 98.86 kB / 0.6055 GB, free: 7.797 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009558/0.1477, allocations: 0.9328 MB / 0.6064 GB, free: 6.816 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002516/0.148, allocations: 167 kB / 0.6065 GB, free: 6.641 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.512e-05/0.1481, allocations: 59.66 kB / 0.6066 GB, free: 6.578 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005096/0.1486, allocations: 0.5078 MB / 0.6071 GB, free: 6.051 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002085/0.1488, allocations: 117.5 kB / 0.6072 GB, free: 5.922 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=23): time 2.124e-06/0.1488, allocations: 0 / 0.6072 GB, free: 5.922 MB / 0.5261 GB Notification: Performance of matching and sorting (n=23): time 0.0005974/0.1494, allocations: 298.5 kB / 0.6075 GB, free: 5.621 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/0.1494, allocations: 63.33 kB / 0.6075 GB, free: 5.547 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002679/0.1497, allocations: 390.8 kB / 0.6079 GB, free: 5.148 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.1497, allocations: 37.69 kB / 0.6079 GB, free: 5.105 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/0.15, allocations: 259.1 kB / 0.6082 GB, free: 4.848 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.532e-05/0.15, allocations: 79.31 kB / 0.6083 GB, free: 4.77 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.419e-05/0.1501, allocations: 59.31 kB / 0.6083 GB, free: 4.703 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.1502, allocations: 0.5195 MB / 0.6088 GB, free: 4.172 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.066e-05/0.1503, allocations: 73.67 kB / 0.6089 GB, free: 4.094 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.808e-05/0.1504, allocations: 116.4 kB / 0.609 GB, free: 3.957 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001739/0.1506, allocations: 163.6 kB / 0.6092 GB, free: 3.777 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.1506, allocations: 0 / 0.6092 GB, free: 3.777 MB / 0.5261 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003693/0.1509, allocations: 314.9 kB / 0.6095 GB, free: 3.449 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.01e-05/0.151, allocations: 33.7 kB / 0.6095 GB, free: 3.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.151, allocations: 3.938 kB / 0.6095 GB, free: 3.406 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002114/0.1512, allocations: 47.73 kB / 0.6096 GB, free: 3.355 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.1513, allocations: 51.91 kB / 0.6096 GB, free: 3.305 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.1524, allocations: 1.814 MB / 0.6114 GB, free: 1.363 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.605e-05/0.1525, allocations: 23.88 kB / 0.6114 GB, free: 1.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/0.1525, allocations: 12 kB / 0.6114 GB, free: 1.328 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.0001463/0.1527, allocations: 180.5 kB / 0.6116 GB, free: 1.141 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.811e-05/0.1527, allocations: 55.64 kB / 0.6116 GB, free: 1.086 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003715/0.1531, allocations: 262.7 kB / 0.6119 GB, free: 0.8164 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.758e-06/0.1531, allocations: 7.938 kB / 0.6119 GB, free: 0.8086 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.1531, allocations: 0 / 0.6119 GB, free: 0.8086 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1531, allocations: 0 / 0.6119 GB, free: 0.8086 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000713/0.1538, allocations: 0.6419 MB / 0.6125 GB, free: 120 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1538, allocations: 0 / 0.6125 GB, free: 120 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.1539, allocations: 39.92 kB / 0.6126 GB, free: 80 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001366/0.1541, allocations: 47.62 kB / 0.6126 GB, free: 28 kB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.1541, allocations: 8 kB / 0.6126 GB, free: 20 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009438/0.155, allocations: 1.83 MB / 0.6144 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.155, allocations: 0 / 0.6144 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004591/0.1555, allocations: 450.7 kB / 0.6148 GB, free: 13.61 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 8.123e-05/0.1556, allocations: 67.61 kB / 0.6149 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.1556, allocations: 8 kB / 0.6149 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.859e-05/0.1557, allocations: 11.98 kB / 0.6149 GB, free: 13.52 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.757e-05/0.1558, allocations: 28.02 kB / 0.6149 GB, free: 13.49 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.1558, allocations: 8 kB / 0.6149 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003929/0.1562, allocations: 271.1 kB / 0.6152 GB, free: 13.22 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6e-08/0.1562, allocations: 0 / 0.6152 GB, free: 13.22 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003527/0.1566, allocations: 115.8 kB / 0.6153 GB, free: 13.11 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.0002887/0.1569, allocations: 174.5 kB / 0.6155 GB, free: 12.93 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005177/0.1574, allocations: 403.6 kB / 0.6159 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1574, allocations: 0 / 0.6159 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002137/0.1576, allocations: 269.2 kB / 0.6161 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005213/0.1581, allocations: 158.3 kB / 0.6163 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.1604, allocations: 0.6976 MB / 0.617 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/0.1605, allocations: 105.3 kB / 0.6171 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0002374/0.1608, allocations: 59.12 kB / 0.6171 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.786e-05/0.1608, allocations: 40.48 kB / 0.6171 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of SimCode: time 2.234e-06/0.1608, allocations: 3.938 kB / 0.6172 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of Templates: time 0.01296/0.1738, allocations: 7.302 MB / 0.6243 GB, free: 3.992 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.085556853096932]