Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.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.001014/0.001014, 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.001152/0.001152, 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.9794/0.9794, allocations: 177.1 MB / 203.8 MB, free: 5.473 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.7282/0.7282, allocations: 118.6 MB / 378.9 MB, free: 1.328 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.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 430.9 MB, free: 13.28 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.293e-05/1.42e-05, allocations: 2.312 kB / 430.9 MB, free: 13.27 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.008425/0.008439, allocations: 10.87 MB / 441.7 MB, free: 2.348 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1941/0.2026, allocations: 2.557 MB / 444.3 MB, free: 16.36 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.2038, allocations: 70.48 kB / 444.4 MB, free: 16.36 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006589/0.2045, allocations: 281 kB / 444.6 MB, free: 16.36 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001907/0.2064, allocations: 1.065 MB / 445.7 MB, free: 16.16 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009947/0.2074, allocations: 0.5568 MB / 446.3 MB, free: 16.13 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002139/0.2095, allocations: 2.395 MB / 448.6 MB, free: 15.44 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003242/0.2099, allocations: 176.6 kB / 448.8 MB, free: 15.39 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001898/0.2118, allocations: 1.293 MB / 450.1 MB, free: 15.25 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001003/0.2128, allocations: 0.6427 MB / 450.8 MB, free: 15.17 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000193/0.213, allocations: 98.81 kB / 450.9 MB, free: 15.17 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006818/0.2136, allocations: 271.2 kB / 451.1 MB, free: 15.16 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.2138, allocations: 281.6 kB / 451.4 MB, free: 15.09 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005429/0.2144, allocations: 0.4902 MB / 451.9 MB, free: 15.03 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001585/0.216, allocations: 1.251 MB / 453.1 MB, free: 14.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.216, allocations: 4.812 kB / 453.1 MB, free: 14.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.216, allocations: 0 / 453.1 MB, free: 14.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.207e-05/0.216, allocations: 0.5 kB / 453.1 MB, free: 14.82 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.002313/0.2183, allocations: 1.597 MB / 454.7 MB, free: 14.06 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.2183, allocations: 9.094 kB / 454.7 MB, free: 14.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006797/0.219, allocations: 257 kB / 455 MB, free: 14.03 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001293/0.2203, allocations: 0.7922 MB / 455.8 MB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.755e-05/0.2204, allocations: 72.41 kB / 455.9 MB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.2205, allocations: 101.6 kB / 456 MB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009439/0.2214, allocations: 0.9974 MB / 457 MB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.2214, allocations: 4.312 kB / 457 MB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.956e-05/0.2215, allocations: 42.25 kB / 457 MB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.83e-05/0.2215, allocations: 21.34 kB / 457 MB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000563/0.2221, allocations: 373.7 kB / 457.4 MB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002925/0.225, allocations: 2.453 MB / 459.8 MB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008137/0.2258, allocations: 0.6632 MB / 460.5 MB, free: 11.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002536/0.2261, allocations: 214.7 kB / 460.7 MB, free: 11.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001465/0.2275, allocations: 1.015 MB / 461.7 MB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.2276, allocations: 47.2 kB / 461.8 MB, free: 10.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 3.176e-06/0.2276, allocations: 0 / 461.8 MB, free: 10.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.004611/0.2322, allocations: 2.582 MB / 464.4 MB, free: 7.672 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.537e-05/0.2322, allocations: 97.39 kB / 464.5 MB, free: 7.562 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004382/0.2327, allocations: 0.6872 MB / 465.1 MB, free: 6.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.882e-05/0.2327, allocations: 45.7 kB / 465.2 MB, free: 6.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.2328, allocations: 382.4 kB / 465.6 MB, free: 6.594 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.233, allocations: 446.7 kB / 466 MB, free: 6.184 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002127/0.2332, allocations: 200.4 kB / 466.2 MB, free: 6.008 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.078e-05/0.2333, allocations: 351.2 kB / 466.5 MB, free: 5.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001975/0.2335, allocations: 130.6 kB / 466.7 MB, free: 5.555 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.2337, allocations: 332.9 kB / 467 MB, free: 5.188 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005843/0.2343, allocations: 0.598 MB / 467.6 MB, free: 4.562 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.2343, allocations: 3.375 kB / 467.6 MB, free: 4.562 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001099/0.2354, allocations: 0.8029 MB / 468.4 MB, free: 3.773 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.2355, allocations: 11.94 kB / 468.4 MB, free: 3.762 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.2355, allocations: 6.875 kB / 468.4 MB, free: 3.758 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006762/0.2361, allocations: 278.5 kB / 468.7 MB, free: 3.473 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006011/0.2367, allocations: 240.6 kB / 468.9 MB, free: 3.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004815/0.2416, allocations: 9.869 MB / 478.8 MB, free: 8.809 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004035/0.242, allocations: 39.98 kB / 478.8 MB, free: 8.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.602e-05/0.242, allocations: 43.92 kB / 478.9 MB, free: 8.727 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (126): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (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.0002356/0.2423, allocations: 180.5 kB / 479 MB, free: 8.539 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.2424, allocations: 109.9 kB / 479.1 MB, free: 8.434 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.2441, allocations: 1.181 MB / 480.3 MB, free: 7.316 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.637e-06/0.2441, allocations: 12 kB / 480.3 MB, free: 7.305 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.2441, allocations: 4 kB / 480.3 MB, free: 7.301 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.2441, allocations: 3.984 kB / 480.3 MB, free: 7.297 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/0.2464, allocations: 1.542 MB / 481.9 MB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.2464, allocations: 0 / 481.9 MB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006/0.247, allocations: 203.7 kB / 482.1 MB, free: 5.594 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007124/0.2477, allocations: 312.2 kB / 482.4 MB, free: 5.277 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.704e-05/0.2477, allocations: 27.98 kB / 482.4 MB, free: 5.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005195/0.2529, allocations: 9.881 MB / 492.3 MB, free: 10.76 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2529, allocations: 0 / 492.3 MB, free: 10.76 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/0.2544, allocations: 1.138 MB / 493.4 MB, free: 9.602 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/0.2547, allocations: 135.2 kB / 493.6 MB, free: 9.469 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.2548, allocations: 24 kB / 493.6 MB, free: 9.445 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000421/0.2552, allocations: 44.77 kB / 493.6 MB, free: 9.402 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001816/0.2554, allocations: 104.8 kB / 493.7 MB, free: 9.301 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.945e-05/0.2555, allocations: 27.98 kB / 493.8 MB, free: 9.273 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003339/0.2558, allocations: 367.1 kB / 494.1 MB, free: 8.945 MB / 442.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2558, allocations: 0 / 494.1 MB, free: 8.945 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001002/0.2568, allocations: 367.9 kB / 494.5 MB, free: 8.586 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.inlet.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 (97): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002542/0.2571, allocations: 145.6 kB / 494.6 MB, free: 8.441 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.2586, allocations: 1.541 MB / 496.2 MB, free: 6.816 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/0.2586, allocations: 8 kB / 496.2 MB, free: 6.809 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.2597, allocations: 1.321 MB / 497.5 MB, free: 5.402 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001466/0.2612, allocations: 0.4978 MB / 498 MB, free: 4.934 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003194/0.2644, allocations: 2.255 MB / 0.4885 GB, free: 2.652 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001935/0.2646, allocations: 232.1 kB / 0.4887 GB, free: 2.398 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004959/0.2651, allocations: 224.6 kB / 0.489 GB, free: 2.223 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006967/0.2658, allocations: 419 kB / 0.4894 GB, free: 1.805 MB / 442.7 MB Notification: Performance of SimCode: time 8.72e-07/0.2658, allocations: 0 / 0.4894 GB, free: 1.805 MB / 442.7 MB Notification: Performance of Templates: time 0.02902/0.2948, allocations: 26.37 MB / 0.5151 GB, free: 8.008 MB / 474.7 MB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_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: 4.20597535604611]