Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 2.054/2.054, allocations: 194.8 MB / 211.7 MB, free: 2.875 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000357/0.0003572, allocations: 8 kB / 264.5 MB, free: 12.91 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09656/0.09694, allocations: 44.5 MB / 309 MB, free: 348 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.15/8.247, allocations: 2.661 GB / 2.963 GB, free: 33.71 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/8.247, allocations: 90.27 kB / 2.963 GB, free: 33.66 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.103/14.35, allocations: 1.025 GB / 3.988 GB, free: 26.43 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.457e-06/14.35, allocations: 0 / 3.988 GB, free: 26.43 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005006/14.35, allocations: 73.25 kB / 3.988 GB, free: 26.42 MB / 458.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.02949/14.38, allocations: 4.7 MB / 3.992 GB, free: 24.33 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/14.38, allocations: 11.81 kB / 3.992 GB, free: 24.33 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01234/14.39, allocations: 1.028 MB / 3.993 GB, free: 24.17 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009823/14.4, allocations: 2.208 MB / 3.995 GB, free: 23.69 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005728/14.4, allocations: 290.9 kB / 3.996 GB, free: 23.61 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001563/14.41, allocations: 253.2 kB / 3.996 GB, free: 23.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01735/14.42, allocations: 4.503 MB / 4 GB, free: 23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001471/14.42, allocations: 7.875 kB / 4 GB, free: 23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001089/14.42, allocations: 108.6 kB / 4 GB, free: 23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004136/14.42, allocations: 222.4 kB / 4.001 GB, free: 23 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01638/14.44, allocations: 4.196 MB / 4.005 GB, free: 22.96 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.04161/14.48, allocations: 19.01 MB / 4.023 GB, free: 12.14 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0113/14.49, allocations: 2.889 MB / 4.026 GB, free: 12.08 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05453/14.55, allocations: 16.99 MB / 4.043 GB, free: 17.55 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.018e-05/14.55, allocations: 63.44 kB / 4.043 GB, free: 17.51 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002769/14.55, allocations: 233.9 kB / 4.043 GB, free: 17.41 MB / 474.7 MB Notification: Performance of pre-optimization done (n=194): time 7.374e-06/14.55, allocations: 0 / 4.043 GB, free: 17.41 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.07955/14.63, allocations: 16.02 MB / 4.059 GB, free: 15.09 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/14.63, allocations: 124.7 kB / 4.059 GB, free: 14.97 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004654/14.64, allocations: 1.893 MB / 4.061 GB, free: 14.73 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008151/14.64, allocations: 65.92 kB / 4.061 GB, free: 14.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001374/14.64, allocations: 1.147 MB / 4.062 GB, free: 14.22 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001479/14.64, allocations: 0.7362 MB / 4.062 GB, free: 13.75 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004374/14.64, allocations: 47.41 kB / 4.063 GB, free: 13.75 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003082/14.64, allocations: 401.5 kB / 4.063 GB, free: 13.45 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005921/14.65, allocations: 1.447 MB / 4.064 GB, free: 13.44 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005554/14.65, allocations: 1.94 MB / 4.066 GB, free: 12.91 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00526/14.66, allocations: 1.652 MB / 4.068 GB, free: 12.89 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.867e-05/14.66, allocations: 4.719 kB / 4.068 GB, free: 12.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01725/14.67, allocations: 4.948 MB / 4.073 GB, free: 12.68 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004452/14.67, allocations: 0.4931 MB / 4.073 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.2e-05/14.68, allocations: 15.41 kB / 4.073 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02722/14.7, allocations: 4.066 MB / 4.077 GB, free: 12.06 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002418/14.7, allocations: 311.5 kB / 4.077 GB, free: 12.06 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01582/14.72, allocations: 4.848 MB / 4.082 GB, free: 11.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005143/14.73, allocations: 310.8 kB / 4.082 GB, free: 11.42 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008499/14.73, allocations: 121.7 kB / 4.083 GB, free: 11.42 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/14.73, allocations: 2.656 kB / 4.083 GB, free: 11.42 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01433/14.74, allocations: 4.257 MB / 4.087 GB, free: 11.33 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.284e-05/14.74, allocations: 14.5 kB / 4.087 GB, free: 11.33 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01857/14.76, allocations: 2.844 MB / 4.09 GB, free: 11.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003193/14.76, allocations: 381.4 kB / 4.09 GB, free: 11.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/14.77, allocations: 3.781 MB / 4.094 GB, free: 10.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004739/14.78, allocations: 315 kB / 4.094 GB, free: 10.61 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005374/14.78, allocations: 116.6 kB / 4.094 GB, free: 10.6 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.002503/14.78, allocations: 0.7889 MB / 4.095 GB, free: 10.41 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008502/14.78, allocations: 234.6 kB / 4.095 GB, free: 10.29 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02059/14.8, allocations: 9.463 MB / 4.104 GB, free: 9.449 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001258/14.8, allocations: 107.2 kB / 4.104 GB, free: 9.449 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/14.8, allocations: 0 / 4.104 GB, free: 9.449 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01735/14.82, allocations: 8.343 MB / 4.112 GB, free: 8.105 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03371/14.85, allocations: 13.74 MB / 4.126 GB, free: 1.355 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-05/14.86, allocations: 0 / 4.126 GB, free: 1.355 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003712/14.86, allocations: 406.2 kB / 4.126 GB, free: 1.043 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01054/14.87, allocations: 2.32 MB / 4.129 GB, free: 15.21 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000708/14.87, allocations: 77.89 kB / 4.129 GB, free: 15.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009759/14.88, allocations: 7.01 MB / 4.135 GB, free: 8.375 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/14.88, allocations: 7.984 kB / 4.135 GB, free: 8.367 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4253/15.31, allocations: 10.55 MB / 4.146 GB, free: 53.38 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003444/15.31, allocations: 0.8267 MB / 4.147 GB, free: 53.28 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001386/15.31, allocations: 55.25 kB / 4.147 GB, free: 53.28 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004689/15.31, allocations: 271.5 kB / 4.147 GB, free: 53.28 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009923/15.32, allocations: 197.2 kB / 4.147 GB, free: 53.28 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003495/15.32, allocations: 80.66 kB / 4.147 GB, free: 53.28 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003568/15.32, allocations: 1.342 MB / 4.148 GB, free: 53.13 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.11e-07/15.32, allocations: 0 / 4.148 GB, free: 53.13 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01632/15.34, allocations: 3.064 MB / 4.151 GB, free: 53.13 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.01758/15.35, allocations: 3.081 MB / 4.154 GB, free: 52.96 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02294/15.38, allocations: 6.494 MB / 4.161 GB, free: 52.78 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/15.38, allocations: 1.25 kB / 4.161 GB, free: 52.78 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008732/15.39, allocations: 3.065 MB / 4.164 GB, free: 52.73 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01012/15.4, allocations: 1.08 MB / 4.165 GB, free: 52.71 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02584/15.42, allocations: 10.55 MB / 4.175 GB, free: 48.95 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003813/15.43, allocations: 2.567 MB / 4.178 GB, free: 48.17 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006873/15.43, allocations: 1.911 MB / 4.18 GB, free: 48.13 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001255/15.43, allocations: 186.3 kB / 4.18 GB, free: 48.12 MB / 490.7 MB Notification: Performance of SimCode: time 2.395e-06/15.43, allocations: 5.969 kB / 4.18 GB, free: 48.12 MB / 490.7 MB Notification: Performance of Templates: time 0.2508/15.68, allocations: 114.3 MB / 4.291 GB, free: 18.65 MB / 490.7 MB