Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001137/0.001137, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001308/0.001308, allocations: 165 kB / 23.02 MB, free: 1.555 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.9709/0.9709, allocations: 177.1 MB / 203.4 MB, free: 5.641 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.6548/0.6548, allocations: 118.6 MB / 378.6 MB, free: 1.516 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.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_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_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 1.25 kB / 483.6 MB, free: 8.238 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.46e-05/1.653e-05, allocations: 2.312 kB / 483.6 MB, free: 8.234 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.007127/0.007144, allocations: 10.94 MB / 494.6 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002757/0.0099, allocations: 2.486 MB / 497 MB, free: 15.08 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006956/0.0106, allocations: 64.91 kB / 497.1 MB, free: 15.04 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005767/0.01117, allocations: 281.1 kB / 497.4 MB, free: 14.89 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001519/0.01269, allocations: 1.06 MB / 498.4 MB, free: 14.19 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009168/0.01361, allocations: 0.5596 MB / 499 MB, free: 13.89 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002166/0.01577, allocations: 2.408 MB / 0.4897 GB, free: 12.65 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003253/0.0161, allocations: 169.2 kB / 0.4898 GB, free: 12.56 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001784/0.01788, allocations: 1.288 MB / 0.4911 GB, free: 12.05 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008422/0.01873, allocations: 0.6656 MB / 0.4917 GB, free: 11.84 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.01888, allocations: 100.1 kB / 0.4918 GB, free: 11.76 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005931/0.01947, allocations: 268.2 kB / 0.4921 GB, free: 11.52 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002563/0.01973, allocations: 281.8 kB / 0.4923 GB, free: 11.29 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005179/0.02024, allocations: 0.4896 MB / 0.4928 GB, free: 10.84 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001484/0.02173, allocations: 1.261 MB / 0.4941 GB, free: 9.785 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.02173, allocations: 4 kB / 0.4941 GB, free: 9.781 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.02174, allocations: 0.7969 kB / 0.4941 GB, free: 9.781 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.02175, allocations: 4 kB / 0.4941 GB, free: 9.777 MB / 426.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.002363/0.02411, allocations: 1.732 MB / 0.4958 GB, free: 8.172 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.02415, allocations: 8.031 kB / 0.4958 GB, free: 8.164 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006274/0.02477, allocations: 306.4 kB / 0.4961 GB, free: 7.875 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/0.02631, allocations: 0.9018 MB / 0.4969 GB, free: 7.074 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.857e-05/0.02637, allocations: 70.38 kB / 0.497 GB, free: 7.004 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.02651, allocations: 112.9 kB / 0.4971 GB, free: 6.895 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.02788, allocations: 1.075 MB / 0.4982 GB, free: 5.879 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.0279, allocations: 192 / 0.4982 GB, free: 5.879 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.301e-05/0.02797, allocations: 43.94 kB / 0.4982 GB, free: 5.836 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.02799, allocations: 24 kB / 0.4982 GB, free: 5.812 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009313/0.02892, allocations: 0.4953 MB / 0.4987 GB, free: 5.426 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003757/0.03268, allocations: 3.483 MB / 0.5021 GB, free: 1.863 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.03393, allocations: 0.7844 MB / 0.5029 GB, free: 1.055 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004512/0.03438, allocations: 286 kB / 0.5031 GB, free: 0.7695 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002091/0.03647, allocations: 1.36 MB / 0.5045 GB, free: 15.39 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.03651, allocations: 50.05 kB / 0.5045 GB, free: 15.33 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 2.465e-06/0.03651, allocations: 0 / 0.5045 GB, free: 15.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.005837/0.04235, allocations: 3.168 MB / 0.5076 GB, free: 12.05 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.0424, allocations: 90.27 kB / 0.5077 GB, free: 11.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000756/0.04315, allocations: 0.7511 MB / 0.5084 GB, free: 11.17 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.006e-05/0.04322, allocations: 53.64 kB / 0.5085 GB, free: 11.11 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000337/0.04356, allocations: 0.5547 MB / 0.509 GB, free: 10.55 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002847/0.04384, allocations: 440.2 kB / 0.5094 GB, free: 10.12 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002723/0.04412, allocations: 200.6 kB / 0.5096 GB, free: 9.914 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.04428, allocations: 0.5199 MB / 0.5101 GB, free: 9.387 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004155/0.04469, allocations: 206.5 kB / 0.5103 GB, free: 9.188 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008029/0.0455, allocations: 455.5 kB / 0.5108 GB, free: 8.648 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.04656, allocations: 0.7735 MB / 0.5115 GB, free: 7.789 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.04657, allocations: 11.88 kB / 0.5115 GB, free: 7.777 MB / 442.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001888/0.04846, allocations: 1.15 MB / 0.5127 GB, free: 6.582 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.04848, allocations: 8 kB / 0.5127 GB, free: 6.574 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.04849, allocations: 4 kB / 0.5127 GB, free: 6.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008283/0.04931, allocations: 325.4 kB / 0.513 GB, free: 6.219 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006123/0.04993, allocations: 227.6 kB / 0.5132 GB, free: 5.996 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007471/0.0574, allocations: 14.62 MB / 0.5275 GB, free: 6.398 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004496/0.05785, allocations: 39.98 kB / 0.5275 GB, free: 6.359 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.714e-05/0.05793, allocations: 48.08 kB / 0.5276 GB, free: 6.312 MB / 458.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.0002936/0.05823, allocations: 220.3 kB / 0.5278 GB, free: 6.086 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002331/0.05846, allocations: 167.2 kB / 0.5279 GB, free: 5.922 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002232/0.06069, allocations: 1.455 MB / 0.5294 GB, free: 4.398 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.0607, allocations: 12 kB / 0.5294 GB, free: 4.387 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.06071, allocations: 7.938 kB / 0.5294 GB, free: 4.379 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.06072, allocations: 3.984 kB / 0.5294 GB, free: 4.375 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003349/0.06407, allocations: 2.212 MB / 0.5315 GB, free: 2.059 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.06408, allocations: 0 / 0.5315 GB, free: 2.059 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005536/0.06463, allocations: 187.8 kB / 0.5317 GB, free: 1.875 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008298/0.06546, allocations: 333.2 kB / 0.532 GB, free: 1.516 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-05/0.06553, allocations: 39.97 kB / 0.5321 GB, free: 1.477 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007234/0.07276, allocations: 14.62 MB / 0.5464 GB, free: 1.871 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.07277, allocations: 7.938 kB / 0.5464 GB, free: 1.863 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002289/0.07506, allocations: 1.573 MB / 0.5479 GB, free: 224 kB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003329/0.07539, allocations: 203.1 kB / 0.5481 GB, free: 20 kB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001221/0.07551, allocations: 39.94 kB / 0.5481 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004459/0.07596, allocations: 35.94 kB / 0.5482 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.07616, allocations: 108.9 kB / 0.5483 GB, free: 15.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.006e-05/0.07623, allocations: 39.98 kB / 0.5483 GB, free: 15.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004345/0.07666, allocations: 0.5126 MB / 0.5488 GB, free: 15.28 MB / 490.7 MB Notification: Performance of sort global known variables: time 4e-08/0.07666, allocations: 0 / 0.5488 GB, free: 15.28 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0009268/0.07759, allocations: 367.9 kB / 0.5492 GB, free: 14.92 MB / 490.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.0002361/0.07782, allocations: 165.2 kB / 0.5493 GB, free: 14.75 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001654/0.07948, allocations: 2.111 MB / 0.5514 GB, free: 12.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.07948, allocations: 4 kB / 0.5514 GB, free: 12.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00135/0.08083, allocations: 1.823 MB / 0.5532 GB, free: 10.53 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.08204, allocations: 0.501 MB / 0.5537 GB, free: 10.04 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003137/0.08518, allocations: 2.423 MB / 0.556 GB, free: 7.555 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001619/0.08534, allocations: 236 kB / 0.5562 GB, free: 7.301 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0004565/0.08579, allocations: 225.2 kB / 0.5565 GB, free: 7.078 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002132/0.08601, allocations: 120.4 kB / 0.5566 GB, free: 6.957 MB / 490.7 MB Notification: Performance of SimCode: time 9.92e-07/0.08601, allocations: 4 kB / 0.5566 GB, free: 6.953 MB / 490.7 MB Notification: Performance of Templates: time 0.02654/0.1125, allocations: 24.21 MB / 0.5802 GB, free: 15.23 MB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_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.311627584975213]