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.Explanatory.MeasuringTemperature.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.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.636/1.636, allocations: 171.2 MB / 186.8 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.0003695, allocations: 8 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08788/0.08829, allocations: 38.76 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.417/7.505, allocations: 2.478 GB / 2.744 GB, free: 46.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000304/7.505, allocations: 85.22 kB / 2.744 GB, free: 46.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.08/12.59, allocations: 0.9377 GB / 3.682 GB, free: 28.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.542e-05/12.59, allocations: 0 / 3.682 GB, free: 28.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002541/12.59, allocations: 60.61 kB / 3.682 GB, free: 28.11 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: 462 * Number of variables: 462 Notification: Performance of Generate backend data structure: time 0.01626/12.6, allocations: 3.499 MB / 3.685 GB, free: 26.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/12.6, allocations: 7.875 kB / 3.685 GB, free: 26.47 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001152/12.6, allocations: 276 kB / 3.686 GB, free: 26.42 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02148/12.62, allocations: 1.122 MB / 3.687 GB, free: 26.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005645/12.63, allocations: 1.535 MB / 3.688 GB, free: 25.92 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004616/12.63, allocations: 349.2 kB / 3.689 GB, free: 25.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009175/12.63, allocations: 189.7 kB / 3.689 GB, free: 25.72 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01381/12.65, allocations: 3.518 MB / 3.692 GB, free: 25.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.609e-05/12.65, allocations: 6.031 kB / 3.692 GB, free: 25.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005005/12.65, allocations: 86.48 kB / 3.692 GB, free: 25.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002035/12.65, allocations: 103.5 kB / 3.692 GB, free: 25.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0145/12.66, allocations: 3.517 MB / 3.696 GB, free: 25.3 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.03344/12.69, allocations: 14.46 MB / 3.71 GB, free: 18.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01141/12.71, allocations: 2.865 MB / 3.713 GB, free: 18.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009188/12.72, allocations: 3.719 MB / 3.716 GB, free: 15.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.309e-05/12.72, allocations: 58.66 kB / 3.716 GB, free: 15.45 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005712/12.72, allocations: 0.5645 MB / 3.717 GB, free: 15.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 8.366e-06/12.72, allocations: 5.938 kB / 3.717 GB, free: 15.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.06649/12.79, allocations: 12.3 MB / 3.729 GB, free: 14.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.425e-05/12.79, allocations: 154.1 kB / 3.729 GB, free: 14.05 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002713/12.79, allocations: 1.223 MB / 3.73 GB, free: 13.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000739/12.79, allocations: 67.47 kB / 3.73 GB, free: 13.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006103/12.79, allocations: 0.7513 MB / 3.731 GB, free: 13.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00117/12.79, allocations: 0.6807 MB / 3.732 GB, free: 13.03 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002939/12.79, allocations: 43.09 kB / 3.732 GB, free: 13.03 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001932/12.79, allocations: 393.1 kB / 3.732 GB, free: 12.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00468/12.8, allocations: 1.28 MB / 3.733 GB, free: 12.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005243/12.8, allocations: 1.738 MB / 3.735 GB, free: 12.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00509/12.81, allocations: 1.379 MB / 3.736 GB, free: 12.19 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.216e-05/12.81, allocations: 3.781 kB / 3.737 GB, free: 12.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.01433/12.82, allocations: 3.889 MB / 3.74 GB, free: 11.99 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001064/12.82, allocations: 4.882 MB / 3.745 GB, free: 6.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.902e-05/12.82, allocations: 12.59 kB / 3.745 GB, free: 6.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008216/12.83, allocations: 1.567 MB / 3.747 GB, free: 6.836 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003971/12.84, allocations: 474.8 kB / 3.747 GB, free: 6.836 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008758/12.85, allocations: 6.602 MB / 3.754 GB, free: 18.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004527/12.85, allocations: 229.3 kB / 3.754 GB, free: 18.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000689/12.85, allocations: 114.8 kB / 3.754 GB, free: 18.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/12.85, allocations: 3.688 kB / 3.754 GB, free: 18.13 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01268/12.86, allocations: 3.493 MB / 3.757 GB, free: 18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.272e-05/12.86, allocations: 12.97 kB / 3.757 GB, free: 18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003833/12.87, allocations: 0.9943 MB / 3.758 GB, free: 17.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004133/12.87, allocations: 0.4965 MB / 3.759 GB, free: 17.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01439/12.89, allocations: 10.25 MB / 3.769 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003566/12.89, allocations: 215.4 kB / 3.769 GB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003944/12.89, allocations: 112.3 kB / 3.769 GB, free: 10.78 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 21 (openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 210 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {1 5,1 5,4 6,1 5,1 5,4 6,1 5,1 5,6 6} Notification: Performance of prepare postOptimizeDAE: time 0.001952/12.89, allocations: 0.5879 MB / 3.77 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007181/12.89, allocations: 199.9 kB / 3.77 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02129/12.91, allocations: 9.864 MB / 3.779 GB, free: 9.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001157/12.91, allocations: 105 kB / 3.78 GB, free: 9.48 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/12.91, allocations: 3.938 kB / 3.78 GB, free: 9.477 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.253e-05/12.91, allocations: 15.72 kB / 3.78 GB, free: 9.473 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02852/12.94, allocations: 13.37 MB / 3.793 GB, free: 7.199 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.299e-05/12.94, allocations: 0 / 3.793 GB, free: 7.199 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003447/12.95, allocations: 398.5 kB / 3.793 GB, free: 7.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009992/12.96, allocations: 4.137 MB / 3.797 GB, free: 6.34 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005769/12.96, allocations: 67.14 kB / 3.797 GB, free: 6.305 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01213/12.97, allocations: 8.753 MB / 3.806 GB, free: 15.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/12.97, allocations: 5.219 kB / 3.806 GB, free: 15.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02576/12.99, allocations: 10.72 MB / 3.816 GB, free: 8.285 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002673/13, allocations: 0.9073 MB / 3.817 GB, free: 7.512 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006816/13, allocations: 48 kB / 3.817 GB, free: 7.465 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003886/13, allocations: 234.1 kB / 3.817 GB, free: 7.285 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008057/13, allocations: 226.2 kB / 3.817 GB, free: 7.156 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003256/13, allocations: 89.45 kB / 3.818 GB, free: 7.082 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002808/13.01, allocations: 1.249 MB / 3.819 GB, free: 6.023 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.21e-07/13.01, allocations: 4 kB / 3.819 GB, free: 6.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01231/13.02, allocations: 2.357 MB / 3.821 GB, free: 3.703 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (openTankCold2.medium.h,openTankCold2.level,openTankCold1.medium.h,openTankCold1.level,openTankHot1.medium.h,openTankHot1.level,openTankHot2.medium.h,openTankHot2.level,openTankCold3.medium.h,openTankCold3.level,openTankHot3.medium.h,openTankHot3.level) * Number of discrete variables: 71 ($cse1.phase,$cse1.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.region,openTankCold2.heatTransfer.states[1].phase,openTankCold2.regularFlow[1],openTankCold2.inFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold1.regularFlow[1],openTankCold1.inFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankHot1.regularFlow[1],openTankHot1.inFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot2.regularFlow[1],openTankHot2.inFlow[1],mFlow1.medium.phase,mFlow2.medium.phase,openTankCold3.heatTransfer.states[1].phase,openTankCold3.regularFlow[1],openTankCold3.inFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankHot3.regularFlow[1],openTankHot3.inFlow[1],mFlow3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {2 4,2 4,6 9,2 4,2 4,6 9,2 4,2 4,6 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.3843/13.4, allocations: 12.66 MB / 3.833 GB, free: 53.81 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02346/13.43, allocations: 6.488 MB / 3.84 GB, free: 53.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/13.43, allocations: 5.344 kB / 3.84 GB, free: 53.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009816/13.44, allocations: 3.13 MB / 3.843 GB, free: 53.29 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008595/13.44, allocations: 1.039 MB / 3.844 GB, free: 53.26 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05726/13.5, allocations: 29.23 MB / 3.872 GB, free: 38.64 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002111/13.5, allocations: 2.201 MB / 3.875 GB, free: 37.88 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002729/13.51, allocations: 1.332 MB / 3.876 GB, free: 37.88 MB / 442.7 MB Notification: Performance of SimCode: time 9.92e-07/13.51, allocations: 0 / 3.876 GB, free: 37.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.967/19.47, allocations: 185.1 MB / 4.057 GB, free: 66.38 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat does not exist to compare? outputFormat=mat