Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.0009159/0.0009159, 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.0009368/0.0009368, allocations: 173 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.8665/0.8665, allocations: 177.1 MB / 203.8 MB, free: 5.488 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.6197/0.6197, allocations: 118.6 MB / 378.9 MB, free: 1.371 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.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_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_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 430.8 MB, free: 13.38 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.367e-06/1.05e-05, allocations: 2.312 kB / 430.8 MB, free: 13.37 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.2421/0.2421, allocations: 130.2 MB / 0.5478 GB, free: 9.211 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.00162/0.2437, allocations: 1.8 MB / 0.5496 GB, free: 7.418 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000168/0.2439, allocations: 27.75 kB / 0.5496 GB, free: 7.391 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0003438/0.2442, allocations: 127 kB / 0.5497 GB, free: 7.266 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0005135/0.2447, allocations: 433 kB / 0.5501 GB, free: 6.84 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003667/0.2451, allocations: 271.2 kB / 0.5504 GB, free: 6.574 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0005071/0.2456, allocations: 0.8177 MB / 0.5512 GB, free: 5.758 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.2457, allocations: 83.34 kB / 0.5513 GB, free: 5.672 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004533/0.2462, allocations: 466.6 kB / 0.5517 GB, free: 5.215 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000282/0.2464, allocations: 311.2 kB / 0.552 GB, free: 4.91 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 3.681e-05/0.2465, allocations: 40 kB / 0.5521 GB, free: 4.871 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002808/0.2468, allocations: 267.4 kB / 0.5523 GB, free: 4.609 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 7.082e-05/0.2468, allocations: 87.55 kB / 0.5524 GB, free: 4.523 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.247, allocations: 167.6 kB / 0.5526 GB, free: 4.359 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0004743/0.2474, allocations: 0.5449 MB / 0.5531 GB, free: 3.812 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.2474, allocations: 0 / 0.5531 GB, free: 3.812 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2474, allocations: 0 / 0.5531 GB, free: 3.812 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.2474, allocations: 0 / 0.5531 GB, free: 3.812 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.0007917/0.2482, allocations: 0.7583 MB / 0.5538 GB, free: 3.027 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 2.53e-05/0.2483, allocations: 8.031 kB / 0.5538 GB, free: 3.02 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.2484, allocations: 76.75 kB / 0.5539 GB, free: 2.945 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003486/0.2487, allocations: 351.8 kB / 0.5542 GB, free: 2.574 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.2487, allocations: 25.38 kB / 0.5543 GB, free: 2.551 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.721e-05/0.2488, allocations: 36.33 kB / 0.5543 GB, free: 2.516 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002969/0.2491, allocations: 320 kB / 0.5546 GB, free: 2.18 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.2491, allocations: 4.188 kB / 0.5546 GB, free: 2.176 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.865e-05/0.2491, allocations: 12.38 kB / 0.5546 GB, free: 2.164 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002199/0.2493, allocations: 11.94 kB / 0.5546 GB, free: 2.152 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001513/0.2495, allocations: 123.3 kB / 0.5548 GB, free: 2.027 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009159/0.2504, allocations: 0.9866 MB / 0.5557 GB, free: 1.008 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002647/0.2506, allocations: 199.1 kB / 0.5559 GB, free: 0.8047 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.508e-05/0.2507, allocations: 72.83 kB / 0.556 GB, free: 0.7305 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006774/0.2514, allocations: 0.5264 MB / 0.5565 GB, free: 196 kB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001477/0.2515, allocations: 147.9 kB / 0.5566 GB, free: 36 kB / 0.4948 GB Notification: Performance of pre-optimization done (n=37): time 1.332e-06/0.2515, allocations: 0 / 0.5566 GB, free: 36 kB / 0.4948 GB Notification: Performance of matching and sorting (n=37): time 0.0004533/0.252, allocations: 286.7 kB / 0.5569 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.404e-05/0.252, allocations: 55.41 kB / 0.557 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.2522, allocations: 319.2 kB / 0.5573 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.2522, allocations: 37.7 kB / 0.5573 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.198e-05/0.2523, allocations: 189.5 kB / 0.5575 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.14e-05/0.2523, allocations: 142.7 kB / 0.5576 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.126e-05/0.2524, allocations: 73.98 kB / 0.5577 GB, free: 14.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.828e-05/0.2525, allocations: 354.7 kB / 0.558 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.693e-05/0.2526, allocations: 70.42 kB / 0.5581 GB, free: 14.47 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.263e-05/0.2526, allocations: 117.2 kB / 0.5582 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.2528, allocations: 203.5 kB / 0.5584 GB, free: 14.11 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2528, allocations: 0 / 0.5584 GB, free: 14.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002777/0.2531, allocations: 302 kB / 0.5587 GB, free: 13.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.2531, allocations: 33.7 kB / 0.5587 GB, free: 13.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.2531, allocations: 1.375 kB / 0.5587 GB, free: 13.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001261/0.2532, allocations: 36.98 kB / 0.5588 GB, free: 13.72 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.2534, allocations: 75.89 kB / 0.5588 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005768/0.254, allocations: 1.235 MB / 0.56 GB, free: 12.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.2541, allocations: 39.77 kB / 0.5601 GB, free: 12.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.2541, allocations: 12.55 kB / 0.5601 GB, free: 12.28 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 9.269e-05/0.2542, allocations: 136.6 kB / 0.5602 GB, free: 12.13 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.02e-05/0.2542, allocations: 47.84 kB / 0.5603 GB, free: 12.09 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003654/0.2546, allocations: 355.2 kB / 0.5606 GB, free: 11.73 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.2546, allocations: 4 kB / 0.5606 GB, free: 11.73 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.2546, allocations: 0 / 0.5606 GB, free: 11.73 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2546, allocations: 4 kB / 0.5606 GB, free: 11.73 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005354/0.2551, allocations: 0.5431 MB / 0.5611 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2551, allocations: 0 / 0.5611 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/0.2553, allocations: 59.91 kB / 0.5612 GB, free: 11.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.725e-05/0.2553, allocations: 40.88 kB / 0.5612 GB, free: 11.05 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.2554, allocations: 8 kB / 0.5612 GB, free: 11.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007304/0.2561, allocations: 1.243 MB / 0.5625 GB, free: 9.711 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2561, allocations: 3.938 kB / 0.5625 GB, free: 9.707 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003367/0.2564, allocations: 379.7 kB / 0.5628 GB, free: 9.312 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 7.538e-05/0.2565, allocations: 67.69 kB / 0.5629 GB, free: 9.246 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.2565, allocations: 4 kB / 0.5629 GB, free: 9.242 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.2566, allocations: 17.3 kB / 0.5629 GB, free: 9.227 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.42e-05/0.2567, allocations: 39.88 kB / 0.5629 GB, free: 9.188 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.2567, allocations: 7.984 kB / 0.563 GB, free: 9.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 8.663e-05/0.2568, allocations: 136.7 kB / 0.5631 GB, free: 9.047 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3e-08/0.2568, allocations: 0 / 0.5631 GB, free: 9.047 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002708/0.2571, allocations: 167.6 kB / 0.5632 GB, free: 8.883 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.0001735/0.2572, allocations: 148.2 kB / 0.5634 GB, free: 8.73 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003278/0.2576, allocations: 378.5 kB / 0.5637 GB, free: 8.328 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.2576, allocations: 5.438 kB / 0.5637 GB, free: 8.324 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.2577, allocations: 235.1 kB / 0.564 GB, free: 8.078 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004317/0.2582, allocations: 185.4 kB / 0.5641 GB, free: 7.914 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/0.2593, allocations: 0.8065 MB / 0.5649 GB, free: 7.07 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.923e-05/0.2594, allocations: 113.8 kB / 0.565 GB, free: 6.938 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001628/0.2595, allocations: 84.88 kB / 0.5651 GB, free: 6.871 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002322/0.2597, allocations: 177.1 kB / 0.5653 GB, free: 6.695 MB / 0.5105 GB Notification: Performance of SimCode: time 3.51e-07/0.2597, allocations: 4 kB / 0.5653 GB, free: 6.691 MB / 0.5105 GB Notification: Performance of Templates: time 0.01029/0.27, allocations: 9.013 MB / 0.5741 GB, free: 13.92 MB / 0.5261 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_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.3012479608878493]