Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008136/0.0008136, allocations: 167.6 kB / 16.1 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.135/1.135, allocations: 205 MB / 221.9 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007171/0.0007171, allocations: 89.14 kB / 269.9 MB, free: 8.664 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.5874/0.5874, allocations: 90.51 MB / 408.3 MB, free: 3.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.000266, allocations: 8 kB / 484.9 MB, free: 7.203 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2321, allocations: 65.8 MB / 0.5378 GB, free: 34.82 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.02568/0.2578, allocations: 40.96 MB / 0.5778 GB, free: 13.89 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.006433/0.2643, allocations: 5.321 MB / 0.5829 GB, free: 8.555 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006088/0.2649, allocations: 23.88 kB / 0.583 GB, free: 8.531 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001092/0.266, allocations: 461.5 kB / 0.5834 GB, free: 8.078 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002448/0.2685, allocations: 1.208 MB / 0.5846 GB, free: 6.863 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001767/0.2702, allocations: 0.778 MB / 0.5854 GB, free: 6.086 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001986/0.2722, allocations: 2.588 MB / 0.5879 GB, free: 3.488 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003079/0.2725, allocations: 238.4 kB / 0.5881 GB, free: 3.246 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001373/0.2739, allocations: 0.9181 MB / 0.589 GB, free: 2.324 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006115/0.2745, allocations: 0.6962 MB / 0.5897 GB, free: 1.625 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.2747, allocations: 48 kB / 0.5897 GB, free: 1.578 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.2763, allocations: 0.78 MB / 0.5905 GB, free: 0.7969 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001964/0.2765, allocations: 195 kB / 0.5907 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004156/0.2769, allocations: 0.5478 MB / 0.5912 GB, free: 56 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001164/0.2781, allocations: 1.235 MB / 0.5924 GB, free: 14.82 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2781, allocations: 0 / 0.5924 GB, free: 14.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2781, allocations: 0 / 0.5924 GB, free: 14.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.2781, allocations: 4 kB / 0.5924 GB, free: 14.81 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002273/0.2804, allocations: 1.305 MB / 0.5937 GB, free: 13.46 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.2804, allocations: 12.03 kB / 0.5937 GB, free: 13.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000306/0.2807, allocations: 127.5 kB / 0.5938 GB, free: 13.32 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006986/0.2814, allocations: 0.5986 MB / 0.5944 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.999e-05/0.2815, allocations: 74.31 kB / 0.5945 GB, free: 12.61 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.2816, allocations: 100.4 kB / 0.5946 GB, free: 12.51 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/0.2832, allocations: 1.079 MB / 0.5956 GB, free: 11.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.288e-05/0.2833, allocations: 7.938 kB / 0.5956 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.852e-05/0.2833, allocations: 36 kB / 0.5957 GB, free: 11.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.295e-05/0.2834, allocations: 23.98 kB / 0.5957 GB, free: 11.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.285, allocations: 1.04 MB / 0.5967 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004931/0.2899, allocations: 4.813 MB / 0.6014 GB, free: 4.992 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001862/0.2918, allocations: 1.15 MB / 0.6025 GB, free: 3.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008185/0.2927, allocations: 0.5494 MB / 0.6031 GB, free: 3.27 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0036/0.2963, allocations: 3.187 MB / 0.6062 GB, free: 15.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.2963, allocations: 51.5 kB / 0.6062 GB, free: 15.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=117): time 2.945e-06/0.2963, allocations: 3.938 kB / 0.6062 GB, free: 15.69 MB / 442.7 MB Notification: Performance of matching and sorting (n=131): time 0.009262/0.3056, allocations: 4.801 MB / 0.6109 GB, free: 10.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.3057, allocations: 90.2 kB / 0.611 GB, free: 10.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005131/0.3062, allocations: 0.5352 MB / 0.6115 GB, free: 10.03 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.942e-05/0.3063, allocations: 49.7 kB / 0.6116 GB, free: 9.977 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002172/0.3065, allocations: 384.9 kB / 0.612 GB, free: 9.594 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002659/0.3068, allocations: 449.4 kB / 0.6124 GB, free: 9.148 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.496e-05/0.3068, allocations: 24 kB / 0.6124 GB, free: 9.125 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.307, allocations: 398.7 kB / 0.6128 GB, free: 8.727 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008524/0.3078, allocations: 482.4 kB / 0.6132 GB, free: 8.258 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009799/0.3088, allocations: 0.63 MB / 0.6139 GB, free: 7.586 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001908/0.3107, allocations: 1.171 MB / 0.615 GB, free: 6.387 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3107, allocations: 0 / 0.615 GB, free: 6.387 MB / 442.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.00302/0.3138, allocations: 1.624 MB / 0.6166 GB, free: 4.727 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.3138, allocations: 8 kB / 0.6166 GB, free: 4.719 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3138, allocations: 0 / 0.6166 GB, free: 4.719 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009566/0.3148, allocations: 314.9 kB / 0.6169 GB, free: 4.387 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008503/0.3156, allocations: 235.7 kB / 0.6171 GB, free: 4.156 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00741/0.3231, allocations: 11.25 MB / 0.6281 GB, free: 7.836 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007427/0.3238, allocations: 87.89 kB / 0.6282 GB, free: 7.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.975e-05/0.3239, allocations: 51.98 kB / 0.6282 GB, free: 7.699 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (127): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0003759/0.3243, allocations: 245.6 kB / 0.6285 GB, free: 7.449 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.3245, allocations: 94.81 kB / 0.6286 GB, free: 7.355 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003637/0.3281, allocations: 1.866 MB / 0.6304 GB, free: 5.465 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.537e-05/0.3282, allocations: 20 kB / 0.6304 GB, free: 5.445 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3282, allocations: 4 kB / 0.6304 GB, free: 5.441 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.3282, allocations: 7.969 kB / 0.6304 GB, free: 5.434 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004893/0.3331, allocations: 3.178 MB / 0.6335 GB, free: 2.164 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.3331, allocations: 4 kB / 0.6335 GB, free: 2.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008991/0.334, allocations: 255.8 kB / 0.6338 GB, free: 1.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009273/0.3349, allocations: 318.4 kB / 0.6341 GB, free: 1.574 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.451e-05/0.335, allocations: 43.97 kB / 0.6341 GB, free: 1.531 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007482/0.3425, allocations: 11.25 MB / 0.6451 GB, free: 5.207 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3426, allocations: 4.031 kB / 0.6451 GB, free: 5.203 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004262/0.3468, allocations: 2.527 MB / 0.6476 GB, free: 2.625 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000207/0.347, allocations: 163.9 kB / 0.6477 GB, free: 2.445 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.3472, allocations: 28 kB / 0.6478 GB, free: 2.418 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007533/0.3479, allocations: 103.8 kB / 0.6479 GB, free: 2.316 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002414/0.3482, allocations: 121.2 kB / 0.648 GB, free: 2.199 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.3483, allocations: 51.97 kB / 0.648 GB, free: 2.148 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003788/0.3487, allocations: 379 kB / 0.6484 GB, free: 1.781 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3487, allocations: 0 / 0.6484 GB, free: 1.781 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001281/0.35, allocations: 451.9 kB / 0.6488 GB, free: 1.34 MB / 474.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 (122): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.000579/0.3506, allocations: 449 kB / 0.6492 GB, free: 0.8984 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003348/0.3539, allocations: 2.341 MB / 0.6515 GB, free: 14.43 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3539, allocations: 0 / 0.6515 GB, free: 14.43 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002243/0.3562, allocations: 1.798 MB / 0.6533 GB, free: 12.52 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.3576, allocations: 284.4 kB / 0.6536 GB, free: 12.25 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003868/0.3615, allocations: 2.972 MB / 0.6565 GB, free: 9.238 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005327/0.362, allocations: 1.053 MB / 0.6575 GB, free: 8.156 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003141/0.3623, allocations: 119.4 kB / 0.6576 GB, free: 8.039 MB / 490.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3623, allocations: 8 kB / 0.6576 GB, free: 8.031 MB / 490.7 MB Notification: Performance of Templates: time 0.2123/0.5747, allocations: 49.66 MB / 0.7061 GB, free: 120 MB / 0.4948 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches