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: 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.2_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadModel(Modelica): time 2.018/2.018, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005324/0.0005326, allocations: 12 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1163, allocations: 44.5 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.992/8.109, allocations: 2.588 GB / 2.89 GB, free: 94.26 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/8.109, allocations: 92.36 kB / 2.89 GB, free: 94.26 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.359/13.47, allocations: 0.963 GB / 3.853 GB, free: 31.01 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.735e-06/13.47, allocations: 0 / 3.853 GB, free: 31.01 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002338/13.47, allocations: 56.36 kB / 3.853 GB, free: 31 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.01776/13.49, allocations: 3.577 MB / 3.856 GB, free: 29.36 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/13.49, allocations: 11.59 kB / 3.856 GB, free: 29.36 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02193/13.51, allocations: 1.215 MB / 3.858 GB, free: 29.24 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005866/13.51, allocations: 1.547 MB / 3.859 GB, free: 28.85 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004585/13.51, allocations: 347 kB / 3.859 GB, free: 28.66 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001076/13.52, allocations: 187.4 kB / 3.86 GB, free: 28.66 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0146/13.53, allocations: 3.53 MB / 3.863 GB, free: 28.25 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.184e-05/13.53, allocations: 20.62 kB / 3.863 GB, free: 28.25 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000581/13.53, allocations: 81.48 kB / 3.863 GB, free: 28.25 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002113/13.53, allocations: 104.5 kB / 3.863 GB, free: 28.25 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01541/13.55, allocations: 3.51 MB / 3.867 GB, free: 28.23 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.03662/13.58, allocations: 14.45 MB / 3.881 GB, free: 21.12 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01181/13.6, allocations: 2.864 MB / 3.884 GB, free: 21.07 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009913/13.61, allocations: 3.75 MB / 3.887 GB, free: 18.44 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.755e-05/13.61, allocations: 60.69 kB / 3.887 GB, free: 18.4 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00584/13.61, allocations: 0.5711 MB / 3.888 GB, free: 18.31 MB / 458.7 MB Notification: Performance of pre-optimization done (n=175): time 1.367e-05/13.61, allocations: 3.062 kB / 3.888 GB, free: 18.31 MB / 458.7 MB Notification: Performance of matching and sorting (n=205): time 0.06796/13.68, allocations: 12.28 MB / 3.9 GB, free: 17.18 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.192e-05/13.68, allocations: 157.6 kB / 3.9 GB, free: 17.02 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002707/13.68, allocations: 1.383 MB / 3.901 GB, free: 16.85 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007033/13.68, allocations: 64.17 kB / 3.901 GB, free: 16.82 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006184/13.68, allocations: 0.7614 MB / 3.902 GB, free: 16.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001125/13.68, allocations: 0.6718 MB / 3.903 GB, free: 15.98 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002896/13.69, allocations: 42.5 kB / 3.903 GB, free: 15.98 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001778/13.69, allocations: 395.1 kB / 3.903 GB, free: 15.67 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004639/13.69, allocations: 1.277 MB / 3.904 GB, free: 15.66 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005106/13.7, allocations: 1.745 MB / 3.906 GB, free: 15.16 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005101/13.7, allocations: 1.391 MB / 3.908 GB, free: 15.14 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.985e-05/13.7, allocations: 7.641 kB / 3.908 GB, free: 15.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.01435/13.71, allocations: 3.882 MB / 3.911 GB, free: 14.94 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002854/13.72, allocations: 466.9 kB / 3.912 GB, free: 14.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.453e-05/13.72, allocations: 15.5 kB / 3.912 GB, free: 14.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007895/13.72, allocations: 1.563 MB / 3.913 GB, free: 14.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003946/13.73, allocations: 472.4 kB / 3.914 GB, free: 14.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008429/13.74, allocations: 6.612 MB / 3.92 GB, free: 9.648 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004505/13.74, allocations: 224.2 kB / 3.92 GB, free: 9.633 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006724/13.74, allocations: 120.6 kB / 3.921 GB, free: 9.633 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/13.74, allocations: 3.5 kB / 3.921 GB, free: 9.633 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01303/13.75, allocations: 3.499 MB / 3.924 GB, free: 9.504 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.98e-05/13.75, allocations: 10.62 kB / 3.924 GB, free: 9.504 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004025/13.76, allocations: 0.9957 MB / 3.925 GB, free: 9.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004239/13.76, allocations: 0.4897 MB / 3.925 GB, free: 9.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01435/13.78, allocations: 10.25 MB / 3.935 GB, free: 18.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003553/13.78, allocations: 217.5 kB / 3.936 GB, free: 18.28 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004015/13.78, allocations: 112.8 kB / 3.936 GB, free: 18.28 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.001983/13.78, allocations: 0.593 MB / 3.936 GB, free: 18.08 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007541/13.78, allocations: 201 kB / 3.937 GB, free: 17.98 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02221/13.81, allocations: 9.853 MB / 3.946 GB, free: 17.02 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001216/13.81, allocations: 104.6 kB / 3.946 GB, free: 17.02 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/13.81, allocations: 3.188 kB / 3.946 GB, free: 17.02 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-05/13.81, allocations: 10.97 kB / 3.946 GB, free: 17.02 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03055/13.84, allocations: 13.36 MB / 3.959 GB, free: 13.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.039e-05/13.84, allocations: 6.375 kB / 3.959 GB, free: 13.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003509/13.84, allocations: 397.5 kB / 3.96 GB, free: 13.69 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01005/13.85, allocations: 4.139 MB / 3.964 GB, free: 12.88 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006509/13.85, allocations: 70.47 kB / 3.964 GB, free: 12.84 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01214/13.86, allocations: 8.756 MB / 3.972 GB, free: 6.43 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/13.86, allocations: 5.156 kB / 3.972 GB, free: 6.43 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02686/13.89, allocations: 10.71 MB / 3.983 GB, free: 136 kB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003057/13.89, allocations: 0.9076 MB / 3.984 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009216/13.89, allocations: 40 kB / 3.984 GB, free: 15.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004463/13.9, allocations: 239.2 kB / 3.984 GB, free: 15.13 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00111/13.9, allocations: 231.5 kB / 3.984 GB, free: 15 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004013/13.9, allocations: 88.92 kB / 3.984 GB, free: 14.93 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002992/13.9, allocations: 1.249 MB / 3.985 GB, free: 13.87 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.92e-07/13.9, allocations: 0 / 3.985 GB, free: 13.87 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01313/13.92, allocations: 2.378 MB / 3.988 GB, free: 11.53 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.01353/13.93, allocations: 2.6 MB / 3.99 GB, free: 9.57 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02398/13.95, allocations: 6.48 MB / 3.997 GB, free: 3.891 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.238e-06/13.95, allocations: 0.5625 kB / 3.997 GB, free: 3.891 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01087/13.96, allocations: 3.132 MB / 4 GB, free: 1.105 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009411/13.97, allocations: 1.055 MB / 4.001 GB, free: 340 kB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3942/14.37, allocations: 9.71 MB / 4.01 GB, free: 53.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002737/14.37, allocations: 2.197 MB / 4.012 GB, free: 53.15 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001466/14.37, allocations: 209.8 kB / 4.013 GB, free: 53.15 MB / 490.7 MB Notification: Performance of SimCode: time 1.513e-06/14.37, allocations: 0 / 4.013 GB, free: 53.15 MB / 490.7 MB Notification: Performance of Templates: time 0.6367/15.01, allocations: 174.7 MB / 4.183 GB, free: 70.55 MB / 0.4948 GB