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.0009557/0.0009557, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.001046/0.001046, allocations: 177 kB / 23.36 MB, free: 1.129 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.9959/0.9959, allocations: 177.1 MB / 203.8 MB, free: 5.457 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.7109/0.7109, allocations: 118.6 MB / 378.9 MB, free: 1.352 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 8.21e-07/8.21e-07, allocations: 0 / 430.8 MB, free: 13.31 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.292e-05/1.374e-05, allocations: 5.969 kB / 430.8 MB, free: 13.3 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.3477/0.3477, allocations: 130.2 MB / 0.5479 GB, free: 9.066 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.002547/0.3502, allocations: 1.804 MB / 0.5497 GB, free: 7.27 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000354/0.3506, allocations: 23.81 kB / 0.5497 GB, free: 7.246 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004449/0.351, allocations: 127 kB / 0.5498 GB, free: 7.121 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0008427/0.3519, allocations: 429 kB / 0.5502 GB, free: 6.699 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007164/0.3526, allocations: 263.1 kB / 0.5505 GB, free: 6.441 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0009707/0.3535, allocations: 0.811 MB / 0.5513 GB, free: 5.629 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001908/0.3537, allocations: 83.33 kB / 0.5513 GB, free: 5.543 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008272/0.3546, allocations: 466.6 kB / 0.5518 GB, free: 5.086 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004197/0.355, allocations: 327.1 kB / 0.5521 GB, free: 4.766 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 4.677e-05/0.355, allocations: 32 kB / 0.5521 GB, free: 4.734 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004952/0.3555, allocations: 271.5 kB / 0.5524 GB, free: 4.469 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 9.153e-05/0.3556, allocations: 91.55 kB / 0.5525 GB, free: 4.379 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.3558, allocations: 178.9 kB / 0.5526 GB, free: 4.207 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0007097/0.3565, allocations: 0.5411 MB / 0.5532 GB, free: 3.664 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3565, allocations: 0 / 0.5532 GB, free: 3.664 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.042e-06/0.3565, allocations: 0 / 0.5532 GB, free: 3.664 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.3565, allocations: 0 / 0.5532 GB, free: 3.664 MB / 0.4948 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.0009704/0.3574, allocations: 0.7543 MB / 0.5539 GB, free: 2.883 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.3575, allocations: 12.03 kB / 0.5539 GB, free: 2.871 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.3576, allocations: 80.69 kB / 0.554 GB, free: 2.793 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004177/0.358, allocations: 355.8 kB / 0.5543 GB, free: 2.418 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.3581, allocations: 21.38 kB / 0.5544 GB, free: 2.398 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.203e-05/0.3581, allocations: 44.31 kB / 0.5544 GB, free: 2.355 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003387/0.3584, allocations: 308 kB / 0.5547 GB, free: 2.031 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3585, allocations: 192 / 0.5547 GB, free: 2.031 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/0.3585, allocations: 12.38 kB / 0.5547 GB, free: 2.02 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.3585, allocations: 11.94 kB / 0.5547 GB, free: 2.008 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001629/0.3586, allocations: 127.3 kB / 0.5548 GB, free: 1.879 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.3598, allocations: 0.9887 MB / 0.5558 GB, free: 0.8594 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.3601, allocations: 199.2 kB / 0.556 GB, free: 0.6562 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.986e-05/0.3601, allocations: 68.83 kB / 0.5561 GB, free: 0.5859 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007571/0.3609, allocations: 0.5342 MB / 0.5566 GB, free: 40 kB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00019/0.3611, allocations: 143.2 kB / 0.5567 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=37): time 2.234e-06/0.3611, allocations: 0 / 0.5567 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of matching and sorting (n=37): time 0.000501/0.3616, allocations: 286.7 kB / 0.557 GB, free: 15.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.3616, allocations: 59.39 kB / 0.557 GB, free: 15.53 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.3618, allocations: 319.3 kB / 0.5574 GB, free: 15.21 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.3618, allocations: 37.7 kB / 0.5574 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.244e-05/0.3619, allocations: 189.4 kB / 0.5576 GB, free: 14.97 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.616e-05/0.362, allocations: 126.8 kB / 0.5577 GB, free: 14.85 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.874e-05/0.3621, allocations: 77.98 kB / 0.5578 GB, free: 14.77 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.31e-05/0.3622, allocations: 354.7 kB / 0.5581 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.02e-05/0.3622, allocations: 66.44 kB / 0.5582 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.006e-05/0.3623, allocations: 128.6 kB / 0.5583 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.3625, allocations: 202.7 kB / 0.5585 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.3625, allocations: 0 / 0.5585 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003177/0.3628, allocations: 304 kB / 0.5588 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.118e-05/0.3629, allocations: 33.7 kB / 0.5588 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3629, allocations: 3.984 kB / 0.5588 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001461/0.363, allocations: 44.75 kB / 0.5589 GB, free: 13.56 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.3632, allocations: 75.89 kB / 0.5589 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007228/0.3639, allocations: 1.239 MB / 0.5601 GB, free: 12.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/0.364, allocations: 39.77 kB / 0.5602 GB, free: 12.13 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.364, allocations: 12 kB / 0.5602 GB, free: 12.12 MB / 0.5105 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.0001072/0.3642, allocations: 136.6 kB / 0.5603 GB, free: 11.97 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.676e-05/0.3642, allocations: 43.91 kB / 0.5604 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004214/0.3646, allocations: 348.2 kB / 0.5607 GB, free: 11.58 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3647, allocations: 4 kB / 0.5607 GB, free: 11.58 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3647, allocations: 5.25 kB / 0.5607 GB, free: 11.57 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.3647, allocations: 0 / 0.5607 GB, free: 11.57 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006455/0.3653, allocations: 0.5424 MB / 0.5612 GB, free: 11 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.3653, allocations: 0 / 0.5612 GB, free: 11 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.3654, allocations: 63.97 kB / 0.5613 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001138/0.3656, allocations: 40.8 kB / 0.5613 GB, free: 10.89 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.964e-05/0.3656, allocations: 11.98 kB / 0.5613 GB, free: 10.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006857/0.3663, allocations: 1.241 MB / 0.5625 GB, free: 9.551 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3663, allocations: 0 / 0.5625 GB, free: 9.551 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004182/0.3667, allocations: 391.7 kB / 0.5629 GB, free: 9.145 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 7.944e-05/0.3668, allocations: 51.64 kB / 0.563 GB, free: 9.094 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.115e-05/0.3668, allocations: 12.86 kB / 0.563 GB, free: 9.082 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.3669, allocations: 16 kB / 0.563 GB, free: 9.066 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.29e-05/0.367, allocations: 39.86 kB / 0.563 GB, free: 9.027 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.367, allocations: 11.94 kB / 0.563 GB, free: 9.016 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 9.81e-05/0.3671, allocations: 132.8 kB / 0.5632 GB, free: 8.887 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7e-08/0.3671, allocations: 4 kB / 0.5632 GB, free: 8.883 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003716/0.3675, allocations: 171.6 kB / 0.5633 GB, free: 8.715 MB / 0.5105 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.0002232/0.3677, allocations: 144.1 kB / 0.5635 GB, free: 8.566 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0004381/0.3681, allocations: 382.5 kB / 0.5638 GB, free: 8.16 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.3681, allocations: 4 kB / 0.5638 GB, free: 8.156 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.3683, allocations: 235.7 kB / 0.5641 GB, free: 7.91 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000482/0.3688, allocations: 181 kB / 0.5642 GB, free: 7.75 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.3702, allocations: 0.8083 MB / 0.565 GB, free: 6.906 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.52e-05/0.3702, allocations: 109.8 kB / 0.5651 GB, free: 6.777 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0002248/0.3705, allocations: 86.78 kB / 0.5652 GB, free: 6.707 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000254/0.3707, allocations: 173.2 kB / 0.5654 GB, free: 6.535 MB / 0.5105 GB Notification: Performance of SimCode: time 1.022e-06/0.3707, allocations: 0 / 0.5654 GB, free: 6.535 MB / 0.5105 GB Notification: Performance of Templates: time 0.01192/0.3826, allocations: 9.026 MB / 0.5742 GB, free: 13.75 MB / 0.5261 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 -s gbode -gbm=radauIIA3 -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.960874794051051]