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.136/2.136, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/3.012e-05, allocations: 4 kB / 309.7 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3198, allocations: 54.86 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.24/6.56, allocations: 2.67 GB / 3.026 GB, free: 129.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/6.56, allocations: 79.42 kB / 3.026 GB, free: 129.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478/11.04, allocations: 1.022 GB / 4.049 GB, free: 35.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.921e-06/11.04, allocations: 0 / 4.049 GB, free: 35.2 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002914/11.04, allocations: 74.53 kB / 4.049 GB, free: 35.19 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.01637/11.05, allocations: 4.39 MB / 4.053 GB, free: 33.21 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/11.05, allocations: 8.875 kB / 4.053 GB, free: 33.21 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01041/11.07, allocations: 1.03 MB / 4.054 GB, free: 33.04 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007983/11.07, allocations: 2.255 MB / 4.056 GB, free: 32.56 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003986/11.07, allocations: 290 kB / 4.056 GB, free: 32.48 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009898/11.07, allocations: 242.7 kB / 4.057 GB, free: 32.48 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01279/11.09, allocations: 4.467 MB / 4.061 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.209e-05/11.09, allocations: 9.406 kB / 4.061 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005299/11.09, allocations: 115.6 kB / 4.061 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00031/11.09, allocations: 216.2 kB / 4.061 GB, free: 31.87 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0122/11.1, allocations: 4.046 MB / 4.065 GB, free: 31.84 MB / 0.5261 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.03214/11.13, allocations: 19.03 MB / 4.084 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008039/11.14, allocations: 2.777 MB / 4.087 GB, free: 20.96 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002944/11.14, allocations: 1.479 MB / 4.088 GB, free: 20.95 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03906/11.18, allocations: 17.05 MB / 4.105 GB, free: 26.41 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.917e-05/11.18, allocations: 58.69 kB / 4.105 GB, free: 26.38 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002105/11.19, allocations: 233.7 kB / 4.105 GB, free: 26.27 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=194): time 7.677e-06/11.19, allocations: 0 / 4.105 GB, free: 26.27 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: tank.medium.h 3: heater.mediums[1].p 4: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=215): time 0.05539/11.24, allocations: 13.12 MB / 4.118 GB, free: 25.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/11.24, allocations: 125 kB / 4.118 GB, free: 25.18 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003069/11.24, allocations: 1.661 MB / 4.119 GB, free: 24.93 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003919/11.24, allocations: 66.67 kB / 4.12 GB, free: 24.9 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006846/11.25, allocations: 1.069 MB / 4.121 GB, free: 24.37 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006873/11.25, allocations: 0.7264 MB / 4.121 GB, free: 23.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002521/11.25, allocations: 49 kB / 4.121 GB, free: 23.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002667/11.25, allocations: 410.9 kB / 4.122 GB, free: 23.58 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00255/11.25, allocations: 1.322 MB / 4.123 GB, free: 23.57 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002815/11.25, allocations: 1.823 MB / 4.125 GB, free: 23.04 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00299/11.25, allocations: 1.533 MB / 4.126 GB, free: 23.02 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.301e-05/11.25, allocations: 3.344 kB / 4.126 GB, free: 23.02 MB / 0.5417 GB Notification: Performance of matching and sorting (n=306) (initialization): time 0.009407/11.26, allocations: 3.92 MB / 4.13 GB, free: 22.82 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002619/11.27, allocations: 5.311 MB / 4.135 GB, free: 17.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.218e-05/11.27, allocations: 17.3 kB / 4.135 GB, free: 17.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006005/11.27, allocations: 1.141 MB / 4.136 GB, free: 17.23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003366/11.28, allocations: 0.5285 MB / 4.137 GB, free: 17.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00639/11.28, allocations: 5.713 MB / 4.143 GB, free: 13.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00376/11.29, allocations: 317 kB / 4.143 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005313/11.29, allocations: 118.4 kB / 4.143 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/11.29, allocations: 4.688 kB / 4.143 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008674/11.3, allocations: 3.501 MB / 4.146 GB, free: 12.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-05/11.3, allocations: 12.16 kB / 4.146 GB, free: 12.93 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002449/11.3, allocations: 0.6131 MB / 4.147 GB, free: 12.87 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/11.3, allocations: 0.5887 MB / 4.148 GB, free: 12.87 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009609/11.31, allocations: 8.441 MB / 4.156 GB, free: 22.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002807/11.31, allocations: 310.6 kB / 4.156 GB, free: 22.27 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002964/11.31, allocations: 111.2 kB / 4.156 GB, free: 22.27 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 () * 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.0008119/11.32, allocations: 257 kB / 4.156 GB, free: 22.16 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006478/11.32, allocations: 232.5 kB / 4.157 GB, free: 22.04 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0147/11.33, allocations: 9.387 MB / 4.166 GB, free: 21.22 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.493e-05/11.33, allocations: 106.3 kB / 4.166 GB, free: 21.22 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/11.33, allocations: 7.453 kB / 4.166 GB, free: 21.22 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01223/11.34, allocations: 8.244 MB / 4.174 GB, free: 20.3 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02327/11.37, allocations: 13.6 MB / 4.187 GB, free: 17.03 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/11.37, allocations: 0 / 4.187 GB, free: 17.03 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002608/11.37, allocations: 408.9 kB / 4.188 GB, free: 17.01 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008117/11.38, allocations: 2.681 MB / 4.19 GB, free: 16.34 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005231/11.38, allocations: 78.56 kB / 4.19 GB, free: 16.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007275/11.39, allocations: 6.924 MB / 4.197 GB, free: 10.99 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.595e-06/11.39, allocations: 0 / 4.197 GB, free: 10.99 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0176/11.4, allocations: 9.962 MB / 4.207 GB, free: 5.012 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002415/11.41, allocations: 0.8269 MB / 4.208 GB, free: 4.266 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005475/11.41, allocations: 61.83 kB / 4.208 GB, free: 4.211 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002494/11.41, allocations: 261.1 kB / 4.208 GB, free: 4.016 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005234/11.41, allocations: 197.8 kB / 4.208 GB, free: 3.898 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002877/11.41, allocations: 85.7 kB / 4.208 GB, free: 3.824 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0027/11.41, allocations: 1.318 MB / 4.21 GB, free: 2.609 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.12e-07/11.41, allocations: 0 / 4.21 GB, free: 2.609 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01542/11.43, allocations: 3.29 MB / 4.213 GB, free: 0 / 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 () * 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.3691/11.8, allocations: 3.083 MB / 4.216 GB, free: 62.46 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01572/11.81, allocations: 6.349 MB / 4.222 GB, free: 62.03 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/11.81, allocations: 1.469 kB / 4.222 GB, free: 62.03 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007503/11.82, allocations: 2.959 MB / 4.225 GB, free: 61.99 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007268/11.83, allocations: 1.079 MB / 4.226 GB, free: 61.97 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01717/11.84, allocations: 7.405 MB / 4.233 GB, free: 60.64 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002907/11.85, allocations: 2.521 MB / 4.236 GB, free: 59.88 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001369/11.85, allocations: 233 kB / 4.236 GB, free: 59.88 MB / 0.5573 GB Notification: Performance of SimCode: time 1.97e-06/11.85, allocations: 0 / 4.236 GB, free: 59.88 MB / 0.5573 GB Notification: Performance of Templates: time 0.5906/12.44, allocations: 187.8 MB / 4.419 GB, free: 77.3 MB / 0.573 GB