Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.0009365/0.0009365, allocations: 80.88 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.0009599/0.0009599, allocations: 181 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.8833/0.8833, allocations: 177.2 MB / 203.8 MB, free: 5.492 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.624/0.624, allocations: 118.6 MB / 378.9 MB, free: 1.359 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.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 430.8 MB, free: 13.38 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.015e-05/1.137e-05, allocations: 9.906 kB / 430.8 MB, free: 13.37 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.2494/0.2494, allocations: 131 MB / 0.5486 GB, free: 8.418 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.001948/0.2514, allocations: 1.935 MB / 0.5505 GB, free: 6.488 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000221/0.2516, allocations: 43.62 kB / 0.5505 GB, free: 6.445 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0003886/0.252, allocations: 166.6 kB / 0.5507 GB, free: 6.281 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0006687/0.2526, allocations: 0.5337 MB / 0.5512 GB, free: 5.746 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003284/0.253, allocations: 279.2 kB / 0.5515 GB, free: 5.473 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0006604/0.2536, allocations: 1.106 MB / 0.5526 GB, free: 4.363 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.2538, allocations: 113.1 kB / 0.5527 GB, free: 4.246 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005351/0.2543, allocations: 0.5998 MB / 0.5533 GB, free: 3.645 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003679/0.2547, allocations: 422.9 kB / 0.5537 GB, free: 3.23 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 4.476e-05/0.2547, allocations: 44 kB / 0.5537 GB, free: 3.188 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004681/0.2552, allocations: 231.6 kB / 0.5539 GB, free: 2.961 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 8.285e-05/0.2553, allocations: 127.3 kB / 0.554 GB, free: 2.836 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001445/0.2554, allocations: 219.5 kB / 0.5543 GB, free: 2.621 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0005143/0.2559, allocations: 0.6459 MB / 0.5549 GB, free: 1.973 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2559, allocations: 0 / 0.5549 GB, free: 1.973 MB / 0.4948 GB Notification: Performance of FrontEnd: time 8.32e-07/0.2559, allocations: 4 kB / 0.5549 GB, free: 1.969 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.668e-06/0.2559, allocations: 0 / 0.5549 GB, free: 1.969 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.0008302/0.2568, allocations: 0.8757 MB / 0.5557 GB, free: 1.07 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 2.594e-05/0.2568, allocations: 8.031 kB / 0.5557 GB, free: 1.062 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002393/0.257, allocations: 128.6 kB / 0.5559 GB, free: 0.9375 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004786/0.2575, allocations: 489.3 kB / 0.5563 GB, free: 444 kB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.2575, allocations: 33.38 kB / 0.5564 GB, free: 412 kB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.112e-05/0.2576, allocations: 40.38 kB / 0.5564 GB, free: 372 kB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003162/0.2579, allocations: 364.7 kB / 0.5568 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.2579, allocations: 4.125 kB / 0.5568 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.132e-05/0.2579, allocations: 20.38 kB / 0.5568 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.2579, allocations: 19.88 kB / 0.5568 GB, free: 15.94 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.2581, allocations: 169.6 kB / 0.557 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.2592, allocations: 1.143 MB / 0.5581 GB, free: 14.6 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.2595, allocations: 205.7 kB / 0.5583 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.055e-05/0.2596, allocations: 90.31 kB / 0.5584 GB, free: 14.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008492/0.2604, allocations: 0.6333 MB / 0.559 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.2605, allocations: 43 kB / 0.559 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=47): time 1.273e-06/0.2605, allocations: 0 / 0.559 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=47): time 0.0005347/0.261, allocations: 367.5 kB / 0.5594 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.695e-05/0.261, allocations: 55.91 kB / 0.5594 GB, free: 13.16 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/0.2612, allocations: 419.1 kB / 0.5598 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.2613, allocations: 29.7 kB / 0.5598 GB, free: 12.71 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.362e-05/0.2613, allocations: 221.9 kB / 0.5601 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.259e-05/0.2614, allocations: 170.5 kB / 0.5602 GB, free: 12.32 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.476e-05/0.2615, allocations: 82.16 kB / 0.5603 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.613e-05/0.2616, allocations: 370.7 kB / 0.5607 GB, free: 11.86 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.151e-05/0.2616, allocations: 44.97 kB / 0.5607 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002857/0.2619, allocations: 105.7 kB / 0.5608 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.2621, allocations: 186.1 kB / 0.561 GB, free: 11.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.2621, allocations: 4.672 kB / 0.561 GB, free: 11.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0002831/0.2624, allocations: 276.1 kB / 0.5612 GB, free: 11.22 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.2624, allocations: 11.98 kB / 0.5613 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.2624, allocations: 4 kB / 0.5613 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001537/0.2626, allocations: 57.66 kB / 0.5613 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.2627, allocations: 83.83 kB / 0.5614 GB, free: 11.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009622/0.2637, allocations: 2.398 MB / 0.5637 GB, free: 8.488 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.2638, allocations: 28.47 kB / 0.5638 GB, free: 8.461 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.2638, allocations: 12.55 kB / 0.5638 GB, free: 8.449 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.2639, allocations: 144.6 kB / 0.5639 GB, free: 8.297 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.565e-05/0.264, allocations: 47.94 kB / 0.564 GB, free: 8.25 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004898/0.2645, allocations: 0.494 MB / 0.5644 GB, free: 7.738 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2645, allocations: 4 kB / 0.5644 GB, free: 7.734 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.2645, allocations: 0 / 0.5644 GB, free: 7.734 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.2645, allocations: 3.984 kB / 0.5644 GB, free: 7.73 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006369/0.2651, allocations: 0.6512 MB / 0.5651 GB, free: 7.035 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.2651, allocations: 12.8 kB / 0.5651 GB, free: 7.023 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.2652, allocations: 63.91 kB / 0.5652 GB, free: 6.961 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001232/0.2653, allocations: 69.84 kB / 0.5652 GB, free: 6.887 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.2654, allocations: 12 kB / 0.5652 GB, free: 6.875 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008793/0.2662, allocations: 2.396 MB / 0.5676 GB, free: 4.309 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2662, allocations: 4.062 kB / 0.5676 GB, free: 4.305 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005869/0.2668, allocations: 441.6 kB / 0.568 GB, free: 3.84 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 9.237e-05/0.2669, allocations: 71.52 kB / 0.5681 GB, free: 3.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.674e-05/0.267, allocations: 19.92 kB / 0.5681 GB, free: 3.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.2671, allocations: 8 kB / 0.5681 GB, free: 3.742 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.398e-05/0.2671, allocations: 43.81 kB / 0.5681 GB, free: 3.699 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.2671, allocations: 8 kB / 0.5681 GB, free: 3.691 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001193/0.2672, allocations: 196.4 kB / 0.5683 GB, free: 3.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4e-08/0.2672, allocations: 0 / 0.5683 GB, free: 3.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002892/0.2675, allocations: 171.7 kB / 0.5685 GB, free: 3.332 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001353/0.2677, allocations: 116.8 kB / 0.5686 GB, free: 3.207 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003613/0.268, allocations: 439.5 kB / 0.569 GB, free: 2.75 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.373e-06/0.268, allocations: 12 kB / 0.569 GB, free: 2.738 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002106/0.2683, allocations: 357.8 kB / 0.5694 GB, free: 2.359 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005201/0.2688, allocations: 227.4 kB / 0.5696 GB, free: 2.16 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.2701, allocations: 1.06 MB / 0.5706 GB, free: 1.055 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.99e-05/0.2701, allocations: 130 kB / 0.5708 GB, free: 0.9062 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001972/0.2703, allocations: 110.8 kB / 0.5709 GB, free: 0.8086 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002712/0.2706, allocations: 201.2 kB / 0.5711 GB, free: 0.6133 MB / 0.5105 GB Notification: Performance of SimCode: time 5.31e-07/0.2706, allocations: 0 / 0.5711 GB, free: 0.6133 MB / 0.5105 GB Notification: Performance of Templates: time 0.01145/0.2821, allocations: 10.41 MB / 0.5812 GB, free: 6.52 MB / 0.5261 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_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.511467873118818]