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: translateModel(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T_onePort.T|T_twoPort.T|T_junction.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadModel(Modelica): time 1.691/1.691, allocations: 171.1 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003847/0.0003848, allocations: 8 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08991/0.09032, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.334/7.424, allocations: 2.478 GB / 2.744 GB, free: 44.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/7.424, allocations: 89.45 kB / 2.745 GB, free: 44.53 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.117/12.54, allocations: 0.9378 GB / 3.682 GB, free: 27.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.455e-06/12.54, allocations: 1.5 kB / 3.682 GB, free: 27.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002716/12.54, allocations: 58.08 kB / 3.682 GB, free: 27.59 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.01677/12.56, allocations: 3.497 MB / 3.686 GB, free: 25.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/12.56, allocations: 9.094 kB / 3.686 GB, free: 25.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02121/12.58, allocations: 1.115 MB / 3.687 GB, free: 25.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005621/12.59, allocations: 1.543 MB / 3.688 GB, free: 25.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000459/12.59, allocations: 351.6 kB / 3.689 GB, free: 25.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009317/12.59, allocations: 187.8 kB / 3.689 GB, free: 25.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01388/12.6, allocations: 3.536 MB / 3.692 GB, free: 24.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.458e-05/12.6, allocations: 5.859 kB / 3.692 GB, free: 24.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004877/12.6, allocations: 85.66 kB / 3.692 GB, free: 24.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002062/12.6, allocations: 105.9 kB / 3.693 GB, free: 24.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01515/12.62, allocations: 3.512 MB / 3.696 GB, free: 24.84 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.03638/12.65, allocations: 14.46 MB / 3.71 GB, free: 17.72 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01202/12.66, allocations: 2.869 MB / 3.713 GB, free: 17.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009738/12.67, allocations: 3.718 MB / 3.717 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.933e-05/12.67, allocations: 56.19 kB / 3.717 GB, free: 15 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005846/12.68, allocations: 0.575 MB / 3.717 GB, free: 14.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 1.198e-05/12.68, allocations: 3.156 kB / 3.717 GB, free: 14.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.06878/12.75, allocations: 12.29 MB / 3.729 GB, free: 13.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.438e-05/12.75, allocations: 154.6 kB / 3.729 GB, free: 13.61 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002879/12.75, allocations: 1.392 MB / 3.731 GB, free: 13.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007878/12.75, allocations: 62.89 kB / 3.731 GB, free: 13.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006461/12.75, allocations: 0.7614 MB / 3.732 GB, free: 13 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001229/12.76, allocations: 0.6779 MB / 3.732 GB, free: 12.56 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002916/12.76, allocations: 47.25 kB / 3.732 GB, free: 12.56 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001821/12.76, allocations: 391 kB / 3.733 GB, free: 12.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00471/12.76, allocations: 1.28 MB / 3.734 GB, free: 12.24 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005261/12.77, allocations: 1.738 MB / 3.736 GB, free: 11.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005183/12.77, allocations: 1.388 MB / 3.737 GB, free: 11.72 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.321e-05/12.77, allocations: 2.812 kB / 3.737 GB, free: 11.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.01463/12.79, allocations: 3.885 MB / 3.741 GB, free: 11.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003174/12.79, allocations: 470.6 kB / 3.741 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.623e-05/12.79, allocations: 15.08 kB / 3.741 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007934/12.79, allocations: 1.557 MB / 3.743 GB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003995/12.8, allocations: 475.5 kB / 3.743 GB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008568/12.81, allocations: 6.61 MB / 3.75 GB, free: 6.234 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004871/12.81, allocations: 220.5 kB / 3.75 GB, free: 6.219 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009563/12.81, allocations: 123.9 kB / 3.75 GB, free: 6.219 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/12.81, allocations: 4.406 kB / 3.75 GB, free: 6.219 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01321/12.83, allocations: 3.485 MB / 3.753 GB, free: 6.094 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.231e-05/12.83, allocations: 13.56 kB / 3.753 GB, free: 6.094 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003958/12.83, allocations: 1.002 MB / 3.754 GB, free: 6.023 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004187/12.83, allocations: 0.4933 MB / 3.755 GB, free: 6.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01432/12.85, allocations: 10.27 MB / 3.765 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003595/12.85, allocations: 213.2 kB / 3.765 GB, free: 14.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003959/12.85, allocations: 114.8 kB / 3.765 GB, free: 14.86 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.002088/12.85, allocations: 0.5868 MB / 3.766 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007485/12.86, allocations: 201.2 kB / 3.766 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02232/12.88, allocations: 9.847 MB / 3.776 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001287/12.88, allocations: 108.7 kB / 3.776 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/12.88, allocations: 0 / 3.776 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.571e-05/12.88, allocations: 14.48 kB / 3.776 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03046/12.91, allocations: 13.38 MB / 3.789 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.798e-05/12.91, allocations: 0 / 3.789 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003507/12.91, allocations: 396.8 kB / 3.789 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01022/12.92, allocations: 4.134 MB / 3.793 GB, free: 10.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006301/12.92, allocations: 67.84 kB / 3.793 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/12.94, allocations: 8.768 MB / 3.802 GB, free: 3.691 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/12.94, allocations: 0 / 3.802 GB, free: 3.691 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02862/12.96, allocations: 10.79 MB / 3.812 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002853/12.97, allocations: 0.9017 MB / 3.813 GB, free: 10.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000811/12.97, allocations: 40 kB / 3.813 GB, free: 10.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003965/12.97, allocations: 250.5 kB / 3.813 GB, free: 10.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007914/12.97, allocations: 226.7 kB / 3.814 GB, free: 10.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003432/12.97, allocations: 93.11 kB / 3.814 GB, free: 10.33 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002842/12.98, allocations: 1.242 MB / 3.815 GB, free: 9.277 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.02e-07/12.98, allocations: 0 / 3.815 GB, free: 9.277 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01292/12.99, allocations: 2.358 MB / 3.817 GB, free: 6.961 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.01372/13, allocations: 2.576 MB / 3.82 GB, free: 5.039 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3719/13.37, allocations: 6.488 MB / 3.826 GB, free: 53.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/13.37, allocations: 1.938 kB / 3.826 GB, free: 53.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01083/13.39, allocations: 3.128 MB / 3.829 GB, free: 53.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009112/13.39, allocations: 1.035 MB / 3.83 GB, free: 53.58 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02152/13.42, allocations: 9.552 MB / 3.839 GB, free: 50.18 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002722/13.42, allocations: 2.208 MB / 3.842 GB, free: 49.43 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001385/13.42, allocations: 205.7 kB / 3.842 GB, free: 49.42 MB / 442.7 MB Notification: Performance of SimCode: time 9.82e-07/13.42, allocations: 0 / 3.842 GB, free: 49.42 MB / 442.7 MB Notification: Performance of Templates: time 0.6188/14.04, allocations: 174.5 MB / 4.012 GB, free: 68.3 MB / 458.7 MB