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.Explanatory.MeasuringTemperature.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.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.059/2.059, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003761, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1048, allocations: 44.51 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.971/8.076, allocations: 2.588 GB / 2.889 GB, free: 94.67 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/8.077, allocations: 88.91 kB / 2.889 GB, free: 94.67 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.298/13.37, allocations: 0.963 GB / 3.852 GB, free: 30.52 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.479e-06/13.37, allocations: 2.188 kB / 3.852 GB, free: 30.52 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002564/13.38, allocations: 63 kB / 3.852 GB, free: 30.51 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: 462 * Number of variables: 462 Notification: Performance of Generate backend data structure: time 0.01692/13.39, allocations: 3.583 MB / 3.856 GB, free: 28.85 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/13.39, allocations: 8.906 kB / 3.856 GB, free: 28.85 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001556/13.39, allocations: 281 kB / 3.856 GB, free: 28.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02213/13.42, allocations: 1.213 MB / 3.857 GB, free: 28.69 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005624/13.42, allocations: 1.542 MB / 3.859 GB, free: 28.31 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005014/13.42, allocations: 345 kB / 3.859 GB, free: 28.12 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001018/13.42, allocations: 191.3 kB / 3.859 GB, free: 28.11 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01448/13.44, allocations: 3.518 MB / 3.863 GB, free: 27.71 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.421e-05/13.44, allocations: 9.188 kB / 3.863 GB, free: 27.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006292/13.44, allocations: 80.91 kB / 3.863 GB, free: 27.71 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002136/13.44, allocations: 107.8 kB / 3.863 GB, free: 27.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01565/13.45, allocations: 3.507 MB / 3.866 GB, free: 27.69 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.03666/13.49, allocations: 14.46 MB / 3.881 GB, free: 20.58 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01199/13.5, allocations: 2.872 MB / 3.883 GB, free: 20.52 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01018/13.51, allocations: 3.745 MB / 3.887 GB, free: 17.89 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.925e-05/13.51, allocations: 60.12 kB / 3.887 GB, free: 17.85 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005749/13.52, allocations: 0.573 MB / 3.888 GB, free: 17.76 MB / 458.7 MB Notification: Performance of pre-optimization done (n=175): time 1.097e-05/13.52, allocations: 0 / 3.888 GB, free: 17.76 MB / 458.7 MB Notification: Performance of matching and sorting (n=205): time 0.06916/13.59, allocations: 12.27 MB / 3.9 GB, free: 16.62 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.814e-05/13.59, allocations: 157.1 kB / 3.9 GB, free: 16.47 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00263/13.59, allocations: 1.226 MB / 3.901 GB, free: 16.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000765/13.59, allocations: 62.48 kB / 3.901 GB, free: 16.27 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007451/13.59, allocations: 0.7522 MB / 3.902 GB, free: 15.88 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001328/13.59, allocations: 0.6793 MB / 3.902 GB, free: 15.44 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003296/13.59, allocations: 43.69 kB / 3.902 GB, free: 15.44 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002136/13.59, allocations: 398.8 kB / 3.903 GB, free: 15.13 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005026/13.6, allocations: 1.272 MB / 3.904 GB, free: 15.12 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005982/13.61, allocations: 1.735 MB / 3.906 GB, free: 14.62 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006844/13.61, allocations: 1.381 MB / 3.907 GB, free: 14.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.831e-05/13.61, allocations: 6.703 kB / 3.907 GB, free: 14.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.02076/13.63, allocations: 3.889 MB / 3.911 GB, free: 14.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001312/13.63, allocations: 4.884 MB / 3.916 GB, free: 9.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.184e-05/13.63, allocations: 14.66 kB / 3.916 GB, free: 9.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01099/13.65, allocations: 1.57 MB / 3.917 GB, free: 9.242 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005143/13.65, allocations: 472 kB / 3.918 GB, free: 9.242 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01244/13.66, allocations: 6.597 MB / 3.924 GB, free: 20.56 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005978/13.67, allocations: 225.5 kB / 3.924 GB, free: 20.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009764/13.67, allocations: 117.3 kB / 3.924 GB, free: 20.54 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/13.67, allocations: 5.281 kB / 3.924 GB, free: 20.54 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01682/13.69, allocations: 3.495 MB / 3.928 GB, free: 20.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.59e-05/13.69, allocations: 14.62 kB / 3.928 GB, free: 20.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00408/13.69, allocations: 0.992 MB / 3.929 GB, free: 20.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004282/13.7, allocations: 0.494 MB / 3.929 GB, free: 20.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01545/13.71, allocations: 10.26 MB / 3.939 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003678/13.72, allocations: 217.4 kB / 3.94 GB, free: 13.19 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006222/13.72, allocations: 115.4 kB / 3.94 GB, free: 13.19 MB / 474.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.002296/13.72, allocations: 0.5861 MB / 3.94 GB, free: 12.99 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007669/13.72, allocations: 203.8 kB / 3.94 GB, free: 12.89 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03084/13.75, allocations: 9.86 MB / 3.95 GB, free: 11.92 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002036/13.75, allocations: 108.9 kB / 3.95 GB, free: 11.92 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.556e-05/13.75, allocations: 0 / 3.95 GB, free: 11.92 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.239e-05/13.75, allocations: 13.88 kB / 3.95 GB, free: 11.92 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04712/13.8, allocations: 13.35 MB / 3.963 GB, free: 9.012 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.817e-05/13.8, allocations: 0 / 3.963 GB, free: 9.012 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005305/13.8, allocations: 401.3 kB / 3.964 GB, free: 8.984 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01546/13.82, allocations: 4.139 MB / 3.968 GB, free: 8.145 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000901/13.82, allocations: 63.72 kB / 3.968 GB, free: 8.109 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0197/13.84, allocations: 8.763 MB / 3.976 GB, free: 1.688 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/13.84, allocations: 2.875 kB / 3.976 GB, free: 1.688 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04353/13.88, allocations: 10.76 MB / 3.987 GB, free: 12.53 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004024/13.89, allocations: 0.9026 MB / 3.988 GB, free: 11.76 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001382/13.89, allocations: 47.95 kB / 3.988 GB, free: 11.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006396/13.89, allocations: 239 kB / 3.988 GB, free: 11.53 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001115/13.9, allocations: 231.3 kB / 3.988 GB, free: 11.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004669/13.9, allocations: 87.7 kB / 3.988 GB, free: 11.32 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003161/13.9, allocations: 1.248 MB / 3.989 GB, free: 10.26 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.22e-07/13.9, allocations: 0 / 3.989 GB, free: 10.26 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01339/13.91, allocations: 2.379 MB / 3.992 GB, free: 7.922 MB / 490.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.4333/14.35, allocations: 13.12 MB / 4.005 GB, free: 57.89 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02457/14.37, allocations: 6.489 MB / 4.011 GB, free: 57.43 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.218e-05/14.37, allocations: 5.078 kB / 4.011 GB, free: 57.43 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01143/14.38, allocations: 3.125 MB / 4.014 GB, free: 57.38 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009706/14.39, allocations: 1.045 MB / 4.015 GB, free: 57.34 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06353/14.46, allocations: 29.24 MB / 4.044 GB, free: 42.73 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003168/14.46, allocations: 2.206 MB / 4.046 GB, free: 41.98 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003937/14.46, allocations: 1.329 MB / 4.047 GB, free: 41.97 MB / 490.7 MB Notification: Performance of SimCode: time 1.512e-06/14.46, allocations: 3.844 kB / 4.047 GB, free: 41.97 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.928/20.39, allocations: 185.3 MB / 4.228 GB, free: 73.58 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat does not exist to compare? outputFormat=mat