Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.HeatingSystem.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) Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,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="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.875/1.875, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003655, allocations: 12 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08213/0.08252, allocations: 44.51 MB / 308.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.472/6.555, allocations: 2.661 GB / 2.962 GB, free: 63.88 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/6.555, allocations: 82.91 kB / 2.962 GB, free: 63.84 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.552/11.11, allocations: 1.025 GB / 3.987 GB, free: 6.625 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.203e-06/11.11, allocations: 0 / 3.987 GB, free: 6.625 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002676/11.11, allocations: 71.92 kB / 3.987 GB, free: 6.555 MB / 442.7 MB 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.01733/11.12, allocations: 4.691 MB / 3.992 GB, free: 1.793 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/11.12, allocations: 12.03 kB / 3.992 GB, free: 1.781 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0106/11.14, allocations: 1.024 MB / 3.993 GB, free: 0.7539 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007974/11.14, allocations: 2.223 MB / 3.995 GB, free: 14.47 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005286/11.14, allocations: 288.1 kB / 3.995 GB, free: 14.18 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001321/11.15, allocations: 247.9 kB / 3.995 GB, free: 13.94 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01582/11.16, allocations: 4.503 MB / 4 GB, free: 9.207 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.684e-05/11.16, allocations: 7.938 kB / 4 GB, free: 9.199 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005661/11.16, allocations: 108 kB / 4 GB, free: 9.094 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003736/11.16, allocations: 224.7 kB / 4 GB, free: 8.871 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01489/11.18, allocations: 4.195 MB / 4.004 GB, free: 4.66 MB / 458.7 MB 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.3546/11.53, allocations: 18.99 MB / 4.023 GB, free: 15.31 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009961/11.54, allocations: 2.886 MB / 4.026 GB, free: 15.27 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04168/11.58, allocations: 17 MB / 4.042 GB, free: 20.77 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.41e-05/11.58, allocations: 57.84 kB / 4.042 GB, free: 20.73 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002097/11.59, allocations: 243.8 kB / 4.042 GB, free: 20.67 MB / 474.7 MB Notification: Performance of pre-optimization done (n=194): time 8.217e-06/11.59, allocations: 0 / 4.042 GB, free: 20.67 MB / 474.7 MB 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: pump.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=215): time 0.06339/11.65, allocations: 15.92 MB / 4.058 GB, free: 18.41 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/11.65, allocations: 130.1 kB / 4.058 GB, free: 18.28 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003474/11.65, allocations: 1.677 MB / 4.06 GB, free: 18.06 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005713/11.65, allocations: 66.2 kB / 4.06 GB, free: 18.03 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008551/11.65, allocations: 1.067 MB / 4.061 GB, free: 17.61 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001013/11.66, allocations: 0.7334 MB / 4.062 GB, free: 17.24 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002889/11.66, allocations: 51.09 kB / 4.062 GB, free: 17.24 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002789/11.66, allocations: 409 kB / 4.062 GB, free: 16.93 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003936/11.66, allocations: 1.443 MB / 4.063 GB, free: 16.92 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00453/11.66, allocations: 1.949 MB / 4.065 GB, free: 16.39 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004503/11.67, allocations: 1.649 MB / 4.067 GB, free: 16.37 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.047e-05/11.67, allocations: 3.656 kB / 4.067 GB, free: 16.37 MB / 474.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01406/11.68, allocations: 4.821 MB / 4.072 GB, free: 16.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00254/11.69, allocations: 5.315 MB / 4.077 GB, free: 10.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-05/11.69, allocations: 15.75 kB / 4.077 GB, free: 10.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0224/11.71, allocations: 3.999 MB / 4.081 GB, free: 10.66 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00181/11.71, allocations: 316.6 kB / 4.081 GB, free: 10.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01275/11.72, allocations: 4.842 MB / 4.086 GB, free: 10.05 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004074/11.73, allocations: 324.1 kB / 4.086 GB, free: 10.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006721/11.73, allocations: 110.7 kB / 4.086 GB, free: 10.05 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/11.73, allocations: 8.781 kB / 4.086 GB, free: 10.05 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01204/11.74, allocations: 4.25 MB / 4.09 GB, free: 9.992 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7e-05/11.74, allocations: 18.3 kB / 4.09 GB, free: 9.988 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01368/11.75, allocations: 2.631 MB / 4.093 GB, free: 9.953 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002133/11.76, allocations: 383.6 kB / 4.093 GB, free: 9.953 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008771/11.76, allocations: 3.775 MB / 4.097 GB, free: 9.379 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003068/11.77, allocations: 313.1 kB / 4.097 GB, free: 9.371 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004183/11.77, allocations: 111.7 kB / 4.097 GB, free: 9.371 MB / 474.7 MB 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 (166): * Single equations (assignments): 165 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 122} Notification: Performance of prepare postOptimizeDAE: time 0.002508/11.77, allocations: 0.7914 MB / 4.098 GB, free: 9.176 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007583/11.77, allocations: 234.5 kB / 4.098 GB, free: 9.055 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01845/11.79, allocations: 9.46 MB / 4.108 GB, free: 8.305 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001051/11.79, allocations: 105.2 kB / 4.108 GB, free: 8.301 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/11.79, allocations: 0.9688 kB / 4.108 GB, free: 8.301 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0153/11.81, allocations: 8.341 MB / 4.116 GB, free: 7.422 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02947/11.83, allocations: 13.75 MB / 4.129 GB, free: 6.434 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-05/11.83, allocations: 0 / 4.129 GB, free: 6.434 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002713/11.84, allocations: 408.7 kB / 4.13 GB, free: 6.434 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00845/11.85, allocations: 2.314 MB / 4.132 GB, free: 6.297 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005884/11.85, allocations: 73.52 kB / 4.132 GB, free: 6.297 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008242/11.85, allocations: 7.01 MB / 4.139 GB, free: 17.18 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/11.85, allocations: 1.859 kB / 4.139 GB, free: 17.18 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0205/11.88, allocations: 10.35 MB / 4.149 GB, free: 12.65 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002721/11.88, allocations: 0.829 MB / 4.15 GB, free: 12.15 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009183/11.88, allocations: 53.66 kB / 4.15 GB, free: 12.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003419/11.88, allocations: 262.7 kB / 4.15 GB, free: 12.07 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007595/11.88, allocations: 198.7 kB / 4.15 GB, free: 12.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003212/11.88, allocations: 84.06 kB / 4.15 GB, free: 12.03 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003033/11.89, allocations: 1.341 MB / 4.152 GB, free: 11.51 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.9e-07/11.89, allocations: 1.203 kB / 4.152 GB, free: 11.51 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01261/11.9, allocations: 3.066 MB / 4.155 GB, free: 11.16 MB / 490.7 MB 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.01319/11.91, allocations: 3.084 MB / 4.158 GB, free: 10.71 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01814/11.93, allocations: 6.463 MB / 4.164 GB, free: 7.145 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/11.93, allocations: 1.312 kB / 4.164 GB, free: 7.145 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007802/11.94, allocations: 3.048 MB / 4.167 GB, free: 4.477 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007445/11.95, allocations: 1.081 MB / 4.168 GB, free: 3.695 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02369/11.97, allocations: 10.65 MB / 4.178 GB, free: 10.14 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003709/11.97, allocations: 2.522 MB / 4.181 GB, free: 8.184 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001189/11.97, allocations: 200.8 kB / 4.181 GB, free: 8 MB / 0.4948 GB Notification: Performance of SimCode: time 1.867e-06/11.97, allocations: 0 / 4.181 GB, free: 8 MB / 0.4948 GB Notification: Performance of Templates: time 0.6149/12.59, allocations: 137.9 MB / 4.316 GB, free: 45.1 MB / 0.4948 GB