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.632/1.632, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003668, allocations: 11.98 kB / 233.2 MB, free: 3.035 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07041/0.0708, allocations: 38.78 MB / 272 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.447/6.518, allocations: 2.551 GB / 2.817 GB, free: 61.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/6.518, allocations: 81.91 kB / 2.817 GB, free: 61.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.274/10.79, allocations: 0.9991 GB / 3.816 GB, free: 19.31 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.88e-06/10.79, allocations: 0 / 3.816 GB, free: 19.31 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000269/10.79, allocations: 69.45 kB / 3.816 GB, free: 19.29 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.01625/10.81, allocations: 4.581 MB / 3.821 GB, free: 15.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/10.81, allocations: 8.031 kB / 3.821 GB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009678/10.82, allocations: 0.9798 MB / 3.822 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006924/10.83, allocations: 2.213 MB / 3.824 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003506/10.83, allocations: 288.2 kB / 3.824 GB, free: 11.99 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009164/10.83, allocations: 255.8 kB / 3.824 GB, free: 11.74 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01251/10.84, allocations: 4.499 MB / 3.829 GB, free: 7.016 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.532e-05/10.84, allocations: 7.938 kB / 3.829 GB, free: 7.008 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004975/10.84, allocations: 115.5 kB / 3.829 GB, free: 6.898 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002804/10.84, allocations: 220.8 kB / 3.829 GB, free: 6.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0125/10.85, allocations: 4.207 MB / 3.833 GB, free: 2.457 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.3187/11.17, allocations: 18.98 MB / 3.852 GB, free: 23.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00965/11.18, allocations: 2.894 MB / 3.855 GB, free: 23.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03961/11.22, allocations: 17.01 MB / 3.871 GB, free: 13.17 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.095e-05/11.22, allocations: 58.03 kB / 3.871 GB, free: 13.13 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002005/11.22, allocations: 240.4 kB / 3.871 GB, free: 13.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 7.233e-06/11.22, allocations: 0 / 3.871 GB, free: 13.07 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.0612/11.28, allocations: 15.91 MB / 3.887 GB, free: 10.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/11.28, allocations: 128.7 kB / 3.887 GB, free: 10.69 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003649/11.29, allocations: 1.682 MB / 3.889 GB, free: 10.47 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005559/11.29, allocations: 63.36 kB / 3.889 GB, free: 10.44 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008302/11.29, allocations: 1.065 MB / 3.89 GB, free: 10.02 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009144/11.29, allocations: 0.7316 MB / 3.891 GB, free: 9.648 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002682/11.29, allocations: 48.5 kB / 3.891 GB, free: 9.648 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002723/11.29, allocations: 412 kB / 3.891 GB, free: 9.336 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003802/11.29, allocations: 1.439 MB / 3.892 GB, free: 9.328 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004386/11.3, allocations: 1.948 MB / 3.894 GB, free: 8.797 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004518/11.3, allocations: 1.653 MB / 3.896 GB, free: 8.777 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.377e-05/11.3, allocations: 3.031 kB / 3.896 GB, free: 8.777 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.013/11.32, allocations: 4.823 MB / 3.901 GB, free: 8.641 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002844/11.32, allocations: 5.308 MB / 3.906 GB, free: 19.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.121e-05/11.32, allocations: 19.72 kB / 3.906 GB, free: 19.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02068/11.34, allocations: 4 MB / 3.91 GB, free: 19.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001747/11.34, allocations: 312.1 kB / 3.91 GB, free: 19.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01194/11.35, allocations: 4.848 MB / 3.915 GB, free: 18.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003949/11.36, allocations: 315.2 kB / 3.915 GB, free: 18.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006572/11.36, allocations: 116.1 kB / 3.915 GB, free: 18.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/11.36, allocations: 5.156 kB / 3.915 GB, free: 18.46 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01149/11.37, allocations: 4.257 MB / 3.919 GB, free: 18.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.633e-05/11.37, allocations: 12.69 kB / 3.919 GB, free: 18.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0125/11.38, allocations: 2.627 MB / 3.922 GB, free: 18.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001964/11.38, allocations: 383.7 kB / 3.922 GB, free: 18.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007986/11.39, allocations: 3.775 MB / 3.926 GB, free: 17.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00301/11.4, allocations: 316.3 kB / 3.926 GB, free: 17.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003405/11.4, allocations: 111.5 kB / 3.926 GB, free: 17.78 MB / 442.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.002168/11.4, allocations: 0.8022 MB / 3.927 GB, free: 17.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006716/11.4, allocations: 231.8 kB / 3.927 GB, free: 17.46 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01747/11.42, allocations: 9.46 MB / 3.937 GB, free: 16.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001064/11.42, allocations: 104.7 kB / 3.937 GB, free: 16.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/11.42, allocations: 0 / 3.937 GB, free: 16.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01449/11.43, allocations: 8.34 MB / 3.945 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02716/11.46, allocations: 13.74 MB / 3.958 GB, free: 13.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-05/11.46, allocations: 5.938 kB / 3.958 GB, free: 13.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002521/11.46, allocations: 403.4 kB / 3.959 GB, free: 13.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008256/11.47, allocations: 2.315 MB / 3.961 GB, free: 13 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005686/11.47, allocations: 80.47 kB / 3.961 GB, free: 12.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008301/11.48, allocations: 7.001 MB / 3.968 GB, free: 7.625 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.265e-06/11.48, allocations: 10.3 kB / 3.968 GB, free: 7.621 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02093/11.5, allocations: 10.33 MB / 3.978 GB, free: 3.109 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002717/11.5, allocations: 0.827 MB / 3.979 GB, free: 2.605 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008791/11.5, allocations: 59.7 kB / 3.979 GB, free: 2.566 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003168/11.51, allocations: 266.7 kB / 3.979 GB, free: 2.52 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000625/11.51, allocations: 199.5 kB / 3.979 GB, free: 2.492 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00031/11.51, allocations: 88.62 kB / 3.979 GB, free: 2.473 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002985/11.51, allocations: 1.332 MB / 3.981 GB, free: 1.844 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.48e-07/11.51, allocations: 0 / 3.981 GB, free: 1.844 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01328/11.52, allocations: 3.062 MB / 3.984 GB, free: 15.14 MB / 458.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.01328/11.54, allocations: 3.058 MB / 3.987 GB, free: 13.12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01875/11.56, allocations: 6.465 MB / 3.993 GB, free: 7.629 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/11.56, allocations: 0 / 3.993 GB, free: 7.629 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007763/11.56, allocations: 3.046 MB / 3.996 GB, free: 4.965 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006888/11.57, allocations: 1.074 MB / 3.997 GB, free: 4.184 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3212/11.89, allocations: 10.64 MB / 4.007 GB, free: 61.27 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002781/11.89, allocations: 2.518 MB / 4.01 GB, free: 60.51 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/11.9, allocations: 203.2 kB / 4.01 GB, free: 60.51 MB / 458.7 MB Notification: Performance of SimCode: time 1.7e-06/11.9, allocations: 1.688 kB / 4.01 GB, free: 60.51 MB / 458.7 MB Notification: Performance of Templates: time 0.1773/12.07, allocations: 137.7 MB / 4.145 GB, free: 16.16 MB / 458.7 MB