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.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 90] Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01038/0.01038, allocations: 100.8 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002177/0.002178, allocations: 194.1 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.769/0.769, allocations: 93.69 MB / 384.2 MB, free: 5.258 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00243/0.00243, allocations: 79.88 kB / 0.5204 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3084, allocations: 68.25 MB / 0.5871 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.04061/0.349, allocations: 41.12 MB / 0.6272 GB, free: 1.023 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.008306/0.3574, allocations: 5.351 MB / 0.6325 GB, free: 11.66 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001104/0.3585, allocations: 43.75 kB / 0.6325 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001502/0.36, allocations: 0.5393 MB / 0.633 GB, free: 11.07 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003579/0.3637, allocations: 1.363 MB / 0.6344 GB, free: 9.703 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002294/0.366, allocations: 0.8705 MB / 0.6352 GB, free: 8.832 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002872/0.3688, allocations: 2.146 MB / 0.6373 GB, free: 6.68 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005192/0.3694, allocations: 276.9 kB / 0.6376 GB, free: 6.398 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002738/0.3721, allocations: 1.295 MB / 0.6388 GB, free: 5.098 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001069/0.3732, allocations: 0.7817 MB / 0.6396 GB, free: 4.312 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001834/0.3734, allocations: 100 kB / 0.6397 GB, free: 4.215 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002069/0.3755, allocations: 0.7374 MB / 0.6404 GB, free: 3.477 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002982/0.3758, allocations: 270.8 kB / 0.6407 GB, free: 3.211 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007/0.3765, allocations: 0.6489 MB / 0.6413 GB, free: 2.559 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002951/0.3795, allocations: 1.858 MB / 0.6431 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3795, allocations: 3.938 kB / 0.6431 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3795, allocations: 4 kB / 0.6431 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.3795, allocations: 0 / 0.6431 GB, free: 0.6914 MB / 494.1 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.003234/0.3828, allocations: 1.701 MB / 0.6448 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.3828, allocations: 11.97 kB / 0.6448 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004153/0.3832, allocations: 164 kB / 0.645 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00151/0.3848, allocations: 0.8764 MB / 0.6458 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.449e-05/0.3848, allocations: 72.44 kB / 0.6459 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.385, allocations: 95.95 kB / 0.646 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001902/0.3869, allocations: 1.073 MB / 0.647 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.643e-05/0.3869, allocations: 7.922 kB / 0.647 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.335e-05/0.387, allocations: 44 kB / 0.6471 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.455e-05/0.3871, allocations: 24 kB / 0.6471 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.389, allocations: 1.008 MB / 0.6481 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006288/0.3953, allocations: 4.756 MB / 0.6527 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001988/0.3973, allocations: 0.9277 MB / 0.6536 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009154/0.3982, allocations: 0.4921 MB / 0.6541 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00482/0.4031, allocations: 3.48 MB / 0.6575 GB, free: 0.9688 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.384e-05/0.4031, allocations: 55.02 kB / 0.6576 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=108): time 2.625e-06/0.4032, allocations: 0 / 0.6576 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of matching and sorting (n=122): time 0.01107/0.4142, allocations: 4.469 MB / 0.6619 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.829e-05/0.4143, allocations: 90.2 kB / 0.662 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/0.4154, allocations: 0.764 MB / 0.6628 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 9.799e-05/0.4155, allocations: 45.7 kB / 0.6628 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003933/0.4159, allocations: 485.4 kB / 0.6633 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003779/0.4162, allocations: 444.2 kB / 0.6637 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003355/0.4166, allocations: 198.9 kB / 0.6639 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.4168, allocations: 345.9 kB / 0.6642 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009264/0.4177, allocations: 414.4 kB / 0.6646 GB, free: 9.422 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.4188, allocations: 0.5701 MB / 0.6652 GB, free: 8.805 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002118/0.4209, allocations: 1.04 MB / 0.6662 GB, free: 7.707 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4209, allocations: 0 / 0.6662 GB, free: 7.707 MB / 0.5137 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003454/0.4244, allocations: 1.512 MB / 0.6677 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.4244, allocations: 8 kB / 0.6677 GB, free: 6.152 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.4245, allocations: 4 kB / 0.6677 GB, free: 6.148 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/0.4256, allocations: 302.6 kB / 0.668 GB, free: 5.828 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009791/0.4265, allocations: 243.6 kB / 0.6682 GB, free: 5.59 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/0.4372, allocations: 12.14 MB / 0.68 GB, free: 8.332 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000908/0.4381, allocations: 47.95 kB / 0.6801 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/0.4383, allocations: 47.98 kB / 0.6801 GB, free: 8.238 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (124): * Single equations (assignments): 116 * 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.0005127/0.4388, allocations: 266.4 kB / 0.6804 GB, free: 7.969 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002676/0.439, allocations: 131.1 kB / 0.6805 GB, free: 7.84 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004091/0.4431, allocations: 1.866 MB / 0.6823 GB, free: 5.926 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/0.4432, allocations: 12 kB / 0.6823 GB, free: 5.914 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.4432, allocations: 4 kB / 0.6823 GB, free: 5.91 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.632e-05/0.4432, allocations: 7.969 kB / 0.6824 GB, free: 5.902 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005614/0.4488, allocations: 2.883 MB / 0.6852 GB, free: 2.922 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.4489, allocations: 4 kB / 0.6852 GB, free: 2.918 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009469/0.4498, allocations: 215.7 kB / 0.6854 GB, free: 2.707 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001106/0.4509, allocations: 318.6 kB / 0.6857 GB, free: 2.371 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.4511, allocations: 43.97 kB / 0.6857 GB, free: 2.328 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01118/0.4622, allocations: 12.15 MB / 0.6976 GB, free: 5.059 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.4623, allocations: 4.031 kB / 0.6976 GB, free: 5.055 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004974/0.4673, allocations: 2.183 MB / 0.6997 GB, free: 2.82 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003968/0.4677, allocations: 188.3 kB / 0.6999 GB, free: 2.617 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/0.4679, allocations: 24 kB / 0.6999 GB, free: 2.594 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007618/0.4686, allocations: 59.94 kB / 0.7 GB, free: 2.535 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002938/0.4689, allocations: 105 kB / 0.7001 GB, free: 2.434 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.4691, allocations: 43.97 kB / 0.7001 GB, free: 2.391 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0008321/0.4699, allocations: 0.5672 MB / 0.7007 GB, free: 1.812 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.2e-07/0.4699, allocations: 0 / 0.7007 GB, free: 1.812 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001482/0.4714, allocations: 443.5 kB / 0.7011 GB, free: 1.379 MB / 0.545 GB 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 (104): * Single equations (assignments): 96 * 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.0007251/0.4721, allocations: 423 kB / 0.7015 GB, free: 0.9648 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003826/0.476, allocations: 2.086 MB / 0.7035 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.476, allocations: 8 kB / 0.7036 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00267/0.4787, allocations: 1.597 MB / 0.7051 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001779/0.4805, allocations: 356.9 kB / 0.7055 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005201/0.4857, allocations: 2.695 MB / 0.7081 GB, free: 9.98 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007853/0.4865, allocations: 1.103 MB / 0.7092 GB, free: 8.848 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009188/0.4874, allocations: 243.3 kB / 0.7094 GB, free: 8.621 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003421/0.4878, allocations: 119.4 kB / 0.7095 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of SimCode: time 7.11e-07/0.4878, allocations: 0 / 0.7095 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of Templates: time 0.04402/0.5318, allocations: 24.75 MB / 0.7337 GB, free: 15.98 MB / 0.5919 GB 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=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches