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.001432/0.001432, 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.001056/0.001056, allocations: 169 kB / 23.02 MB, free: 1.551 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.9061/0.9061, allocations: 177.1 MB / 203.4 MB, free: 5.613 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.6437/0.6437, allocations: 118.6 MB / 378.6 MB, free: 1.512 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.703e-06/1.703e-06, allocations: 0 / 483.6 MB, free: 8.23 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.59e-05/1.76e-05, allocations: 7.688 kB / 483.6 MB, free: 8.223 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.00761/0.007627, allocations: 10.93 MB / 494.6 MB, free: 0.8164 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003297/0.01092, allocations: 2.484 MB / 497 MB, free: 15.08 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000575/0.0115, allocations: 65.44 kB / 497.1 MB, free: 15.04 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000576/0.01208, allocations: 271.5 kB / 497.4 MB, free: 14.89 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001633/0.01371, allocations: 1.079 MB / 498.4 MB, free: 14.17 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009816/0.01469, allocations: 0.5558 MB / 499 MB, free: 13.88 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002175/0.01686, allocations: 2.407 MB / 0.4897 GB, free: 12.64 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003274/0.01719, allocations: 169.1 kB / 0.4898 GB, free: 12.55 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001791/0.01898, allocations: 1.299 MB / 0.4911 GB, free: 12.04 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008326/0.01982, allocations: 0.6614 MB / 0.4917 GB, free: 11.82 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000148/0.01996, allocations: 104 kB / 0.4918 GB, free: 11.72 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005397/0.0205, allocations: 259.9 kB / 0.4921 GB, free: 11.49 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003014/0.0208, allocations: 284.5 kB / 0.4924 GB, free: 11.26 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004542/0.02126, allocations: 496.4 kB / 0.4928 GB, free: 10.81 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001283/0.02254, allocations: 1.254 MB / 0.4941 GB, free: 9.758 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.02255, allocations: 4 kB / 0.4941 GB, free: 9.754 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.02255, allocations: 0 / 0.4941 GB, free: 9.754 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.02256, allocations: 0 / 0.4941 GB, free: 9.754 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.001928/0.02449, allocations: 1.727 MB / 0.4957 GB, free: 8.152 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.02453, allocations: 8.875 kB / 0.4957 GB, free: 8.145 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004795/0.02501, allocations: 305.6 kB / 0.496 GB, free: 7.855 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009985/0.02601, allocations: 0.8908 MB / 0.4969 GB, free: 7.062 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.033e-05/0.02606, allocations: 74.38 kB / 0.497 GB, free: 6.992 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.02616, allocations: 105.2 kB / 0.4971 GB, free: 6.891 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.02723, allocations: 1.075 MB / 0.4981 GB, free: 5.871 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.02725, allocations: 12.11 kB / 0.4981 GB, free: 5.859 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.79e-05/0.02731, allocations: 43.94 kB / 0.4982 GB, free: 5.816 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.02732, allocations: 20 kB / 0.4982 GB, free: 5.797 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007019/0.02802, allocations: 0.4996 MB / 0.4987 GB, free: 5.406 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003083/0.03111, allocations: 3.481 MB / 0.5021 GB, free: 1.859 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009999/0.03211, allocations: 0.7861 MB / 0.5029 GB, free: 1.055 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003398/0.03245, allocations: 289.9 kB / 0.5031 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00139/0.03384, allocations: 1.356 MB / 0.5045 GB, free: 15.39 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.03387, allocations: 49.98 kB / 0.5045 GB, free: 15.33 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 2.114e-06/0.03387, allocations: 0 / 0.5045 GB, free: 15.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.004562/0.03843, allocations: 3.164 MB / 0.5076 GB, free: 12.06 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.03847, allocations: 94.27 kB / 0.5077 GB, free: 11.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005846/0.03905, allocations: 0.7511 MB / 0.5084 GB, free: 11.17 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.587e-05/0.03911, allocations: 45.7 kB / 0.5085 GB, free: 11.12 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002512/0.03936, allocations: 0.5586 MB / 0.509 GB, free: 10.55 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002029/0.03956, allocations: 440.2 kB / 0.5094 GB, free: 10.12 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000198/0.03976, allocations: 204.6 kB / 0.5096 GB, free: 9.914 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.03988, allocations: 0.516 MB / 0.5101 GB, free: 9.391 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003042/0.04018, allocations: 210.5 kB / 0.5103 GB, free: 9.188 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004146/0.0406, allocations: 461.3 kB / 0.5108 GB, free: 8.645 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007853/0.04138, allocations: 0.7696 MB / 0.5115 GB, free: 7.789 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.04139, allocations: 3.938 kB / 0.5115 GB, free: 7.785 MB / 442.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001405/0.04279, allocations: 1.157 MB / 0.5127 GB, free: 6.582 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.04281, allocations: 8.531 kB / 0.5127 GB, free: 6.574 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.04282, allocations: 4 kB / 0.5127 GB, free: 6.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006449/0.04346, allocations: 325.1 kB / 0.513 GB, free: 6.219 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004628/0.04392, allocations: 219.7 kB / 0.5132 GB, free: 6.004 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005433/0.04936, allocations: 14.63 MB / 0.5275 GB, free: 6.395 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002948/0.04965, allocations: 35.98 kB / 0.5275 GB, free: 6.359 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-05/0.04971, allocations: 44 kB / 0.5276 GB, free: 6.316 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.0002268/0.04994, allocations: 232.3 kB / 0.5278 GB, free: 6.078 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/0.05016, allocations: 167.4 kB / 0.5279 GB, free: 5.914 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/0.05185, allocations: 1.452 MB / 0.5294 GB, free: 4.395 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.05185, allocations: 12 kB / 0.5294 GB, free: 4.383 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.05186, allocations: 7.938 kB / 0.5294 GB, free: 4.375 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.05187, allocations: 7.969 kB / 0.5294 GB, free: 4.367 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00232/0.05419, allocations: 2.205 MB / 0.5315 GB, free: 2.059 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.05419, allocations: 0 / 0.5315 GB, free: 2.059 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004048/0.05459, allocations: 191.8 kB / 0.5317 GB, free: 1.871 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006273/0.05522, allocations: 329.1 kB / 0.532 GB, free: 1.516 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.326e-05/0.05528, allocations: 31.98 kB / 0.5321 GB, free: 1.484 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005376/0.06065, allocations: 14.63 MB / 0.5463 GB, free: 1.871 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.06065, allocations: 4 kB / 0.5464 GB, free: 1.867 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.06241, allocations: 1.573 MB / 0.5479 GB, free: 228 kB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002352/0.06265, allocations: 203.1 kB / 0.5481 GB, free: 24 kB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.73e-05/0.06274, allocations: 27.94 kB / 0.5481 GB, free: 16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003213/0.06307, allocations: 44.11 kB / 0.5481 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.06323, allocations: 112.9 kB / 0.5483 GB, free: 15.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.973e-05/0.06328, allocations: 43.97 kB / 0.5483 GB, free: 15.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003885/0.06367, allocations: 0.5087 MB / 0.5488 GB, free: 15.28 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/0.06367, allocations: 0 / 0.5488 GB, free: 15.28 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008415/0.06451, allocations: 367.9 kB / 0.5491 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.0002474/0.06475, allocations: 155 kB / 0.5493 GB, free: 14.76 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001583/0.06634, allocations: 2.119 MB / 0.5514 GB, free: 12.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.06634, allocations: 7.938 kB / 0.5514 GB, free: 12.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001069/0.06741, allocations: 1.815 MB / 0.5531 GB, free: 10.54 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.06859, allocations: 0.4936 MB / 0.5536 GB, free: 10.05 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003103/0.0717, allocations: 2.444 MB / 0.556 GB, free: 7.547 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001538/0.07185, allocations: 228.1 kB / 0.5562 GB, free: 7.301 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.000432/0.07228, allocations: 221.2 kB / 0.5564 GB, free: 7.082 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002036/0.07249, allocations: 112.5 kB / 0.5565 GB, free: 6.969 MB / 490.7 MB Notification: Performance of SimCode: time 9.42e-07/0.07249, allocations: 8 kB / 0.5566 GB, free: 6.961 MB / 490.7 MB Notification: Performance of Templates: time 0.02606/0.09855, allocations: 26 MB / 0.5819 GB, free: 13.47 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.0899377297610044]