Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.109/2.109, allocations: 194.8 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000369/0.000369, allocations: 12 kB / 264.1 MB, free: 3.488 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3139, allocations: 44.51 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.349/8.663, allocations: 2.661 GB / 2.962 GB, free: 56.55 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/8.664, allocations: 83.33 kB / 2.962 GB, free: 56.51 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.72/14.38, allocations: 1.025 GB / 3.987 GB, free: 12.09 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.675e-06/14.38, allocations: 0 / 3.987 GB, free: 12.09 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003467/14.38, allocations: 75.92 kB / 3.987 GB, free: 12.02 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.02428/14.41, allocations: 4.699 MB / 3.992 GB, free: 7.246 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.609e-05/14.41, allocations: 8.031 kB / 3.992 GB, free: 7.238 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002362/14.41, allocations: 423.8 kB / 3.992 GB, free: 6.812 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01197/14.42, allocations: 1.031 MB / 3.993 GB, free: 5.777 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009941/14.43, allocations: 2.215 MB / 3.995 GB, free: 3.504 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00058/14.43, allocations: 288.2 kB / 3.996 GB, free: 3.207 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001515/14.43, allocations: 251.9 kB / 3.996 GB, free: 2.961 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4574/14.89, allocations: 4.51 MB / 4 GB, free: 20.86 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001488/14.89, allocations: 6.75 kB / 4 GB, free: 20.86 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001284/14.89, allocations: 109.6 kB / 4 GB, free: 20.86 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004263/14.89, allocations: 221 kB / 4.001 GB, free: 20.85 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01655/14.91, allocations: 4.208 MB / 4.005 GB, free: 20.82 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.04434/14.96, allocations: 19.02 MB / 4.023 GB, free: 26.26 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01142/14.97, allocations: 2.88 MB / 4.026 GB, free: 26.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05438/15.02, allocations: 17.01 MB / 4.043 GB, free: 15.69 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.779e-05/15.02, allocations: 57.12 kB / 4.043 GB, free: 15.65 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002625/15.02, allocations: 240.9 kB / 4.043 GB, free: 15.59 MB / 474.7 MB Notification: Performance of pre-optimization done (n=194): time 9.157e-06/15.02, allocations: 3.422 kB / 4.043 GB, free: 15.59 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.07814/15.1, allocations: 15.92 MB / 4.059 GB, free: 13.33 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/15.1, allocations: 124.9 kB / 4.059 GB, free: 13.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004211/15.11, allocations: 1.686 MB / 4.06 GB, free: 12.98 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007907/15.11, allocations: 64.45 kB / 4.06 GB, free: 12.95 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00121/15.11, allocations: 1.145 MB / 4.061 GB, free: 12.59 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001333/15.11, allocations: 0.7356 MB / 4.062 GB, free: 12.18 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003572/15.11, allocations: 47.12 kB / 4.062 GB, free: 12.18 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002704/15.11, allocations: 400.7 kB / 4.063 GB, free: 11.88 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004766/15.12, allocations: 1.448 MB / 4.064 GB, free: 11.87 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005365/15.12, allocations: 1.951 MB / 4.066 GB, free: 11.34 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005308/15.13, allocations: 1.648 MB / 4.068 GB, free: 11.32 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.788e-05/15.13, allocations: 3.938 kB / 4.068 GB, free: 11.32 MB / 474.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01671/15.14, allocations: 4.95 MB / 4.072 GB, free: 11.11 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002527/15.15, allocations: 5.539 MB / 4.078 GB, free: 21.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.795e-05/15.15, allocations: 14.19 kB / 4.078 GB, free: 21.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02608/15.17, allocations: 3.996 MB / 4.082 GB, free: 21.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002378/15.17, allocations: 312.5 kB / 4.082 GB, free: 21.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01566/15.19, allocations: 4.841 MB / 4.087 GB, free: 20.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005237/15.2, allocations: 319.6 kB / 4.087 GB, free: 20.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008374/15.2, allocations: 118.7 kB / 4.087 GB, free: 20.68 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/15.2, allocations: 6.25 kB / 4.087 GB, free: 20.68 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01478/15.21, allocations: 4.249 MB / 4.091 GB, free: 20.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-05/15.21, allocations: 14.97 kB / 4.091 GB, free: 20.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01776/15.23, allocations: 2.847 MB / 4.094 GB, free: 20.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002945/15.23, allocations: 385.6 kB / 4.094 GB, free: 20.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/15.24, allocations: 3.782 MB / 4.098 GB, free: 20.01 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004906/15.25, allocations: 314 kB / 4.098 GB, free: 19.99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007288/15.25, allocations: 110.6 kB / 4.099 GB, free: 19.99 MB / 490.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.002813/15.25, allocations: 0.7951 MB / 4.099 GB, free: 19.79 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008563/15.25, allocations: 231.7 kB / 4.1 GB, free: 19.67 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02157/15.27, allocations: 9.46 MB / 4.109 GB, free: 18.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001547/15.27, allocations: 113.9 kB / 4.109 GB, free: 18.89 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.749e-05/15.27, allocations: 0 / 4.109 GB, free: 18.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01784/15.29, allocations: 8.338 MB / 4.117 GB, free: 18.02 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03276/15.32, allocations: 13.74 MB / 4.13 GB, free: 15.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.785e-05/15.32, allocations: 0 / 4.13 GB, free: 15.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003568/15.33, allocations: 412.4 kB / 4.131 GB, free: 15.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009748/15.34, allocations: 2.31 MB / 4.133 GB, free: 15.06 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007097/15.34, allocations: 73.38 kB / 4.133 GB, free: 15.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008812/15.35, allocations: 7.013 MB / 4.14 GB, free: 9.68 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.523e-06/15.35, allocations: 2.062 kB / 4.14 GB, free: 9.68 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0252/15.37, allocations: 10.35 MB / 4.15 GB, free: 5.16 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003165/15.38, allocations: 0.827 MB / 4.151 GB, free: 4.656 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/15.38, allocations: 55.64 kB / 4.151 GB, free: 4.621 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004505/15.38, allocations: 264.9 kB / 4.151 GB, free: 4.574 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009272/15.38, allocations: 198.4 kB / 4.151 GB, free: 4.547 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003443/15.38, allocations: 86.67 kB / 4.152 GB, free: 4.531 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003254/15.39, allocations: 1.337 MB / 4.153 GB, free: 4.016 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.52e-07/15.39, allocations: 0 / 4.153 GB, free: 4.016 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01477/15.4, allocations: 3.065 MB / 4.156 GB, free: 3.664 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.04397/15.45, allocations: 13.27 MB / 4.169 GB, free: 8.879 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02378/15.47, allocations: 6.495 MB / 4.175 GB, free: 3.344 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/15.47, allocations: 3.719 kB / 4.175 GB, free: 3.344 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00951/15.48, allocations: 3.056 MB / 4.178 GB, free: 0.6719 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.4598/15.94, allocations: 1.105 MB / 4.179 GB, free: 66.87 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03825/15.98, allocations: 22.5 MB / 4.201 GB, free: 52.64 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004036/15.98, allocations: 2.574 MB / 4.204 GB, free: 51.86 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006815/15.99, allocations: 1.911 MB / 4.206 GB, free: 51.82 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00367/15.99, allocations: 1.492 MB / 4.207 GB, free: 51.82 MB / 0.4948 GB Notification: Performance of SimCode: time 1.613e-06/15.99, allocations: 0 / 4.207 GB, free: 51.82 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3167/16.31, allocations: 145 MB / 4.349 GB, free: 4.539 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002763/16.31, allocations: 198.7 kB / 4.349 GB, free: 4.293 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/26.51, allocations: 0 / 4.349 GB, free: 4.293 MB / 0.4948 GB