Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 2.062/2.062, allocations: 194.8 MB / 212.3 MB, free: 3.023 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003571/0.0003571, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1023, allocations: 44.5 MB / 309 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.126/8.228, allocations: 2.661 GB / 2.963 GB, free: 35.25 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/8.228, allocations: 82.34 kB / 2.963 GB, free: 35.21 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.645/13.87, allocations: 1.025 GB / 3.987 GB, free: 27 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.264e-06/13.87, allocations: 0 / 3.987 GB, free: 27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002953/13.87, allocations: 71.52 kB / 3.988 GB, free: 26.99 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.02034/13.89, allocations: 4.699 MB / 3.992 GB, free: 24.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/13.89, allocations: 8.688 kB / 3.992 GB, free: 24.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/13.9, allocations: 1.028 MB / 3.993 GB, free: 24.73 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007916/13.91, allocations: 2.214 MB / 3.995 GB, free: 24.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003242/13.91, allocations: 288.3 kB / 3.996 GB, free: 24.18 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006914/13.91, allocations: 248 kB / 3.996 GB, free: 24.18 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01258/13.93, allocations: 4.528 MB / 4 GB, free: 23.57 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.223e-05/13.93, allocations: 8.438 kB / 4 GB, free: 23.57 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004451/13.93, allocations: 111.6 kB / 4 GB, free: 23.57 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003486/13.93, allocations: 220.8 kB / 4.001 GB, free: 23.56 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01368/13.94, allocations: 4.202 MB / 4.005 GB, free: 23.53 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.03307/13.97, allocations: 18.99 MB / 4.023 GB, free: 12.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009686/13.98, allocations: 2.89 MB / 4.026 GB, free: 12.65 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04815/14.03, allocations: 17 MB / 4.043 GB, free: 18.12 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.075e-05/14.03, allocations: 56.84 kB / 4.043 GB, free: 18.09 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002334/14.03, allocations: 231.5 kB / 4.043 GB, free: 17.98 MB / 474.7 MB Notification: Performance of pre-optimization done (n=194): time 4.97e-06/14.03, allocations: 0 / 4.043 GB, free: 17.98 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.06651/14.1, allocations: 16.03 MB / 4.059 GB, free: 15.66 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/14.1, allocations: 129 kB / 4.059 GB, free: 15.54 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003427/14.1, allocations: 1.894 MB / 4.061 GB, free: 15.3 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004976/14.1, allocations: 64.3 kB / 4.061 GB, free: 15.27 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007503/14.11, allocations: 1.067 MB / 4.062 GB, free: 14.73 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008289/14.11, allocations: 0.733 MB / 4.062 GB, free: 14.26 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002495/14.11, allocations: 46.81 kB / 4.062 GB, free: 14.26 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002251/14.11, allocations: 411.5 kB / 4.063 GB, free: 13.95 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003972/14.11, allocations: 1.446 MB / 4.064 GB, free: 13.94 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004273/14.11, allocations: 1.953 MB / 4.066 GB, free: 13.41 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004286/14.12, allocations: 1.644 MB / 4.068 GB, free: 13.39 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/14.12, allocations: 5.406 kB / 4.068 GB, free: 13.39 MB / 474.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.0132/14.13, allocations: 4.822 MB / 4.072 GB, free: 13.25 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003025/14.13, allocations: 0.4948 MB / 4.073 GB, free: 12.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.488e-05/14.13, allocations: 11.31 kB / 4.073 GB, free: 12.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02423/14.16, allocations: 4.07 MB / 4.077 GB, free: 12.63 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002133/14.16, allocations: 311.1 kB / 4.077 GB, free: 12.63 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01274/14.17, allocations: 4.842 MB / 4.082 GB, free: 12.03 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004321/14.18, allocations: 316.5 kB / 4.082 GB, free: 11.99 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000325/14.18, allocations: 116.6 kB / 4.082 GB, free: 11.99 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/14.18, allocations: 5.875 kB / 4.082 GB, free: 11.99 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01162/14.19, allocations: 4.259 MB / 4.087 GB, free: 11.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.01e-05/14.19, allocations: 17.83 kB / 4.087 GB, free: 11.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01485/14.2, allocations: 2.628 MB / 4.089 GB, free: 11.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002534/14.21, allocations: 378.2 kB / 4.089 GB, free: 11.83 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009124/14.21, allocations: 3.781 MB / 4.093 GB, free: 11.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003252/14.22, allocations: 309.4 kB / 4.093 GB, free: 11.19 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002825/14.22, allocations: 112.1 kB / 4.094 GB, free: 11.19 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.002199/14.22, allocations: 0.8 MB / 4.094 GB, free: 10.99 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007036/14.22, allocations: 230 kB / 4.095 GB, free: 10.88 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01808/14.24, allocations: 9.463 MB / 4.104 GB, free: 10.04 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001078/14.24, allocations: 108.5 kB / 4.104 GB, free: 10.04 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/14.24, allocations: 0 / 4.104 GB, free: 10.04 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01484/14.25, allocations: 8.332 MB / 4.112 GB, free: 8.973 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02783/14.28, allocations: 13.74 MB / 4.125 GB, free: 2.422 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.555e-05/14.28, allocations: 0 / 4.125 GB, free: 2.422 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003233/14.29, allocations: 407.1 kB / 4.126 GB, free: 2.109 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009656/14.3, allocations: 2.317 MB / 4.128 GB, free: 248 kB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003992/14.3, allocations: 81.27 kB / 4.128 GB, free: 180 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008693/14.3, allocations: 6.998 MB / 4.135 GB, free: 9.414 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/14.3, allocations: 5.453 kB / 4.135 GB, free: 9.41 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02309/14.33, allocations: 10.28 MB / 4.145 GB, free: 184 kB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.3486/14.68, allocations: 0.8267 MB / 4.146 GB, free: 55.05 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007809/14.68, allocations: 56.56 kB / 4.146 GB, free: 55.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003206/14.68, allocations: 264 kB / 4.146 GB, free: 55.05 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005448/14.68, allocations: 199.4 kB / 4.146 GB, free: 55.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002647/14.68, allocations: 82.77 kB / 4.146 GB, free: 55.05 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002812/14.68, allocations: 1.339 MB / 4.148 GB, free: 54.91 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.91e-07/14.68, allocations: 0 / 4.148 GB, free: 54.91 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01282/14.7, allocations: 3.071 MB / 4.151 GB, free: 54.91 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.01457/14.71, allocations: 3.073 MB / 4.154 GB, free: 54.73 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01884/14.73, allocations: 6.46 MB / 4.16 GB, free: 54.55 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/14.73, allocations: 2.875 kB / 4.16 GB, free: 54.55 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0071/14.74, allocations: 3.048 MB / 4.163 GB, free: 54.51 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008489/14.75, allocations: 1.089 MB / 4.164 GB, free: 54.48 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02011/14.77, allocations: 10.6 MB / 4.174 GB, free: 50.72 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002332/14.77, allocations: 2.52 MB / 4.177 GB, free: 49.96 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001279/14.77, allocations: 203.4 kB / 4.177 GB, free: 49.95 MB / 490.7 MB Notification: Performance of SimCode: time 1.463e-06/14.77, allocations: 0 / 4.177 GB, free: 49.95 MB / 490.7 MB Notification: Performance of Templates: time 0.2008/14.97, allocations: 137.9 MB / 4.312 GB, free: 13.82 MB / 0.4948 GB