Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.0008957/0.0008957, allocations: 80.75 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.0009208/0.0009208, 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.8734/0.8734, allocations: 177.1 MB / 203.8 MB, free: 5.48 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.626/0.626, allocations: 118.6 MB / 378.9 MB, free: 1.305 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.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_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_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 430.8 MB, free: 13.32 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.161e-05/1.319e-05, allocations: 2.312 kB / 430.8 MB, free: 13.32 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.2524/0.2525, allocations: 131 MB / 0.5486 GB, free: 8.207 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.001918/0.2544, allocations: 1.927 MB / 0.5505 GB, free: 6.285 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000216/0.2546, allocations: 43.62 kB / 0.5505 GB, free: 6.242 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0003892/0.255, allocations: 166.6 kB / 0.5507 GB, free: 6.078 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0006686/0.2557, allocations: 0.5338 MB / 0.5512 GB, free: 5.543 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.000359/0.256, allocations: 279.1 kB / 0.5515 GB, free: 5.27 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0007027/0.2567, allocations: 1.11 MB / 0.5526 GB, free: 4.156 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.2569, allocations: 112.1 kB / 0.5527 GB, free: 4.043 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005534/0.2574, allocations: 0.5998 MB / 0.5532 GB, free: 3.441 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003743/0.2578, allocations: 426.9 kB / 0.5537 GB, free: 3.023 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 4.594e-05/0.2578, allocations: 40 kB / 0.5537 GB, free: 2.984 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002736/0.2581, allocations: 227.6 kB / 0.5539 GB, free: 2.762 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 8.187e-05/0.2582, allocations: 123.3 kB / 0.554 GB, free: 2.641 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0003638/0.2586, allocations: 231.4 kB / 0.5542 GB, free: 2.414 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0005095/0.2591, allocations: 0.6421 MB / 0.5549 GB, free: 1.77 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2591, allocations: 0 / 0.5549 GB, free: 1.77 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2591, allocations: 0 / 0.5549 GB, free: 1.77 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.2591, allocations: 4 kB / 0.5549 GB, free: 1.766 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.000828/0.2599, allocations: 0.8757 MB / 0.5557 GB, free: 0.8672 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 2.681e-05/0.2599, allocations: 12.03 kB / 0.5557 GB, free: 0.8555 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002411/0.2602, allocations: 132.5 kB / 0.5559 GB, free: 0.7266 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000474/0.2607, allocations: 485.3 kB / 0.5563 GB, free: 232 kB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.2607, allocations: 29.38 kB / 0.5564 GB, free: 204 kB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.084e-05/0.2607, allocations: 44.38 kB / 0.5564 GB, free: 160 kB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003263/0.261, allocations: 376.6 kB / 0.5568 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2611, allocations: 192 / 0.5568 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.2611, allocations: 20.38 kB / 0.5568 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.2611, allocations: 11.94 kB / 0.5568 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.2613, allocations: 169.7 kB / 0.557 GB, free: 15.57 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.2624, allocations: 1.138 MB / 0.5581 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.2627, allocations: 204.4 kB / 0.5583 GB, free: 14.18 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.8e-05/0.2628, allocations: 98.3 kB / 0.5584 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000861/0.2636, allocations: 0.6333 MB / 0.559 GB, free: 13.44 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.2636, allocations: 35 kB / 0.559 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=47): time 1.333e-06/0.2636, allocations: 0 / 0.559 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=47): time 0.0005375/0.2642, allocations: 371.6 kB / 0.5594 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/0.2642, allocations: 55.91 kB / 0.5594 GB, free: 12.95 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002147/0.2644, allocations: 411.1 kB / 0.5598 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/0.2644, allocations: 37.7 kB / 0.5598 GB, free: 12.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.447e-05/0.2645, allocations: 217.9 kB / 0.56 GB, free: 12.28 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.541e-05/0.2646, allocations: 174.5 kB / 0.5602 GB, free: 12.11 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.413e-05/0.2647, allocations: 74.16 kB / 0.5603 GB, free: 12.03 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.523e-05/0.2648, allocations: 370.7 kB / 0.5606 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.005e-05/0.2648, allocations: 42.67 kB / 0.5607 GB, free: 11.62 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.92e-05/0.2649, allocations: 117.6 kB / 0.5608 GB, free: 11.49 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.2651, allocations: 198.1 kB / 0.561 GB, free: 11.28 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2651, allocations: 0 / 0.561 GB, free: 11.28 MB / 0.5105 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0004908/0.2656, allocations: 276 kB / 0.5612 GB, free: 11 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.2656, allocations: 4 kB / 0.5612 GB, free: 11 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.2656, allocations: 4.125 kB / 0.5613 GB, free: 10.99 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001579/0.2658, allocations: 49.67 kB / 0.5613 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.2659, allocations: 91.83 kB / 0.5614 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000966/0.2669, allocations: 2.395 MB / 0.5637 GB, free: 8.281 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.267, allocations: 31.78 kB / 0.5638 GB, free: 8.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.924e-05/0.267, allocations: 17.47 kB / 0.5638 GB, free: 8.234 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 9.99e-05/0.2671, allocations: 128.6 kB / 0.5639 GB, free: 8.098 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.346e-05/0.2672, allocations: 56.02 kB / 0.5639 GB, free: 8.043 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004906/0.2677, allocations: 499.4 kB / 0.5644 GB, free: 7.539 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2677, allocations: 8 kB / 0.5644 GB, free: 7.531 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.2677, allocations: 0 / 0.5644 GB, free: 7.531 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.2677, allocations: 4.125 kB / 0.5644 GB, free: 7.527 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006511/0.2683, allocations: 0.6667 MB / 0.5651 GB, free: 6.816 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.2683, allocations: 0.9375 kB / 0.5651 GB, free: 6.816 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.2685, allocations: 63.91 kB / 0.5651 GB, free: 6.754 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001216/0.2686, allocations: 65.77 kB / 0.5652 GB, free: 6.684 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.2686, allocations: 11.98 kB / 0.5652 GB, free: 6.672 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000898/0.2695, allocations: 2.394 MB / 0.5676 GB, free: 4.109 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2695, allocations: 4 kB / 0.5676 GB, free: 4.105 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003925/0.2699, allocations: 449.6 kB / 0.568 GB, free: 3.633 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 9.468e-05/0.27, allocations: 79.52 kB / 0.5681 GB, free: 3.555 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.551e-05/0.27, allocations: 11.94 kB / 0.5681 GB, free: 3.543 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003205/0.2703, allocations: 12 kB / 0.5681 GB, free: 3.531 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.58e-05/0.2704, allocations: 35.88 kB / 0.5681 GB, free: 3.496 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.2704, allocations: 11.98 kB / 0.5681 GB, free: 3.484 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001201/0.2705, allocations: 184.4 kB / 0.5683 GB, free: 3.305 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5e-08/0.2705, allocations: 0 / 0.5683 GB, free: 3.305 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003013/0.2708, allocations: 183.8 kB / 0.5685 GB, free: 3.125 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.0001424/0.271, allocations: 124.9 kB / 0.5686 GB, free: 2.992 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003688/0.2713, allocations: 448 kB / 0.569 GB, free: 2.527 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.2713, allocations: 4 kB / 0.569 GB, free: 2.523 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002146/0.2715, allocations: 357.8 kB / 0.5694 GB, free: 2.145 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005276/0.2721, allocations: 219.8 kB / 0.5696 GB, free: 1.953 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.2734, allocations: 1.063 MB / 0.5706 GB, free: 0.8477 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.146e-05/0.2735, allocations: 126 kB / 0.5707 GB, free: 0.7031 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0002039/0.2737, allocations: 114.5 kB / 0.5709 GB, free: 0.6055 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002729/0.2739, allocations: 201.1 kB / 0.571 GB, free: 420 kB / 0.5105 GB Notification: Performance of SimCode: time 3.61e-07/0.2739, allocations: 0 / 0.571 GB, free: 420 kB / 0.5105 GB Notification: Performance of Templates: time 0.01172/0.2857, allocations: 10.4 MB / 0.5812 GB, free: 6.309 MB / 0.5261 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_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.4455417268909514]