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: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.693/1.693, allocations: 171.2 MB / 186.8 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003596, allocations: 12 kB / 233.3 MB, free: 2.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08166/0.08205, allocations: 38.76 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.923/8.005, allocations: 2.551 GB / 2.817 GB, free: 69.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/8.005, allocations: 86.53 kB / 2.817 GB, free: 69.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.776/13.78, allocations: 0.9991 GB / 3.816 GB, free: 22.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.539e-06/13.78, allocations: 0 / 3.816 GB, free: 22.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003684/13.78, allocations: 71.62 kB / 3.816 GB, free: 22.39 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.02326/13.8, allocations: 4.582 MB / 3.821 GB, free: 20.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/13.8, allocations: 7.5 kB / 3.821 GB, free: 20.35 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002494/13.81, allocations: 431.4 kB / 3.821 GB, free: 20.28 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01202/13.82, allocations: 0.9851 MB / 3.822 GB, free: 20.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01004/13.83, allocations: 2.217 MB / 3.824 GB, free: 19.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006534/13.83, allocations: 286.3 kB / 3.825 GB, free: 19.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001631/13.83, allocations: 254.8 kB / 3.825 GB, free: 19.56 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01846/13.85, allocations: 4.512 MB / 3.829 GB, free: 18.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000166/13.85, allocations: 8.531 kB / 3.829 GB, free: 18.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00153/13.85, allocations: 112.6 kB / 3.829 GB, free: 18.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004655/13.85, allocations: 222.4 kB / 3.83 GB, free: 18.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01682/13.87, allocations: 4.205 MB / 3.834 GB, free: 18.91 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.04231/13.91, allocations: 19.02 MB / 3.852 GB, free: 8.078 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01146/13.92, allocations: 2.882 MB / 3.855 GB, free: 8.023 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05442/13.98, allocations: 17 MB / 3.872 GB, free: 13.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.336e-05/13.98, allocations: 55.81 kB / 3.872 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002659/13.98, allocations: 237 kB / 3.872 GB, free: 13.36 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 1.158e-05/13.98, allocations: 0 / 3.872 GB, free: 13.36 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.08061/14.06, allocations: 15.92 MB / 3.888 GB, free: 11.03 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/14.06, allocations: 133.9 kB / 3.888 GB, free: 10.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/14.07, allocations: 1.678 MB / 3.889 GB, free: 10.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007582/14.07, allocations: 64.77 kB / 3.889 GB, free: 10.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009761/14.07, allocations: 1.071 MB / 3.89 GB, free: 10.11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001252/14.07, allocations: 0.7373 MB / 3.891 GB, free: 9.633 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000317/14.07, allocations: 48.22 kB / 3.891 GB, free: 9.633 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002703/14.07, allocations: 410.3 kB / 3.892 GB, free: 9.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004694/14.07, allocations: 1.447 MB / 3.893 GB, free: 9.312 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005414/14.08, allocations: 1.941 MB / 3.895 GB, free: 8.785 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005718/14.08, allocations: 1.652 MB / 3.897 GB, free: 8.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.041e-05/14.08, allocations: 6.531 kB / 3.897 GB, free: 8.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=306) (initialization): time 0.01676/14.1, allocations: 4.817 MB / 3.901 GB, free: 8.605 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002395/14.1, allocations: 5.317 MB / 3.906 GB, free: 3.023 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.163e-05/14.1, allocations: 13.16 kB / 3.906 GB, free: 3.023 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02618/14.13, allocations: 4 MB / 3.91 GB, free: 2.906 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002392/14.13, allocations: 318.3 kB / 3.911 GB, free: 2.906 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01587/14.15, allocations: 4.841 MB / 3.915 GB, free: 2.285 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005343/14.15, allocations: 313.2 kB / 3.916 GB, free: 2.246 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008609/14.15, allocations: 115.7 kB / 3.916 GB, free: 2.246 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/14.16, allocations: 9.031 kB / 3.916 GB, free: 2.242 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0145/14.17, allocations: 4.25 MB / 3.92 GB, free: 2.164 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.058e-05/14.17, allocations: 13.72 kB / 3.92 GB, free: 2.164 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01633/14.19, allocations: 2.631 MB / 3.923 GB, free: 2.086 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00288/14.19, allocations: 386.5 kB / 3.923 GB, free: 2.082 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/14.2, allocations: 3.777 MB / 3.927 GB, free: 1.484 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00402/14.2, allocations: 313.3 kB / 3.927 GB, free: 1.441 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005549/14.2, allocations: 113.3 kB / 3.927 GB, free: 1.441 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.002914/14.21, allocations: 0.7985 MB / 3.928 GB, free: 1.242 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008737/14.21, allocations: 236.4 kB / 3.928 GB, free: 1.121 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02282/14.23, allocations: 9.489 MB / 3.937 GB, free: 14.86 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001358/14.23, allocations: 107.3 kB / 3.937 GB, free: 14.83 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.687e-05/14.23, allocations: 3.141 kB / 3.937 GB, free: 14.83 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02001/14.25, allocations: 8.339 MB / 3.946 GB, free: 7.574 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4019/14.65, allocations: 13.79 MB / 3.959 GB, free: 49.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.795e-05/14.65, allocations: 6.75 kB / 3.959 GB, free: 49.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003515/14.66, allocations: 410.5 kB / 3.959 GB, free: 49.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009997/14.67, allocations: 2.305 MB / 3.962 GB, free: 49.03 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007422/14.67, allocations: 73.14 kB / 3.962 GB, free: 49.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008822/14.68, allocations: 7.008 MB / 3.969 GB, free: 44.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/14.68, allocations: 1.094 kB / 3.969 GB, free: 44.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02562/14.7, allocations: 10.34 MB / 3.979 GB, free: 44.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003196/14.71, allocations: 0.8324 MB / 3.979 GB, free: 44.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001524/14.71, allocations: 55.14 kB / 3.98 GB, free: 44.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004885/14.71, allocations: 262.6 kB / 3.98 GB, free: 44.16 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0011/14.71, allocations: 202.5 kB / 3.98 GB, free: 44.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000626/14.71, allocations: 83.16 kB / 3.98 GB, free: 44.15 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00408/14.72, allocations: 1.334 MB / 3.981 GB, free: 44.01 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.362e-06/14.72, allocations: 0 / 3.981 GB, free: 44.01 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0173/14.74, allocations: 3.061 MB / 3.984 GB, free: 44.01 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.04663/14.78, allocations: 13.21 MB / 3.997 GB, free: 42.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03478/14.82, allocations: 6.449 MB / 4.004 GB, free: 42.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.971e-05/14.82, allocations: 6.281 kB / 4.004 GB, free: 42.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01214/14.83, allocations: 3.04 MB / 4.007 GB, free: 42.19 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01435/14.84, allocations: 1.083 MB / 4.008 GB, free: 42.16 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0527/14.9, allocations: 22.51 MB / 4.03 GB, free: 27.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005655/14.9, allocations: 2.524 MB / 4.032 GB, free: 27.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005299/14.91, allocations: 1.508 MB / 4.033 GB, free: 27 MB / 442.7 MB Notification: Performance of SimCode: time 2.134e-06/14.91, allocations: 0 / 4.033 GB, free: 27 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.849/20.76, allocations: 150.7 MB / 4.181 GB, free: 48.06 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat