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_FixedInitial.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_FixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial") Notification: Performance of loadModel(ModelicaTest): time 2.111/2.111, allocations: 234.9 MB / 250.5 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004383/0.0004384, allocations: 15.98 kB / 314.4 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3616, allocations: 54.85 MB / 369.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.227/6.589, allocations: 2.67 GB / 3.031 GB, free: 64.92 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/6.589, allocations: 86.7 kB / 3.031 GB, free: 64.87 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.403/10.99, allocations: 1.025 GB / 4.056 GB, free: 9.273 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.247e-06/10.99, allocations: 0 / 4.056 GB, free: 9.273 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003255/10.99, allocations: 71.92 kB / 4.056 GB, free: 9.203 MB / 0.5261 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.01937/11.01, allocations: 4.697 MB / 4.061 GB, free: 4.438 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/11.01, allocations: 8.031 kB / 4.061 GB, free: 4.43 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01042/11.02, allocations: 1.027 MB / 4.062 GB, free: 3.398 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008398/11.03, allocations: 2.274 MB / 4.064 GB, free: 1.066 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005476/11.03, allocations: 288.1 kB / 4.064 GB, free: 0.7695 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001093/11.03, allocations: 248 kB / 4.064 GB, free: 0.5273 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3796/11.41, allocations: 4.49 MB / 4.069 GB, free: 30.57 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001374/11.41, allocations: 14.7 kB / 4.069 GB, free: 30.57 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001059/11.41, allocations: 112.5 kB / 4.069 GB, free: 30.57 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003433/11.41, allocations: 217.2 kB / 4.069 GB, free: 30.57 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01371/11.43, allocations: 4.196 MB / 4.073 GB, free: 30.54 MB / 0.5261 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.03188/11.46, allocations: 19.02 MB / 4.092 GB, free: 19.98 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009087/11.47, allocations: 2.889 MB / 4.095 GB, free: 19.93 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03555/11.5, allocations: 17 MB / 4.111 GB, free: 25.42 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.917e-05/11.5, allocations: 58.39 kB / 4.111 GB, free: 25.38 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001936/11.51, allocations: 236 kB / 4.112 GB, free: 25.32 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=194): time 6.194e-06/11.51, allocations: 0 / 4.112 GB, free: 25.32 MB / 0.5417 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: heater.mediums[1].p 3: tank.medium.h 4: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=215): time 0.06964/11.58, allocations: 17.84 MB / 4.129 GB, free: 23.05 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/11.58, allocations: 130.5 kB / 4.129 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003195/11.58, allocations: 1.678 MB / 4.131 GB, free: 22.71 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000524/11.58, allocations: 63.95 kB / 4.131 GB, free: 22.68 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007379/11.58, allocations: 1.072 MB / 4.132 GB, free: 22.26 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008598/11.58, allocations: 0.7299 MB / 4.133 GB, free: 21.89 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002656/11.58, allocations: 50.12 kB / 4.133 GB, free: 21.89 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002686/11.58, allocations: 411.1 kB / 4.133 GB, free: 21.57 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003431/11.59, allocations: 1.452 MB / 4.134 GB, free: 21.56 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003905/11.59, allocations: 1.939 MB / 4.136 GB, free: 21.04 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003923/11.59, allocations: 1.652 MB / 4.138 GB, free: 21.02 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/11.59, allocations: 4.469 kB / 4.138 GB, free: 21.02 MB / 0.5417 GB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01056/11.6, allocations: 4.195 MB / 4.142 GB, free: 20.83 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002484/11.61, allocations: 5.314 MB / 4.147 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.635e-05/11.61, allocations: 14.34 kB / 4.147 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005936/11.61, allocations: 1.202 MB / 4.148 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003055/11.62, allocations: 0.5306 MB / 4.149 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006849/11.62, allocations: 5.761 MB / 4.155 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003736/11.63, allocations: 317.3 kB / 4.155 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000379/11.63, allocations: 123.5 kB / 4.155 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/11.63, allocations: 6.469 kB / 4.155 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009406/11.64, allocations: 3.745 MB / 4.159 GB, free: 10.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.994e-05/11.64, allocations: 15.53 kB / 4.159 GB, free: 10.93 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00252/11.64, allocations: 0.6361 MB / 4.159 GB, free: 10.87 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003429/11.64, allocations: 0.5881 MB / 4.16 GB, free: 10.87 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/11.65, allocations: 8.527 MB / 4.168 GB, free: 20.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00299/11.66, allocations: 305.5 kB / 4.168 GB, free: 20.29 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003185/11.66, allocations: 110.9 kB / 4.169 GB, free: 20.29 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 257 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 5,1 1,2 7,1 1,4 14,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002171/11.66, allocations: 0.8065 MB / 4.169 GB, free: 20.09 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006484/11.66, allocations: 240.6 kB / 4.17 GB, free: 19.96 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01586/11.67, allocations: 9.452 MB / 4.179 GB, free: 19.2 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.226e-05/11.67, allocations: 107.3 kB / 4.179 GB, free: 19.2 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.108e-06/11.67, allocations: 1.688 kB / 4.179 GB, free: 19.2 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01368/11.69, allocations: 8.341 MB / 4.187 GB, free: 18.31 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02529/11.71, allocations: 13.73 MB / 4.2 GB, free: 17.35 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.078e-05/11.71, allocations: 6.344 kB / 4.2 GB, free: 17.35 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002354/11.72, allocations: 406 kB / 4.201 GB, free: 17.35 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00788/11.72, allocations: 2.309 MB / 4.203 GB, free: 17.21 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005158/11.72, allocations: 79.05 kB / 4.203 GB, free: 17.21 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007773/11.73, allocations: 7.017 MB / 4.21 GB, free: 13.02 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.621e-06/11.73, allocations: 6.422 kB / 4.21 GB, free: 13.02 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01846/11.75, allocations: 10.33 MB / 4.22 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002272/11.75, allocations: 0.8286 MB / 4.221 GB, free: 10.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000707/11.75, allocations: 61.12 kB / 4.221 GB, free: 10.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002874/11.76, allocations: 271.3 kB / 4.221 GB, free: 10.59 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005158/11.76, allocations: 190.5 kB / 4.221 GB, free: 10.56 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002793/11.76, allocations: 84.41 kB / 4.222 GB, free: 10.55 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002552/11.76, allocations: 1.338 MB / 4.223 GB, free: 10.03 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.94e-07/11.76, allocations: 4.125 kB / 4.223 GB, free: 10.03 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0118/11.77, allocations: 3.09 MB / 4.226 GB, free: 9.68 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (tank.medium.h,tank.level,heater.mediums[1].p,heater.mediums[1].h,radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 58 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.region3boundary,$cse20.region3boundary,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse35.phase,$cse35.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 25 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {2 4,1 1,2 9,1 1,4 18,1 1,1 10,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01225/11.78, allocations: 3.083 MB / 4.229 GB, free: 9.262 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01551/11.8, allocations: 6.656 MB / 4.235 GB, free: 6.887 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/11.8, allocations: 0 / 4.235 GB, free: 6.887 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.006371/11.81, allocations: 3.051 MB / 4.238 GB, free: 5.668 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00634/11.81, allocations: 1.085 MB / 4.239 GB, free: 5.453 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02027/11.83, allocations: 10.6 MB / 4.25 GB, free: 15.96 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003476/11.84, allocations: 2.521 MB / 4.252 GB, free: 15.04 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001324/11.84, allocations: 231.1 kB / 4.252 GB, free: 15.01 MB / 0.573 GB Notification: Performance of SimCode: time 2.169e-06/11.84, allocations: 0 / 4.252 GB, free: 15.01 MB / 0.573 GB Notification: Performance of Templates: time 0.5925/12.43, allocations: 188.1 MB / 4.436 GB, free: 35.03 MB / 0.573 GB