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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) 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=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_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_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 115.5 kB / 16.37 MB, free: 6.004 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.001445/0.001445, allocations: 195.6 kB / 17.31 MB, free: 5.613 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.311/1.311, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6883/0.6883, allocations: 89.49 MB / 380.7 MB, free: 8.637 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 79.88 kB / 459.7 MB, free: 10.6 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1221, allocations: 67.3 MB / 0.5146 GB, free: 7.211 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.234/0.3562, allocations: 40.91 MB / 0.5546 GB, free: 26.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005962/0.3622, allocations: 5.271 MB / 0.5597 GB, free: 22.88 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009758/0.3632, allocations: 17.78 kB / 0.5597 GB, free: 22.87 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001258/0.3644, allocations: 0.5383 MB / 0.5603 GB, free: 22.55 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003361/0.3679, allocations: 1.296 MB / 0.5615 GB, free: 21.76 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002252/0.3701, allocations: 0.8775 MB / 0.5624 GB, free: 21.29 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002686/0.3728, allocations: 2.014 MB / 0.5644 GB, free: 20.32 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004695/0.3733, allocations: 266.8 kB / 0.5646 GB, free: 20.23 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00256/0.3759, allocations: 1.253 MB / 0.5658 GB, free: 19.64 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00096/0.3769, allocations: 0.7479 MB / 0.5666 GB, free: 19.3 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001668/0.377, allocations: 100.9 kB / 0.5667 GB, free: 19.3 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002121/0.3792, allocations: 0.7379 MB / 0.5674 GB, free: 19.09 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002301/0.3794, allocations: 261.8 kB / 0.5676 GB, free: 18.91 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005835/0.38, allocations: 0.6197 MB / 0.5682 GB, free: 18.55 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002581/0.3826, allocations: 1.718 MB / 0.5699 GB, free: 17.88 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.738e-06/0.3826, allocations: 0 / 0.5699 GB, free: 17.88 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3826, allocations: 1.125 kB / 0.5699 GB, free: 17.88 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.646e-05/0.3826, allocations: 1.344 kB / 0.5699 GB, free: 17.88 MB / 446.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.002911/0.3856, allocations: 1.533 MB / 0.5714 GB, free: 16.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.3856, allocations: 10.16 kB / 0.5714 GB, free: 16.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003882/0.386, allocations: 129.9 kB / 0.5716 GB, free: 16.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.387, allocations: 0.6406 MB / 0.5722 GB, free: 16.37 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.373e-05/0.3871, allocations: 72.58 kB / 0.5722 GB, free: 16.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.3872, allocations: 99.3 kB / 0.5723 GB, free: 16.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001669/0.3889, allocations: 1.079 MB / 0.5734 GB, free: 15.82 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.3889, allocations: 1.5 kB / 0.5734 GB, free: 15.82 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.257e-05/0.389, allocations: 45.56 kB / 0.5734 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.389, allocations: 22.81 kB / 0.5735 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001656/0.3907, allocations: 1.006 MB / 0.5744 GB, free: 15.44 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005025/0.3957, allocations: 4.713 MB / 0.579 GB, free: 11.73 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001686/0.3974, allocations: 0.9331 MB / 0.58 GB, free: 11.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007797/0.3982, allocations: 0.4931 MB / 0.5804 GB, free: 11.08 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004105/0.4024, allocations: 3.476 MB / 0.5838 GB, free: 8.055 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.4024, allocations: 45.08 kB / 0.5839 GB, free: 8.008 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 2.916e-06/0.4024, allocations: 0 / 0.5839 GB, free: 8.008 MB / 446.1 MB Notification: Performance of matching and sorting (n=122): time 0.009625/0.412, allocations: 4.379 MB / 0.5882 GB, free: 5.637 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.4121, allocations: 90.3 kB / 0.5882 GB, free: 5.543 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008324/0.4129, allocations: 0.6463 MB / 0.5889 GB, free: 5.258 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.632e-05/0.413, allocations: 47.17 kB / 0.5889 GB, free: 5.211 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.4133, allocations: 418.5 kB / 0.5893 GB, free: 4.879 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002183/0.4135, allocations: 415.7 kB / 0.5897 GB, free: 4.551 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002905/0.4138, allocations: 202.5 kB / 0.5899 GB, free: 4.453 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.819e-05/0.4139, allocations: 349.2 kB / 0.5902 GB, free: 4.129 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008116/0.4147, allocations: 410.4 kB / 0.5906 GB, free: 3.984 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009403/0.4156, allocations: 0.5697 MB / 0.5912 GB, free: 3.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001753/0.4174, allocations: 1.046 MB / 0.5922 GB, free: 3.109 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.4174, allocations: 4.656 kB / 0.5922 GB, free: 3.109 MB / 446.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003146/0.4206, allocations: 1.481 MB / 0.5937 GB, free: 2.469 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.4206, allocations: 10.62 kB / 0.5937 GB, free: 2.465 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.4206, allocations: 3.625 kB / 0.5937 GB, free: 2.465 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/0.4216, allocations: 313.7 kB / 0.594 GB, free: 2.281 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009085/0.4225, allocations: 234.8 kB / 0.5942 GB, free: 2.223 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008599/0.4311, allocations: 12.13 MB / 0.606 GB, free: 5.977 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.4323, allocations: 57.53 kB / 0.6061 GB, free: 5.941 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/0.4325, allocations: 50.45 kB / 0.6061 GB, free: 5.926 MB / 462.1 MB 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.0005744/0.4331, allocations: 254.2 kB / 0.6064 GB, free: 5.711 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002382/0.4333, allocations: 101 kB / 0.6065 GB, free: 5.66 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003739/0.4371, allocations: 1.857 MB / 0.6083 GB, free: 4.516 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/0.4371, allocations: 13.59 kB / 0.6083 GB, free: 4.516 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.4371, allocations: 3.438 kB / 0.6083 GB, free: 4.516 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.4371, allocations: 6.797 kB / 0.6083 GB, free: 4.512 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004926/0.4421, allocations: 2.846 MB / 0.6111 GB, free: 2.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.4421, allocations: 4 kB / 0.6111 GB, free: 2.176 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008948/0.443, allocations: 211.7 kB / 0.6113 GB, free: 1.969 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009783/0.444, allocations: 320.7 kB / 0.6116 GB, free: 1.633 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.014e-05/0.4441, allocations: 35.98 kB / 0.6116 GB, free: 1.598 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008459/0.4525, allocations: 12.16 MB / 0.6235 GB, free: 4.352 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4526, allocations: 0 / 0.6235 GB, free: 4.352 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004214/0.4568, allocations: 2.158 MB / 0.6256 GB, free: 2.125 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003322/0.4571, allocations: 167.9 kB / 0.6258 GB, free: 1.941 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001628/0.4573, allocations: 27.98 kB / 0.6258 GB, free: 1.914 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007542/0.4581, allocations: 51.95 kB / 0.6259 GB, free: 1.863 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002705/0.4584, allocations: 112.8 kB / 0.626 GB, free: 1.754 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/0.4585, allocations: 47.97 kB / 0.626 GB, free: 1.707 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0006862/0.4592, allocations: 495 kB / 0.6265 GB, free: 1.23 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4592, allocations: 7.938 kB / 0.6265 GB, free: 1.223 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00154/0.4607, allocations: 439.8 kB / 0.6269 GB, free: 0.793 MB / 478.1 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 (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.0006329/0.4614, allocations: 414.7 kB / 0.6273 GB, free: 412 kB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003302/0.4647, allocations: 2.08 MB / 0.6293 GB, free: 14.23 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.4647, allocations: 4 kB / 0.6293 GB, free: 14.22 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002291/0.467, allocations: 1.601 MB / 0.6309 GB, free: 12.52 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/0.4686, allocations: 336.5 kB / 0.6312 GB, free: 12.22 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004236/0.4728, allocations: 2.526 MB / 0.6337 GB, free: 9.703 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005548/0.4734, allocations: 1.054 MB / 0.6347 GB, free: 8.621 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0007381/0.4741, allocations: 227.1 kB / 0.6349 GB, free: 8.453 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002868/0.4744, allocations: 107.4 kB / 0.635 GB, free: 8.348 MB / 494.1 MB Notification: Performance of SimCode: time 6.02e-07/0.4744, allocations: 0 / 0.635 GB, free: 8.348 MB / 494.1 MB Notification: Performance of Templates: time 0.03756/0.512, allocations: 24.22 MB / 0.6587 GB, free: 492 kB / 0.4981 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (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=1200 -s cvode -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches