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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.59/1.59, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.14e-05/2.149e-05, allocations: 4 kB / 222.5 MB, free: 8.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07312/0.07316, allocations: 38.75 MB / 261.3 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.787/5.86, allocations: 2.478 GB / 2.733 GB, free: 78.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002301/5.86, allocations: 80.45 kB / 2.733 GB, free: 78.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.939/9.799, allocations: 0.927 GB / 3.66 GB, free: 13.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.205e-06/9.799, allocations: 0 / 3.66 GB, free: 13.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002068/9.799, allocations: 63.61 kB / 3.66 GB, free: 13.24 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.01257/9.812, allocations: 3.294 MB / 3.663 GB, free: 9.902 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/9.812, allocations: 12.03 kB / 3.663 GB, free: 9.891 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01686/9.828, allocations: 1.126 MB / 3.664 GB, free: 8.762 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00509/9.834, allocations: 1.543 MB / 3.666 GB, free: 7.188 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004231/9.834, allocations: 281.8 kB / 3.666 GB, free: 6.875 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006926/9.835, allocations: 111.9 kB / 3.666 GB, free: 6.766 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007568/9.842, allocations: 2.666 MB / 3.669 GB, free: 4.098 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008149/9.851, allocations: 2.696 MB / 3.671 GB, free: 1.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.58e-05/9.851, allocations: 3.938 kB / 3.671 GB, free: 1.266 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004221/9.851, allocations: 8 kB / 3.671 GB, free: 1.258 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001969/9.851, allocations: 107.3 kB / 3.672 GB, free: 1.152 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or 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.3039/10.16, allocations: 14.04 MB / 3.685 GB, free: 22.28 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004244/10.16, allocations: 2.088 MB / 3.687 GB, free: 22.24 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002633/10.16, allocations: 1.231 MB / 3.688 GB, free: 22.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006966/10.17, allocations: 3.735 MB / 3.692 GB, free: 19.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.628e-05/10.17, allocations: 58.25 kB / 3.692 GB, free: 19.55 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003842/10.17, allocations: 0.5087 MB / 3.693 GB, free: 19.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 8.679e-06/10.17, allocations: 1.062 kB / 3.693 GB, free: 19.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.04197/10.22, allocations: 9.88 MB / 3.702 GB, free: 18.74 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.577e-05/10.22, allocations: 151 kB / 3.702 GB, free: 18.58 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001589/10.22, allocations: 0.8495 MB / 3.703 GB, free: 18.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004721/10.22, allocations: 28.23 kB / 3.703 GB, free: 18.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000493/10.22, allocations: 0.8043 MB / 3.704 GB, free: 18.03 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006993/10.22, allocations: 0.6479 MB / 3.705 GB, free: 17.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002313/10.22, allocations: 0 / 3.705 GB, free: 17.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/10.22, allocations: 398.5 kB / 3.705 GB, free: 17.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002332/10.22, allocations: 1.066 MB / 3.706 GB, free: 17.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002648/10.22, allocations: 1.527 MB / 3.708 GB, free: 16.87 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007453/10.23, allocations: 1.824 MB / 3.709 GB, free: 16.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-05/10.23, allocations: 3.562 kB / 3.709 GB, free: 16.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.01353/10.25, allocations: 4.004 MB / 3.713 GB, free: 16.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009504/10.25, allocations: 4.881 MB / 3.718 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.95e-05/10.25, allocations: 10.12 kB / 3.718 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005175/10.25, allocations: 1.512 MB / 3.72 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002863/10.25, allocations: 476.2 kB / 3.72 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/10.26, allocations: 7.235 MB / 3.727 GB, free: 22.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003271/10.27, allocations: 180.7 kB / 3.727 GB, free: 22.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005259/10.27, allocations: 122.2 kB / 3.727 GB, free: 22.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/10.27, allocations: 2.906 kB / 3.727 GB, free: 22.79 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00945/10.28, allocations: 3.115 MB / 3.73 GB, free: 22.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.676e-05/10.28, allocations: 14.11 kB / 3.73 GB, free: 22.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003083/10.28, allocations: 0.9775 MB / 3.731 GB, free: 22.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002785/10.28, allocations: 497.9 kB / 3.732 GB, free: 22.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01832/10.3, allocations: 9.981 MB / 3.742 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002761/10.3, allocations: 173.8 kB / 3.742 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005638/10.31, allocations: 113 kB / 3.742 GB, free: 15.61 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot3.mb_flow:VARIABLE(min = max(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59), -100000.0) max = min(-(if junctionIdeal.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59), 100000.0) unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold3.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold3.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot1.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankHot1.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankHot1.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankCold1.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.mb_flow:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flows across boundaries" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: openTankHot2.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.openTankCold2.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "Density" type: Real [1] $DER.openTankCold2.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real 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 () * 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 {2 4,2 4,4 6,2 4,2 4,4 6,2 4,2 4,4 8} Notification: Performance of prepare postOptimizeDAE: time 0.001116/10.31, allocations: 226.8 kB / 3.742 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006459/10.31, allocations: 174.3 kB / 3.742 GB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01994/10.33, allocations: 10.06 MB / 3.752 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.733e-05/10.33, allocations: 103.9 kB / 3.752 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.495e-06/10.33, allocations: 0 / 3.752 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.67e-05/10.33, allocations: 15.03 kB / 3.752 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02612/10.35, allocations: 13.17 MB / 3.765 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.142e-05/10.35, allocations: 3.062 kB / 3.765 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002296/10.36, allocations: 403.3 kB / 3.765 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008249/10.36, allocations: 4.65 MB / 3.77 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004976/10.36, allocations: 35.98 kB / 3.77 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01388/10.38, allocations: 9.793 MB / 3.78 GB, free: 8.504 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.982e-06/10.38, allocations: 0 / 3.78 GB, free: 8.504 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02121/10.4, allocations: 10.63 MB / 3.79 GB, free: 7.766 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002138/10.4, allocations: 0.8729 MB / 3.791 GB, free: 7.406 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004641/10.4, allocations: 5.125 kB / 3.791 GB, free: 7.406 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00283/10.41, allocations: 193.2 kB / 3.791 GB, free: 7.395 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006191/10.41, allocations: 236.2 kB / 3.791 GB, free: 7.387 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003813/10.41, allocations: 87.89 kB / 3.791 GB, free: 7.387 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001604/10.41, allocations: 0.9085 MB / 3.792 GB, free: 7.277 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.83e-07/10.41, allocations: 0 / 3.792 GB, free: 7.277 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009497/10.42, allocations: 2.197 MB / 3.794 GB, free: 7.152 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 () * 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.009595/10.43, allocations: 2.793 MB / 3.797 GB, free: 6.758 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01294/10.44, allocations: 5.794 MB / 3.803 GB, free: 4.492 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.492e-06/10.44, allocations: 2.344 kB / 3.803 GB, free: 4.492 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00665/10.45, allocations: 2.901 MB / 3.806 GB, free: 3.254 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005744/10.45, allocations: 0.9059 MB / 3.806 GB, free: 3.098 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/10.47, allocations: 6.481 MB / 3.813 GB, free: 0.5938 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002488/10.47, allocations: 2.201 MB / 3.815 GB, free: 15.16 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001116/10.47, allocations: 191 kB / 3.815 GB, free: 15 MB / 442.7 MB Notification: Performance of SimCode: time 1.653e-06/10.47, allocations: 4 kB / 3.815 GB, free: 15 MB / 442.7 MB Notification: Performance of Templates: time 0.4797/10.95, allocations: 173.1 MB / 3.984 GB, free: 14.6 MB / 458.7 MB