Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.797/1.797, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003498/0.0003498, allocations: 8 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08201/0.08238, allocations: 38.76 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.771/7.853, allocations: 2.551 GB / 2.818 GB, free: 67.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/7.854, allocations: 83.06 kB / 2.818 GB, free: 67.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.479/13.33, allocations: 0.9991 GB / 3.817 GB, free: 21.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.554e-06/13.33, allocations: 0 / 3.817 GB, free: 21.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003322/13.33, allocations: 77.52 kB / 3.817 GB, free: 21.94 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.02282/13.36, allocations: 4.573 MB / 3.821 GB, free: 19.89 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/13.36, allocations: 9.75 kB / 3.821 GB, free: 19.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01145/13.37, allocations: 0.9792 MB / 3.822 GB, free: 19.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009194/13.38, allocations: 2.217 MB / 3.824 GB, free: 19.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005139/13.38, allocations: 286.4 kB / 3.825 GB, free: 19.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00158/13.38, allocations: 250.8 kB / 3.825 GB, free: 19.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01702/13.4, allocations: 4.53 MB / 3.829 GB, free: 18.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000124/13.4, allocations: 8.031 kB / 3.829 GB, free: 18.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006894/13.4, allocations: 114.3 kB / 3.829 GB, free: 18.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003902/13.4, allocations: 216.1 kB / 3.83 GB, free: 18.56 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01654/13.41, allocations: 4.201 MB / 3.834 GB, free: 18.53 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.04156/13.46, allocations: 19 MB / 3.852 GB, free: 7.707 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01116/13.47, allocations: 2.893 MB / 3.855 GB, free: 7.645 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05507/13.52, allocations: 17 MB / 3.872 GB, free: 13.12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.085e-05/13.52, allocations: 60.38 kB / 3.872 GB, free: 13.08 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002512/13.52, allocations: 236.1 kB / 3.872 GB, free: 12.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 9.277e-06/13.52, allocations: 1.75 kB / 3.872 GB, free: 12.98 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.08075/13.6, allocations: 16.01 MB / 3.888 GB, free: 10.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/13.6, allocations: 126.2 kB / 3.888 GB, free: 10.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003981/13.61, allocations: 1.901 MB / 3.89 GB, free: 10.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007515/13.61, allocations: 65.08 kB / 3.89 GB, free: 10.26 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009295/13.61, allocations: 1.068 MB / 3.891 GB, free: 9.719 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001305/13.61, allocations: 0.7233 MB / 3.891 GB, free: 9.254 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003332/13.61, allocations: 52.19 kB / 3.891 GB, free: 9.254 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002579/13.61, allocations: 405.8 kB / 3.892 GB, free: 8.941 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004803/13.62, allocations: 1.45 MB / 3.893 GB, free: 8.934 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005632/13.62, allocations: 1.951 MB / 3.895 GB, free: 8.402 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005537/13.63, allocations: 1.645 MB / 3.897 GB, free: 8.383 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.072e-05/13.63, allocations: 11.86 kB / 3.897 GB, free: 8.383 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01634/13.65, allocations: 4.817 MB / 3.902 GB, free: 8.215 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003637/13.65, allocations: 0.492 MB / 3.902 GB, free: 7.621 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.157e-05/13.65, allocations: 17.53 kB / 3.902 GB, free: 7.621 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02761/13.67, allocations: 4.065 MB / 3.906 GB, free: 7.504 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002489/13.68, allocations: 310.8 kB / 3.906 GB, free: 7.504 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01552/13.69, allocations: 4.845 MB / 3.911 GB, free: 6.883 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005198/13.7, allocations: 316.9 kB / 3.911 GB, free: 6.844 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000799/13.7, allocations: 119.6 kB / 3.911 GB, free: 6.844 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/13.7, allocations: 7.531 kB / 3.911 GB, free: 6.84 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01394/13.71, allocations: 4.254 MB / 3.916 GB, free: 6.758 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-05/13.71, allocations: 12.44 kB / 3.916 GB, free: 6.758 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0169/13.73, allocations: 2.632 MB / 3.918 GB, free: 6.684 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00299/13.73, allocations: 379.1 kB / 3.919 GB, free: 6.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/13.74, allocations: 3.776 MB / 3.922 GB, free: 6.082 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004111/13.75, allocations: 311.6 kB / 3.923 GB, free: 6.043 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004894/13.75, allocations: 113.8 kB / 3.923 GB, free: 6.043 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.002637/13.75, allocations: 0.7993 MB / 3.923 GB, free: 5.844 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008315/13.75, allocations: 233.5 kB / 3.924 GB, free: 5.723 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02119/13.77, allocations: 9.456 MB / 3.933 GB, free: 4.535 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001407/13.77, allocations: 103.8 kB / 3.933 GB, free: 4.512 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.704e-05/13.77, allocations: 0 / 3.933 GB, free: 4.512 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01967/13.79, allocations: 8.339 MB / 3.941 GB, free: 14.61 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03772/13.83, allocations: 13.76 MB / 3.955 GB, free: 2.812 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.34e-05/13.83, allocations: 0 / 3.955 GB, free: 2.812 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003727/13.83, allocations: 411.6 kB / 3.955 GB, free: 2.496 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01083/13.84, allocations: 2.305 MB / 3.957 GB, free: 0.6406 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007528/13.85, allocations: 78.67 kB / 3.957 GB, free: 0.5781 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4051/14.25, allocations: 6.996 MB / 3.964 GB, free: 46.05 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/14.25, allocations: 2.531 kB / 3.964 GB, free: 46.05 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02835/14.28, allocations: 10.28 MB / 3.974 GB, free: 45.51 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003385/14.28, allocations: 0.8268 MB / 3.975 GB, free: 45.42 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001283/14.28, allocations: 55.56 kB / 3.975 GB, free: 45.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004773/14.29, allocations: 270.8 kB / 3.975 GB, free: 45.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009346/14.29, allocations: 197 kB / 3.975 GB, free: 45.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003584/14.29, allocations: 85.75 kB / 3.976 GB, free: 45.41 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003816/14.29, allocations: 1.341 MB / 3.977 GB, free: 45.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.61e-07/14.29, allocations: 4.031 kB / 3.977 GB, free: 45.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01696/14.31, allocations: 3.048 MB / 3.98 GB, free: 45.27 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.01837/14.33, allocations: 3.056 MB / 3.983 GB, free: 45.08 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02363/14.35, allocations: 6.453 MB / 3.989 GB, free: 44.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/14.35, allocations: 0 / 3.989 GB, free: 44.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009595/14.36, allocations: 3.054 MB / 3.992 GB, free: 44.85 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01044/14.37, allocations: 1.089 MB / 3.993 GB, free: 44.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02544/14.4, allocations: 10.61 MB / 4.004 GB, free: 41.04 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003961/14.4, allocations: 2.527 MB / 4.006 GB, free: 40.28 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001438/14.4, allocations: 203.2 kB / 4.006 GB, free: 40.27 MB / 442.7 MB Notification: Performance of SimCode: time 1.764e-06/14.4, allocations: 0 / 4.006 GB, free: 40.27 MB / 442.7 MB Notification: Performance of Templates: time 0.6163/15.02, allocations: 137.7 MB / 4.141 GB, free: 63.72 MB / 458.7 MB