Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.064/2.064, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004801/0.0004802, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1008, allocations: 44.49 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.043/8.144, allocations: 2.661 GB / 2.962 GB, free: 27.94 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/8.144, allocations: 86.02 kB / 2.962 GB, free: 27.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.909/14.05, allocations: 1.025 GB / 3.987 GB, free: 25.92 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.497e-06/14.05, allocations: 2.625 kB / 3.987 GB, free: 25.92 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003943/14.05, allocations: 78.23 kB / 3.987 GB, free: 25.91 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.02436/14.08, allocations: 4.699 MB / 3.992 GB, free: 23.82 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/14.08, allocations: 8.938 kB / 3.992 GB, free: 23.82 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002456/14.08, allocations: 422.4 kB / 3.992 GB, free: 23.76 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01228/14.09, allocations: 1.031 MB / 3.993 GB, free: 23.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009347/14.1, allocations: 2.219 MB / 3.995 GB, free: 23.11 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004985/14.1, allocations: 290.4 kB / 3.996 GB, free: 23.04 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001547/14.1, allocations: 250.9 kB / 3.996 GB, free: 23.04 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01829/14.12, allocations: 4.512 MB / 4 GB, free: 22.43 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001174/14.12, allocations: 6.156 kB / 4 GB, free: 22.43 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009014/14.12, allocations: 110 kB / 4 GB, free: 22.43 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004158/14.12, allocations: 222.7 kB / 4.001 GB, free: 22.43 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0169/14.14, allocations: 4.205 MB / 4.005 GB, free: 22.39 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.04208/14.18, allocations: 19.01 MB / 4.023 GB, free: 11.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01148/14.19, allocations: 2.893 MB / 4.026 GB, free: 11.51 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05349/14.25, allocations: 16.99 MB / 4.043 GB, free: 16.99 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.931e-05/14.25, allocations: 58.75 kB / 4.043 GB, free: 16.95 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002858/14.25, allocations: 239.9 kB / 4.043 GB, free: 16.85 MB / 474.7 MB Notification: Performance of pre-optimization done (n=194): time 8.075e-06/14.25, allocations: 0 / 4.043 GB, free: 16.85 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.07763/14.33, allocations: 15.93 MB / 4.058 GB, free: 14.52 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/14.33, allocations: 128.8 kB / 4.059 GB, free: 14.39 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003884/14.33, allocations: 1.68 MB / 4.06 GB, free: 14.17 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007648/14.33, allocations: 66.36 kB / 4.06 GB, free: 14.14 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001006/14.33, allocations: 1.068 MB / 4.061 GB, free: 13.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001351/14.34, allocations: 0.732 MB / 4.062 GB, free: 13.13 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003333/14.34, allocations: 51.59 kB / 4.062 GB, free: 13.13 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002664/14.34, allocations: 403 kB / 4.063 GB, free: 12.82 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004824/14.34, allocations: 1.449 MB / 4.064 GB, free: 12.81 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005976/14.35, allocations: 1.942 MB / 4.066 GB, free: 12.29 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006017/14.35, allocations: 1.65 MB / 4.067 GB, free: 12.27 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.986e-05/14.35, allocations: 2.812 kB / 4.067 GB, free: 12.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.02244/14.38, allocations: 4.826 MB / 4.072 GB, free: 12.12 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002112/14.38, allocations: 5.319 MB / 4.077 GB, free: 6.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-05/14.38, allocations: 15.78 kB / 4.077 GB, free: 6.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02598/14.4, allocations: 3.999 MB / 4.081 GB, free: 6.543 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002429/14.41, allocations: 316.3 kB / 4.082 GB, free: 6.543 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0156/14.42, allocations: 4.841 MB / 4.086 GB, free: 5.934 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005175/14.43, allocations: 314.5 kB / 4.087 GB, free: 5.895 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000787/14.43, allocations: 121.4 kB / 4.087 GB, free: 5.895 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/14.43, allocations: 3.344 kB / 4.087 GB, free: 5.895 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01408/14.44, allocations: 4.256 MB / 4.091 GB, free: 5.809 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.082e-05/14.44, allocations: 13.31 kB / 4.091 GB, free: 5.809 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01629/14.46, allocations: 2.627 MB / 4.093 GB, free: 5.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002888/14.46, allocations: 377.5 kB / 4.094 GB, free: 5.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01297/14.47, allocations: 3.779 MB / 4.098 GB, free: 5.129 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005885/14.48, allocations: 310.8 kB / 4.098 GB, free: 5.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000742/14.48, allocations: 112.9 kB / 4.098 GB, free: 5.09 MB / 474.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.003848/14.49, allocations: 0.8016 MB / 4.099 GB, free: 4.887 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/14.49, allocations: 234.7 kB / 4.099 GB, free: 4.766 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02095/14.51, allocations: 9.451 MB / 4.108 GB, free: 3.938 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001289/14.51, allocations: 117 kB / 4.108 GB, free: 3.93 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.521e-05/14.51, allocations: 0 / 4.108 GB, free: 3.93 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01782/14.53, allocations: 8.326 MB / 4.116 GB, free: 1.496 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03442/14.56, allocations: 13.77 MB / 4.13 GB, free: 9.953 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.707e-05/14.56, allocations: 0 / 4.13 GB, free: 9.953 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003883/14.56, allocations: 404.8 kB / 4.13 GB, free: 9.641 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01041/14.57, allocations: 2.315 MB / 4.132 GB, free: 7.777 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007447/14.58, allocations: 73.84 kB / 4.133 GB, free: 7.715 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009255/14.58, allocations: 7.005 MB / 4.139 GB, free: 0.9492 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/14.58, allocations: 0 / 4.139 GB, free: 0.9492 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.419/15, allocations: 10.39 MB / 4.15 GB, free: 53.76 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003327/15.01, allocations: 0.827 MB / 4.15 GB, free: 53.66 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001483/15.01, allocations: 54.67 kB / 4.15 GB, free: 53.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005209/15.01, allocations: 264.7 kB / 4.151 GB, free: 53.66 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001073/15.02, allocations: 201.2 kB / 4.151 GB, free: 53.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003345/15.02, allocations: 89.36 kB / 4.151 GB, free: 53.66 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003475/15.02, allocations: 1.337 MB / 4.152 GB, free: 53.52 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.11e-07/15.02, allocations: 0 / 4.152 GB, free: 53.52 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01513/15.03, allocations: 3.063 MB / 4.155 GB, free: 53.52 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.0391/15.07, allocations: 13.23 MB / 4.168 GB, free: 51.97 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02031/15.09, allocations: 6.455 MB / 4.174 GB, free: 51.79 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/15.09, allocations: 5.625 kB / 4.174 GB, free: 51.79 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007925/15.1, allocations: 3.051 MB / 4.177 GB, free: 51.74 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00971/15.11, allocations: 1.085 MB / 4.178 GB, free: 51.71 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03526/15.15, allocations: 22.52 MB / 4.2 GB, free: 37.35 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0027/15.15, allocations: 2.525 MB / 4.203 GB, free: 36.58 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003658/15.15, allocations: 1.503 MB / 4.204 GB, free: 36.57 MB / 490.7 MB Notification: Performance of SimCode: time 1.883e-06/15.15, allocations: 0 / 4.204 GB, free: 36.57 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.879/21.03, allocations: 150.9 MB / 4.352 GB, free: 68.29 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat