Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.597/1.597, allocations: 171.2 MB / 186.8 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003568/0.000357, allocations: 8 kB / 233.2 MB, free: 3.027 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06955/0.06994, allocations: 38.78 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.012/6.082, allocations: 2.478 GB / 2.744 GB, free: 76.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/6.082, allocations: 88.83 kB / 2.744 GB, free: 76.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.115/10.2, allocations: 0.9378 GB / 3.682 GB, free: 4.203 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.354e-06/10.2, allocations: 0 / 3.682 GB, free: 4.203 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002002/10.2, allocations: 59.92 kB / 3.682 GB, free: 4.145 MB / 394.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.01249/10.21, allocations: 3.5 MB / 3.685 GB, free: 0.582 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/10.21, allocations: 8.031 kB / 3.685 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01663/10.23, allocations: 1.121 MB / 3.686 GB, free: 15.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00519/10.23, allocations: 1.536 MB / 3.688 GB, free: 13.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005074/10.23, allocations: 345.8 kB / 3.688 GB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007618/10.23, allocations: 187.9 kB / 3.688 GB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01292/10.25, allocations: 3.514 MB / 3.692 GB, free: 9.648 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.145e-05/10.25, allocations: 11.88 kB / 3.692 GB, free: 9.637 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004824/10.25, allocations: 91.91 kB / 3.692 GB, free: 9.547 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002072/10.25, allocations: 111.3 kB / 3.692 GB, free: 9.438 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01378/10.26, allocations: 3.51 MB / 3.696 GB, free: 5.922 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.3138/10.57, allocations: 14.43 MB / 3.71 GB, free: 19.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01065/10.59, allocations: 2.869 MB / 3.712 GB, free: 19.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00704/10.59, allocations: 3.726 MB / 3.716 GB, free: 17.01 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.64e-05/10.59, allocations: 58.81 kB / 3.716 GB, free: 16.97 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004055/10.6, allocations: 0.5752 MB / 3.717 GB, free: 16.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 1.195e-05/10.6, allocations: 1.094 kB / 3.717 GB, free: 16.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.05518/10.65, allocations: 12.29 MB / 3.729 GB, free: 15.83 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/10.65, allocations: 150.3 kB / 3.729 GB, free: 15.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002368/10.65, allocations: 1.231 MB / 3.73 GB, free: 15.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006224/10.66, allocations: 64.95 kB / 3.73 GB, free: 15.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005327/10.66, allocations: 0.7575 MB / 3.731 GB, free: 15.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009029/10.66, allocations: 0.6753 MB / 3.731 GB, free: 14.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/10.66, allocations: 38.94 kB / 3.732 GB, free: 14.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/10.66, allocations: 398.1 kB / 3.732 GB, free: 14.49 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00402/10.66, allocations: 1.273 MB / 3.733 GB, free: 14.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00449/10.67, allocations: 1.739 MB / 3.735 GB, free: 13.99 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004307/10.67, allocations: 1.386 MB / 3.736 GB, free: 13.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-05/10.67, allocations: 3.844 kB / 3.736 GB, free: 13.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.01215/10.68, allocations: 3.887 MB / 3.74 GB, free: 13.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009998/10.68, allocations: 4.881 MB / 3.745 GB, free: 8.691 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.534e-05/10.68, allocations: 10.91 kB / 3.745 GB, free: 8.691 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006896/10.69, allocations: 1.563 MB / 3.746 GB, free: 8.621 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003219/10.69, allocations: 476.4 kB / 3.747 GB, free: 8.621 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008824/10.7, allocations: 6.608 MB / 3.753 GB, free: 19.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003444/10.71, allocations: 217.4 kB / 3.753 GB, free: 19.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006232/10.71, allocations: 119.6 kB / 3.754 GB, free: 19.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/10.71, allocations: 3.281 kB / 3.754 GB, free: 19.92 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01145/10.72, allocations: 3.491 MB / 3.757 GB, free: 19.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.076e-05/10.72, allocations: 14.69 kB / 3.757 GB, free: 19.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003679/10.72, allocations: 0.997 MB / 3.758 GB, free: 19.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003466/10.73, allocations: 0.496 MB / 3.758 GB, free: 19.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01327/10.74, allocations: 10.26 MB / 3.768 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002707/10.74, allocations: 216.1 kB / 3.769 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004335/10.74, allocations: 115 kB / 3.769 GB, free: 12.56 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.001902/10.74, allocations: 0.5862 MB / 3.769 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007033/10.74, allocations: 197.6 kB / 3.77 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01905/10.76, allocations: 9.85 MB / 3.779 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001118/10.76, allocations: 106.9 kB / 3.779 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.365e-06/10.76, allocations: 0 / 3.779 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.716e-05/10.76, allocations: 16.12 kB / 3.779 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02656/10.79, allocations: 13.36 MB / 3.792 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.448e-05/10.79, allocations: 0 / 3.792 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002627/10.79, allocations: 404.2 kB / 3.793 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00901/10.8, allocations: 4.134 MB / 3.797 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005719/10.8, allocations: 64.86 kB / 3.797 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01084/10.81, allocations: 8.769 MB / 3.805 GB, free: 5.398 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.202e-06/10.81, allocations: 0 / 3.805 GB, free: 5.398 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0215/10.84, allocations: 10.71 MB / 3.816 GB, free: 3.727 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002409/10.84, allocations: 0.9024 MB / 3.817 GB, free: 3.168 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007831/10.84, allocations: 48.59 kB / 3.817 GB, free: 3.133 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003257/10.84, allocations: 236.8 kB / 3.817 GB, free: 3.086 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007969/10.84, allocations: 231.2 kB / 3.817 GB, free: 3.051 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000322/10.84, allocations: 88.33 kB / 3.817 GB, free: 3.035 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00244/10.85, allocations: 1.249 MB / 3.818 GB, free: 2.555 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.74e-07/10.85, allocations: 0 / 3.818 GB, free: 2.555 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01078/10.86, allocations: 2.356 MB / 3.821 GB, free: 2.281 MB / 426.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.01049/10.87, allocations: 2.579 MB / 3.823 GB, free: 1.898 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01811/10.88, allocations: 6.49 MB / 3.83 GB, free: 15.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/10.89, allocations: 4.156 kB / 3.83 GB, free: 15.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008399/10.89, allocations: 3.124 MB / 3.833 GB, free: 14.32 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00651/10.9, allocations: 1.047 MB / 3.834 GB, free: 14.11 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01808/10.92, allocations: 9.571 MB / 3.843 GB, free: 9.039 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002336/10.92, allocations: 2.204 MB / 3.845 GB, free: 8.191 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/10.92, allocations: 205.5 kB / 3.845 GB, free: 8.172 MB / 442.7 MB Notification: Performance of SimCode: time 1.855e-06/10.92, allocations: 0 / 3.845 GB, free: 8.172 MB / 442.7 MB Notification: Performance of Templates: time 0.505/11.43, allocations: 174.5 MB / 4.016 GB, free: 0.7969 MB / 458.7 MB