Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.HeatingSystem.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.732/1.732, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.467e-05/2.486e-05, allocations: 4 kB / 228.8 MB, free: 15.36 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.247, allocations: 38.78 MB / 267.6 MB, free: 9.445 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.064/6.311, allocations: 2.551 GB / 2.813 GB, free: 24.15 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001917/6.311, allocations: 82.83 kB / 2.813 GB, free: 24.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609/10.92, allocations: 0.9963 GB / 3.809 GB, free: 23.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.124e-06/10.92, allocations: 0 / 3.809 GB, free: 23.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000309/10.92, allocations: 69.92 kB / 3.809 GB, free: 23.65 MB / 410.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.01635/10.94, allocations: 4.267 MB / 3.813 GB, free: 21.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/10.94, allocations: 15 kB / 3.813 GB, free: 21.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/10.95, allocations: 0.9834 MB / 3.814 GB, free: 21.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007462/10.96, allocations: 2.202 MB / 3.816 GB, free: 20.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004556/10.96, allocations: 283.7 kB / 3.817 GB, free: 20.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001164/10.96, allocations: 254.7 kB / 3.817 GB, free: 20.76 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01354/10.97, allocations: 4.46 MB / 3.821 GB, free: 20.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000106/10.97, allocations: 7.438 kB / 3.821 GB, free: 20.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007251/10.97, allocations: 115.4 kB / 3.821 GB, free: 20.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003282/10.97, allocations: 216.4 kB / 3.822 GB, free: 20.1 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01244/10.98, allocations: 4.047 MB / 3.826 GB, free: 20.02 MB / 410.7 MB 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.03189/11.02, allocations: 19.01 MB / 3.844 GB, free: 8.973 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008066/11.02, allocations: 2.772 MB / 3.847 GB, free: 8.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003175/11.03, allocations: 1.481 MB / 3.848 GB, free: 7.715 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03813/11.07, allocations: 17.08 MB / 3.865 GB, free: 7.207 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.334e-05/11.07, allocations: 52.56 kB / 3.865 GB, free: 7.145 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002121/11.07, allocations: 237.3 kB / 3.865 GB, free: 6.93 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 6.533e-06/11.07, allocations: 4 kB / 3.865 GB, free: 6.926 MB / 426.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.3575/11.43, allocations: 11.19 MB / 3.876 GB, free: 39.36 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/11.43, allocations: 127.9 kB / 3.876 GB, free: 39.23 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003342/11.43, allocations: 1.658 MB / 3.878 GB, free: 39 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000514/11.43, allocations: 65.39 kB / 3.878 GB, free: 38.97 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00073/11.43, allocations: 1.067 MB / 3.879 GB, free: 38.55 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007777/11.43, allocations: 0.7284 MB / 3.88 GB, free: 38.18 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002548/11.43, allocations: 49.56 kB / 3.88 GB, free: 38.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001805/11.43, allocations: 413.2 kB / 3.88 GB, free: 37.87 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002756/11.43, allocations: 1.321 MB / 3.881 GB, free: 37.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003087/11.44, allocations: 1.817 MB / 3.883 GB, free: 37.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003258/11.44, allocations: 1.541 MB / 3.885 GB, free: 37.31 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.647e-05/11.44, allocations: 2.812 kB / 3.885 GB, free: 37.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.0107/11.45, allocations: 4.475 MB / 3.889 GB, free: 37.18 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001058/11.45, allocations: 5.312 MB / 3.894 GB, free: 31.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.294e-05/11.45, allocations: 12.81 kB / 3.894 GB, free: 31.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01961/11.47, allocations: 3.779 MB / 3.898 GB, free: 31.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/11.47, allocations: 318.7 kB / 3.898 GB, free: 31.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009624/11.48, allocations: 4.566 MB / 3.903 GB, free: 31.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003796/11.49, allocations: 317.8 kB / 3.903 GB, free: 31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004736/11.49, allocations: 122.6 kB / 3.903 GB, free: 31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/11.49, allocations: 2.031 kB / 3.903 GB, free: 31 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008873/11.5, allocations: 3.93 MB / 3.907 GB, free: 30.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.416e-05/11.5, allocations: 12.28 kB / 3.907 GB, free: 30.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01096/11.51, allocations: 2.476 MB / 3.909 GB, free: 30.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002204/11.51, allocations: 376.5 kB / 3.91 GB, free: 30.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00654/11.52, allocations: 3.555 MB / 3.913 GB, free: 30.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003002/11.52, allocations: 315.1 kB / 3.914 GB, free: 30.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003194/11.52, allocations: 113.1 kB / 3.914 GB, free: 30.32 MB / 426.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 () * 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.0007656/11.52, allocations: 239 kB / 3.914 GB, free: 30.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006943/11.52, allocations: 236.8 kB / 3.914 GB, free: 30.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01549/11.54, allocations: 9.373 MB / 3.923 GB, free: 29.33 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000103/11.54, allocations: 105.2 kB / 3.923 GB, free: 29.33 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/11.54, allocations: 0 / 3.923 GB, free: 29.33 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01264/11.55, allocations: 8.262 MB / 3.931 GB, free: 28.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02469/11.57, allocations: 13.59 MB / 3.945 GB, free: 27.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.115e-05/11.57, allocations: 6.547 kB / 3.945 GB, free: 27.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002461/11.58, allocations: 410.6 kB / 3.945 GB, free: 27.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008155/11.59, allocations: 2.677 MB / 3.948 GB, free: 27.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000519/11.59, allocations: 74.16 kB / 3.948 GB, free: 27.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00632/11.59, allocations: 6.928 MB / 3.955 GB, free: 23.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/11.59, allocations: 0 / 3.955 GB, free: 23.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01642/11.61, allocations: 9.959 MB / 3.964 GB, free: 21.54 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002248/11.61, allocations: 0.8341 MB / 3.965 GB, free: 21.03 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000683/11.61, allocations: 54.66 kB / 3.965 GB, free: 21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002801/11.61, allocations: 264.3 kB / 3.965 GB, free: 20.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005016/11.61, allocations: 205.1 kB / 3.966 GB, free: 20.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002835/11.62, allocations: 88.33 kB / 3.966 GB, free: 20.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002482/11.62, allocations: 1.309 MB / 3.967 GB, free: 20.38 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.029e-06/11.62, allocations: 0 / 3.967 GB, free: 20.38 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01138/11.63, allocations: 3.053 MB / 3.97 GB, free: 20.02 MB / 426.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 () * 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.01192/11.64, allocations: 3.065 MB / 3.973 GB, free: 19.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01371/11.65, allocations: 6.093 MB / 3.979 GB, free: 17.53 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.439e-06/11.65, allocations: 2.156 kB / 3.979 GB, free: 17.53 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006254/11.66, allocations: 2.957 MB / 3.982 GB, free: 16.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007233/11.67, allocations: 1.078 MB / 3.983 GB, free: 16.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/11.68, allocations: 7.387 MB / 3.99 GB, free: 13.38 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002456/11.69, allocations: 2.518 MB / 3.992 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/11.69, allocations: 206.3 kB / 3.993 GB, free: 12.48 MB / 426.7 MB Notification: Performance of SimCode: time 2.496e-06/11.69, allocations: 0 / 3.993 GB, free: 12.48 MB / 426.7 MB Notification: Performance of Templates: time 0.4721/12.16, allocations: 138.1 MB / 4.128 GB, free: 37.86 MB / 442.7 MB