Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.HeatingSystem.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.723/1.723, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004988/0.0004988, allocations: 12 kB / 233.8 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08731/0.08785, allocations: 38.76 MB / 272.6 MB, free: 11.56 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.033/8.121, allocations: 2.551 GB / 2.818 GB, free: 68.26 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002834/8.121, allocations: 77.98 kB / 2.818 GB, free: 68.26 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.89/14.01, allocations: 0.9991 GB / 3.817 GB, free: 21.56 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.618e-06/14.01, allocations: 0 / 3.817 GB, free: 21.56 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004308/14.01, allocations: 81.16 kB / 3.817 GB, free: 21.55 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.02438/14.04, allocations: 4.572 MB / 3.821 GB, free: 19.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/14.04, allocations: 10.12 kB / 3.821 GB, free: 19.49 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01293/14.05, allocations: 0.9819 MB / 3.822 GB, free: 19.33 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009636/14.06, allocations: 2.217 MB / 3.824 GB, free: 18.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005311/14.06, allocations: 287.2 kB / 3.825 GB, free: 18.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00143/14.06, allocations: 253.9 kB / 3.825 GB, free: 18.78 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01734/14.08, allocations: 4.504 MB / 3.829 GB, free: 18.17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001397/14.08, allocations: 9.094 kB / 3.829 GB, free: 18.17 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001346/14.08, allocations: 113 kB / 3.83 GB, free: 18.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004052/14.08, allocations: 222.7 kB / 3.83 GB, free: 18.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01686/14.1, allocations: 4.197 MB / 3.834 GB, free: 18.13 MB / 410.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.04103/14.14, allocations: 19 MB / 3.852 GB, free: 7.305 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01141/14.15, allocations: 2.897 MB / 3.855 GB, free: 7.242 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05472/14.2, allocations: 17 MB / 3.872 GB, free: 12.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.989e-05/14.2, allocations: 52.38 kB / 3.872 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002854/14.21, allocations: 242.6 kB / 3.872 GB, free: 12.57 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 1.355e-05/14.21, allocations: 0 / 3.872 GB, free: 12.57 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.07987/14.29, allocations: 16.01 MB / 3.888 GB, free: 10.26 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/14.29, allocations: 132.4 kB / 3.888 GB, free: 10.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004183/14.29, allocations: 1.897 MB / 3.89 GB, free: 9.887 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007073/14.29, allocations: 62.77 kB / 3.89 GB, free: 9.855 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001045/14.29, allocations: 1.148 MB / 3.891 GB, free: 9.379 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001237/14.29, allocations: 0.7236 MB / 3.892 GB, free: 8.914 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003173/14.29, allocations: 48.44 kB / 3.892 GB, free: 8.914 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002623/14.3, allocations: 408.3 kB / 3.892 GB, free: 8.609 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004607/14.3, allocations: 1.444 MB / 3.893 GB, free: 8.602 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005369/14.31, allocations: 1.942 MB / 3.895 GB, free: 8.07 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005249/14.31, allocations: 1.648 MB / 3.897 GB, free: 8.051 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.308e-05/14.31, allocations: 3.906 kB / 3.897 GB, free: 8.051 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01603/14.33, allocations: 4.95 MB / 3.902 GB, free: 7.812 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003873/14.33, allocations: 0.4913 MB / 3.902 GB, free: 7.215 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.957e-05/14.33, allocations: 22.14 kB / 3.902 GB, free: 7.215 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02689/14.35, allocations: 4.062 MB / 3.906 GB, free: 7.098 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002362/14.36, allocations: 314.7 kB / 3.907 GB, free: 7.098 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0162/14.37, allocations: 4.842 MB / 3.911 GB, free: 6.477 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005318/14.38, allocations: 325 kB / 3.912 GB, free: 6.434 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009535/14.38, allocations: 112.6 kB / 3.912 GB, free: 6.434 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/14.38, allocations: 3.5 kB / 3.912 GB, free: 6.434 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01492/14.39, allocations: 4.261 MB / 3.916 GB, free: 6.348 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.907e-05/14.39, allocations: 14 kB / 3.916 GB, free: 6.348 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01797/14.41, allocations: 2.841 MB / 3.919 GB, free: 6.262 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002948/14.42, allocations: 383 kB / 3.919 GB, free: 6.262 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/14.43, allocations: 3.78 MB / 3.923 GB, free: 5.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004883/14.43, allocations: 310.9 kB / 3.923 GB, free: 5.621 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008455/14.43, allocations: 110.7 kB / 3.923 GB, free: 5.621 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 () * 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.002867/14.44, allocations: 0.8028 MB / 3.924 GB, free: 5.418 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008205/14.44, allocations: 235.4 kB / 3.924 GB, free: 5.301 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02138/14.46, allocations: 9.459 MB / 3.933 GB, free: 4.465 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001302/14.46, allocations: 102.6 kB / 3.933 GB, free: 4.465 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.789e-05/14.46, allocations: 0 / 3.933 GB, free: 4.465 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01998/14.48, allocations: 8.348 MB / 3.942 GB, free: 15.37 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03592/14.51, allocations: 13.75 MB / 3.955 GB, free: 3.582 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.911e-05/14.51, allocations: 2.812 kB / 3.955 GB, free: 3.582 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003699/14.52, allocations: 404.3 kB / 3.955 GB, free: 3.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01056/14.53, allocations: 2.313 MB / 3.958 GB, free: 1.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007394/14.53, allocations: 74.78 kB / 3.958 GB, free: 1.348 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4089/14.94, allocations: 7.001 MB / 3.965 GB, free: 46.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/14.94, allocations: 5.875 kB / 3.965 GB, free: 46.1 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02501/14.96, allocations: 10.28 MB / 3.975 GB, free: 45.56 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003163/14.97, allocations: 0.824 MB / 3.975 GB, free: 45.46 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/14.97, allocations: 58.02 kB / 3.975 GB, free: 45.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004563/14.97, allocations: 268.8 kB / 3.976 GB, free: 45.46 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009256/14.97, allocations: 193.5 kB / 3.976 GB, free: 45.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003591/14.97, allocations: 87.36 kB / 3.976 GB, free: 45.46 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003976/14.98, allocations: 1.336 MB / 3.977 GB, free: 45.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.51e-07/14.98, allocations: 0 / 3.977 GB, free: 45.32 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01533/14.99, allocations: 3.048 MB / 3.98 GB, free: 45.32 MB / 442.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.01704/15.01, allocations: 3.06 MB / 3.983 GB, free: 45.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02701/15.04, allocations: 6.492 MB / 3.99 GB, free: 44.96 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/15.04, allocations: 0 / 3.99 GB, free: 44.96 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008487/15.05, allocations: 3.063 MB / 3.993 GB, free: 44.91 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009964/15.06, allocations: 1.081 MB / 3.994 GB, free: 44.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02458/15.08, allocations: 10.54 MB / 4.004 GB, free: 41.13 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003497/15.08, allocations: 2.577 MB / 4.006 GB, free: 40.35 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006536/15.09, allocations: 1.915 MB / 4.008 GB, free: 40.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001339/15.09, allocations: 186.4 kB / 4.009 GB, free: 40.29 MB / 442.7 MB Notification: Performance of SimCode: time 1.322e-06/15.09, allocations: 0 / 4.009 GB, free: 40.29 MB / 442.7 MB Notification: Performance of Templates: time 0.6346/15.73, allocations: 114 MB / 4.12 GB, free: 64.82 MB / 458.7 MB