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.0008659/0.0008659, 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.001436/0.001436, allocations: 173.4 kB / 23.36 MB, free: 1.133 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.9001/0.9001, allocations: 177.1 MB / 203.8 MB, free: 5.469 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.6217/0.6217, allocations: 118.6 MB / 378.9 MB, free: 1.344 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.543e-06/1.543e-06, allocations: 0 / 430.8 MB, free: 13.36 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.218e-05/1.373e-05, allocations: 2.312 kB / 430.8 MB, free: 13.36 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.2591/0.2591, allocations: 129.4 MB / 0.5471 GB, free: 9.941 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.001622/0.2607, allocations: 1.582 MB / 0.5486 GB, free: 8.367 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001821/0.2609, allocations: 23.75 kB / 0.5487 GB, free: 8.344 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0003126/0.2612, allocations: 103.1 kB / 0.5488 GB, free: 8.242 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0004854/0.2617, allocations: 329.8 kB / 0.5491 GB, free: 7.918 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003883/0.2621, allocations: 227.2 kB / 0.5493 GB, free: 7.695 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0004488/0.2625, allocations: 0.614 MB / 0.5499 GB, free: 7.078 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.2626, allocations: 66.86 kB / 0.55 GB, free: 7.012 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004376/0.2631, allocations: 366.9 kB / 0.5503 GB, free: 6.652 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002013/0.2633, allocations: 203.4 kB / 0.5505 GB, free: 6.453 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 2.916e-05/0.2633, allocations: 24 kB / 0.5505 GB, free: 6.43 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002732/0.2636, allocations: 231.5 kB / 0.5507 GB, free: 6.203 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 6.271e-05/0.2636, allocations: 75.61 kB / 0.5508 GB, free: 6.129 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 9.416e-05/0.2637, allocations: 127.7 kB / 0.5509 GB, free: 6.004 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.000426/0.2642, allocations: 450.3 kB / 0.5514 GB, free: 5.562 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.2642, allocations: 0 / 0.5514 GB, free: 5.562 MB / 0.4948 GB Notification: Performance of FrontEnd: time 8.82e-07/0.2642, allocations: 0 / 0.5514 GB, free: 5.562 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.2642, allocations: 0 / 0.5514 GB, free: 5.562 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.000703/0.2649, allocations: 0.6834 MB / 0.552 GB, free: 4.852 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 2.579e-05/0.2649, allocations: 8.031 kB / 0.552 GB, free: 4.844 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.349e-05/0.265, allocations: 56.83 kB / 0.5521 GB, free: 4.789 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003519/0.2653, allocations: 353.8 kB / 0.5524 GB, free: 4.418 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.2654, allocations: 20.81 kB / 0.5525 GB, free: 4.398 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.01e-05/0.2654, allocations: 20.38 kB / 0.5525 GB, free: 4.379 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002163/0.2656, allocations: 210.9 kB / 0.5527 GB, free: 4.156 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.2656, allocations: 384 / 0.5527 GB, free: 4.156 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.2656, allocations: 12.5 kB / 0.5527 GB, free: 4.145 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.2656, allocations: 8 kB / 0.5527 GB, free: 4.137 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.817e-05/0.2657, allocations: 78.2 kB / 0.5528 GB, free: 4.059 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008603/0.2666, allocations: 0.6056 MB / 0.5534 GB, free: 3.426 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.2667, allocations: 130.9 kB / 0.5535 GB, free: 3.289 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.008e-05/0.2668, allocations: 45.45 kB / 0.5535 GB, free: 3.242 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000377/0.2672, allocations: 367 kB / 0.5539 GB, free: 2.871 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001175/0.2673, allocations: 106.8 kB / 0.554 GB, free: 2.758 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=23): time 1.243e-06/0.2673, allocations: 0 / 0.554 GB, free: 2.758 MB / 0.4948 GB Notification: Performance of matching and sorting (n=23): time 0.0003766/0.2677, allocations: 215.8 kB / 0.5542 GB, free: 2.539 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.322e-05/0.2677, allocations: 59.39 kB / 0.5542 GB, free: 2.469 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.2679, allocations: 335.3 kB / 0.5546 GB, free: 2.129 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.2679, allocations: 33.7 kB / 0.5546 GB, free: 2.09 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 6.538e-05/0.268, allocations: 165.3 kB / 0.5548 GB, free: 1.926 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.046e-05/0.268, allocations: 83.27 kB / 0.5548 GB, free: 1.844 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-05/0.2681, allocations: 53.66 kB / 0.5549 GB, free: 1.785 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.624e-05/0.2681, allocations: 350.7 kB / 0.5552 GB, free: 1.434 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.86e-05/0.2682, allocations: 53.69 kB / 0.5553 GB, free: 1.375 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.997e-05/0.2682, allocations: 93.08 kB / 0.5554 GB, free: 1.266 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.2683, allocations: 139.2 kB / 0.5555 GB, free: 1.117 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2684, allocations: 3.938 kB / 0.5555 GB, free: 1.113 MB / 0.4948 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002199/0.2686, allocations: 232.8 kB / 0.5557 GB, free: 0.8672 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.2686, allocations: 33.7 kB / 0.5557 GB, free: 0.8281 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.2686, allocations: 4.094 kB / 0.5557 GB, free: 0.8242 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001467/0.2687, allocations: 40.81 kB / 0.5558 GB, free: 0.7812 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.2688, allocations: 47.91 kB / 0.5558 GB, free: 0.7344 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005932/0.2694, allocations: 1.238 MB / 0.557 GB, free: 15.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.684e-05/0.2695, allocations: 27.91 kB / 0.5571 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.2696, allocations: 4 kB / 0.5571 GB, free: 15.37 MB / 0.5105 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 8.349e-05/0.2696, allocations: 129.3 kB / 0.5572 GB, free: 15.23 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.706e-05/0.2697, allocations: 39.86 kB / 0.5572 GB, free: 15.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002425/0.2699, allocations: 204.5 kB / 0.5574 GB, free: 14.99 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.2699, allocations: 4 kB / 0.5574 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.2699, allocations: 5.188 kB / 0.5574 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2699, allocations: 4.125 kB / 0.5574 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004095/0.2703, allocations: 434.4 kB / 0.5579 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2703, allocations: 0 / 0.5579 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.38e-05/0.2704, allocations: 39.86 kB / 0.5579 GB, free: 14.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001093/0.2705, allocations: 48.78 kB / 0.5579 GB, free: 14.43 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.2705, allocations: 12 kB / 0.558 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005143/0.2711, allocations: 1.219 MB / 0.5591 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2711, allocations: 0 / 0.5591 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002696/0.2713, allocations: 316 kB / 0.5594 GB, free: 12.79 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.289e-05/0.2714, allocations: 47.69 kB / 0.5595 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.703e-05/0.2714, allocations: 13.25 kB / 0.5595 GB, free: 12.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.72e-05/0.2715, allocations: 15.92 kB / 0.5595 GB, free: 12.72 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.291e-05/0.2716, allocations: 23.95 kB / 0.5595 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.2716, allocations: 8 kB / 0.5595 GB, free: 12.69 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 9.391e-05/0.2717, allocations: 140.7 kB / 0.5597 GB, free: 12.55 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3e-08/0.2717, allocations: 0 / 0.5597 GB, free: 12.55 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002438/0.2719, allocations: 119.8 kB / 0.5598 GB, free: 12.43 MB / 0.5105 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.0001603/0.2721, allocations: 148.2 kB / 0.5599 GB, free: 12.28 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0004988/0.2726, allocations: 327.9 kB / 0.5603 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.2726, allocations: 4 kB / 0.5603 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001375/0.2727, allocations: 192.1 kB / 0.5604 GB, free: 11.72 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/0.2731, allocations: 161.3 kB / 0.5606 GB, free: 11.58 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.2741, allocations: 0.7178 MB / 0.5613 GB, free: 10.84 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.258e-05/0.2742, allocations: 101.3 kB / 0.5614 GB, free: 10.72 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001222/0.2743, allocations: 60.75 kB / 0.5614 GB, free: 10.66 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.2745, allocations: 153.3 kB / 0.5616 GB, free: 10.51 MB / 0.5105 GB Notification: Performance of SimCode: time 4.8e-07/0.2745, allocations: 0 / 0.5616 GB, free: 10.51 MB / 0.5105 GB Notification: Performance of Templates: time 0.008603/0.2831, allocations: 7.314 MB / 0.5687 GB, free: 3.391 MB / 0.5105 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: 3.4340482698753476]