Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.m|m_flow|T_forward|T_return|tankLevel|tank.ports.1..m_flow|tank.ports.1..p|tank.ports.1..h_outflow|tank.ports.2..m_flow|tank.ports.2..p|tank.ports.2..h_outflow|tank.portsData.1..diameter|tank.portsData.1..height|tank.portsData.1..zeta_out|tank.portsData.1..zeta_in|tank.portsData.2..diameter|tank.portsData.2..height|tank.portsData.2..zeta_out|tank.portsData.2..zeta_in|tank.ports_H_flow.1.|tank.ports_H_flow.2.|tank.ports_E_flow.1.|tank.ports_E_flow.2.|tank.ports_penetration.1.|tank.ports_penetration.2.|tank.portsData_diameter_internal.1.|tank.portsData_diameter_internal.2.|tank.portsData_height_internal.1.|tank.portsData_height_internal.2.|tank.portsData_zeta_in_internal.1.|tank.portsData_zeta_in_internal.2.|tank.portsData_zeta_out_internal.1.|tank.portsData_zeta_out_internal.2.|tank.portsData_diameter.1.|tank.portsData_diameter.2.|tank.portsData_height.1.|tank.portsData_height.2.|tank.portsData_zeta_in.1.|tank.portsData_zeta_in.2.|tank.portsData_zeta_out.1.|tank.portsData_zeta_out.2.|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|sensor_m_flow.port_b.m_flow|sensor_m_flow.port_b.p|sensor_m_flow.port_b.h_outflow|heater.port_b.m_flow|heater.port_b.p|heater.port_b.h_outflow|radiator.port_b.m_flow|radiator.port_b.p|radiator.port_b.h_outflow|handle.y|pipe.port_b.m_flow|pipe.port_b.p|pipe.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadModel(ModelicaTest): time 2.197/2.197, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.947e-05/2.972e-05, allocations: 4 kB / 309.7 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.319, allocations: 54.85 MB / 364.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.232/6.551, allocations: 2.67 GB / 3.026 GB, free: 104.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000192/6.551, allocations: 74.53 kB / 3.026 GB, free: 104.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.451/11, allocations: 1.021 GB / 4.047 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.944e-06/11, allocations: 0 / 4.047 GB, free: 28.84 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002529/11, allocations: 78.34 kB / 4.048 GB, free: 28.82 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 670 * Number of variables: 670 Notification: Performance of Generate backend data structure: time 0.01578/11.02, allocations: 4.386 MB / 4.052 GB, free: 26.46 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/11.02, allocations: 10.34 kB / 4.052 GB, free: 26.46 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009838/11.03, allocations: 1.031 MB / 4.053 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007107/11.04, allocations: 2.229 MB / 4.055 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003166/11.04, allocations: 282.4 kB / 4.055 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006749/11.04, allocations: 240.7 kB / 4.056 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.011/11.05, allocations: 4.453 MB / 4.06 GB, free: 20.86 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.115e-05/11.05, allocations: 11.84 kB / 4.06 GB, free: 20.85 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004303/11.05, allocations: 104.8 kB / 4.06 GB, free: 20.75 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002797/11.05, allocations: 219.8 kB / 4.06 GB, free: 20.57 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01067/11.06, allocations: 4.031 MB / 4.064 GB, free: 17.09 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03095/11.09, allocations: 19.04 MB / 4.083 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008327/11.1, allocations: 2.663 MB / 4.085 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003108/11.1, allocations: 1.306 MB / 4.087 GB, free: 9.324 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4631/11.56, allocations: 17.04 MB / 4.103 GB, free: 38.49 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.652e-05/11.56, allocations: 54.36 kB / 4.103 GB, free: 38.45 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002103/11.57, allocations: 359.9 kB / 4.104 GB, free: 38.45 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=181): time 7.086e-06/11.57, allocations: 0 / 4.104 GB, free: 38.45 MB / 0.5261 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pump.medium.p 2: tank.medium.h 3: pipe.mediums[2].p 4: pipe.mediums[1].p 5: radiator.mediums[1].p 6: pump.medium.h 7: heater.mediums[1].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=283): time 0.6453/12.21, allocations: 62.17 MB / 4.164 GB, free: 35.36 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3209/12.53, allocations: 87.11 MB / 4.249 GB, free: 5.637 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003232/12.54, allocations: 1.674 MB / 4.251 GB, free: 4.535 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007532/12.54, allocations: 79.33 kB / 4.251 GB, free: 4.488 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007453/12.54, allocations: 1.093 MB / 4.252 GB, free: 3.926 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001311/12.54, allocations: 0.9457 MB / 4.253 GB, free: 3.191 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004877/12.54, allocations: 57.25 kB / 4.253 GB, free: 3.18 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001968/12.54, allocations: 427.3 kB / 4.254 GB, free: 2.832 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005464/12.55, allocations: 2.567 MB / 4.256 GB, free: 1.547 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006035/12.55, allocations: 3.131 MB / 4.259 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007717/12.56, allocations: 3.001 MB / 4.262 GB, free: 14.08 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.511e-05/12.56, allocations: 4 kB / 4.262 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.02135/12.58, allocations: 8.516 MB / 4.27 GB, free: 9.621 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.003261/12.58, allocations: 5.84 MB / 4.276 GB, free: 3.441 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.742e-05/12.58, allocations: 16 kB / 4.276 GB, free: 3.426 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09122/12.68, allocations: 16.41 MB / 4.292 GB, free: 8.668 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002232/12.68, allocations: 379.4 kB / 4.292 GB, free: 8.398 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02325/12.7, allocations: 10.07 MB / 4.302 GB, free: 2.828 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005768/12.71, allocations: 416.6 kB / 4.303 GB, free: 2.566 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008894/12.71, allocations: 182.1 kB / 4.303 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/12.71, allocations: 4 kB / 4.303 GB, free: 2.441 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.3953/13.1, allocations: 8.411 MB / 4.311 GB, free: 66.58 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.843e-05/13.1, allocations: 15.41 kB / 4.311 GB, free: 66.58 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04229/13.15, allocations: 8.11 MB / 4.319 GB, free: 66.55 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002965/13.15, allocations: 451.2 kB / 4.319 GB, free: 66.55 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0218/13.17, allocations: 9.164 MB / 4.328 GB, free: 65.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005468/13.18, allocations: 403.5 kB / 4.329 GB, free: 65.46 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009648/13.18, allocations: 170.7 kB / 4.329 GB, free: 65.46 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 19 (radiator.state_b.phase,radiator.state_a.phase,heater.state_b.phase,heater.state_a.phase,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 79,17 85} Notification: Performance of prepare postOptimizeDAE: time 0.001285/13.18, allocations: 273.7 kB / 4.329 GB, free: 65.36 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009676/13.18, allocations: 253.9 kB / 4.329 GB, free: 65.36 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03214/13.21, allocations: 17.22 MB / 4.346 GB, free: 64.76 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001334/13.21, allocations: 120.5 kB / 4.346 GB, free: 64.76 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.682e-06/13.21, allocations: 1.5 kB / 4.346 GB, free: 64.76 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02672/13.24, allocations: 15.41 MB / 4.361 GB, free: 63.88 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05187/13.29, allocations: 27.17 MB / 4.388 GB, free: 62.32 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.532e-05/13.29, allocations: 0 / 4.388 GB, free: 62.32 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/13.29, allocations: 235.3 kB / 4.388 GB, free: 62.32 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09406/13.39, allocations: 26.61 MB / 4.414 GB, free: 60.77 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008263/13.39, allocations: 109.3 kB / 4.414 GB, free: 60.72 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0288/13.42, allocations: 15.48 MB / 4.429 GB, free: 54.03 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.7696/14.19, allocations: 147.9 MB / 4.574 GB, free: 72.12 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04062/14.23, allocations: 22.34 MB / 4.596 GB, free: 71.22 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003517/14.23, allocations: 1.157 MB / 4.597 GB, free: 70.84 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001284/14.23, allocations: 59.33 kB / 4.597 GB, free: 70.84 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005316/14.24, allocations: 436.3 kB / 4.597 GB, free: 70.83 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001033/14.24, allocations: 259.4 kB / 4.598 GB, free: 70.83 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005743/14.24, allocations: 142 kB / 4.598 GB, free: 70.83 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002903/14.24, allocations: 1.325 MB / 4.599 GB, free: 70.67 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.95e-07/14.24, allocations: 3.375 kB / 4.599 GB, free: 70.67 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0286/14.27, allocations: 7.229 MB / 4.606 GB, free: 70.42 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 60 ($cse85.phase,$cse85.region,$cse88.phase,$cse88.region,$cse89.phase,$cse89.region,$cse91.phase,$cse91.region,$cse93.phase,$cse93.region,$cse94.region3boundary,$cse95.region3boundary,$cse96.phase,$cse96.region,$cse97.phase,$cse97.region,$cse101.phase,$cse101.region,$cse102.phase,$cse102.region,$cse105.phase,$cse105.region,$cse106.phase,$cse106.region,$cse107.region3boundary,$cse108.region3boundary,$cse109.phase,$cse109.region,$cse119.phase,$cse119.region,$cse120.phase,$cse120.region,$cse121.region3boundary,$cse122.region3boundary,$cse123.phase,$cse123.region,$cse130.phase,$cse130.region,$cse131.phase,$cse131.region,$cse132.phase,$cse132.region,$cse133.region3boundary,$cse134.region3boundary,$cse135.phase,$cse135.region,$cse136.region3boundary,$cse137.region3boundary,$cse138.phase,$cse138.region,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 82,19 121} Notification: Performance of Backend phase and start with SimCode phase: time 0.03817/14.31, allocations: 5.714 MB / 4.612 GB, free: 69.66 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03341/14.34, allocations: 11.78 MB / 4.623 GB, free: 67.83 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.28e-06/14.34, allocations: 0 / 4.623 GB, free: 67.83 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01463/14.36, allocations: 5.656 MB / 4.629 GB, free: 65.54 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007507/14.36, allocations: 1.075 MB / 4.63 GB, free: 65.31 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02326/14.39, allocations: 12.05 MB / 4.641 GB, free: 59.97 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003362/14.39, allocations: 2.998 MB / 4.644 GB, free: 59 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002233/14.39, allocations: 310.4 kB / 4.645 GB, free: 58.98 MB / 0.573 GB Notification: Performance of SimCode: time 1.879e-06/14.39, allocations: 0 / 4.645 GB, free: 58.98 MB / 0.573 GB Notification: Performance of Templates: time 0.7313/15.12, allocations: 214.8 MB / 4.854 GB, free: 36.59 MB / 0.573 GB