Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") 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.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002925/0.002931, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.526/3.526, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002889/0.002888, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006454/0.0006455, allocations: 12 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1492, allocations: 47.59 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.621/0.7702, allocations: 79.25 MB / 453.8 MB, free: 13.41 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.09406/0.8644, allocations: 29.52 MB / 483.3 MB, free: 15.83 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004667/0.8691, allocations: 67.44 kB / 483.4 MB, free: 15.76 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008106/0.8773, allocations: 1.155 MB / 484.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02468/0.9021, allocations: 3.582 MB / 488.1 MB, free: 11.01 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.05112/0.9533, allocations: 7.18 MB / 495.3 MB, free: 3.812 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01359/0.9669, allocations: 3.594 MB / 498.9 MB, free: 216 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006315/0.9733, allocations: 1.666 MB / 0.4888 GB, free: 14.52 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03432/1.008, allocations: 7.562 MB / 0.4962 GB, free: 6.949 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0057/1.013, allocations: 1.46 MB / 0.4976 GB, free: 5.48 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001873/1.015, allocations: 136 kB / 0.4978 GB, free: 5.348 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04271/1.058, allocations: 8.741 MB / 0.5063 GB, free: 12.6 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002797/1.061, allocations: 0.6778 MB / 0.507 GB, free: 11.92 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002378/1.064, allocations: 468.6 kB / 0.5074 GB, free: 11.45 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02382/1.087, allocations: 5.874 MB / 0.5131 GB, free: 5.566 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/1.087, allocations: 0 / 0.5131 GB, free: 5.566 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.589e-06/1.088, allocations: 0 / 0.5131 GB, free: 5.566 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000169/1.088, allocations: 0 / 0.5131 GB, free: 5.566 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.01899/1.107, allocations: 2.977 MB / 0.5161 GB, free: 2.531 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.235e-05/1.107, allocations: 16.02 kB / 0.5161 GB, free: 2.516 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02884/1.136, allocations: 1.25 MB / 0.5173 GB, free: 1.262 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006553/1.142, allocations: 1.302 MB / 0.5186 GB, free: 15.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009077/1.143, allocations: 345.7 kB / 0.5189 GB, free: 15.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001553/1.145, allocations: 191.9 kB / 0.5191 GB, free: 15.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0267/1.172, allocations: 3.469 MB / 0.5225 GB, free: 11.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001473/1.172, allocations: 7.938 kB / 0.5225 GB, free: 11.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001184/1.173, allocations: 83.98 kB / 0.5225 GB, free: 11.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003662/1.174, allocations: 107.3 kB / 0.5227 GB, free: 11.56 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02493/1.198, allocations: 3.51 MB / 0.5261 GB, free: 8.043 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.4847/1.683, allocations: 14.45 MB / 0.5402 GB, free: 128.6 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02016/1.703, allocations: 2.914 MB / 0.543 GB, free: 127.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.117/1.821, allocations: 24.51 MB / 0.567 GB, free: 110.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001171/1.821, allocations: 64.16 kB / 0.567 GB, free: 110.8 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006494/1.827, allocations: 454.4 kB / 0.5675 GB, free: 110.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 2.107e-05/1.827, allocations: 0 / 0.5675 GB, free: 110.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.1018/1.929, allocations: 12.46 MB / 0.5796 GB, free: 102.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/1.929, allocations: 154.5 kB / 0.5798 GB, free: 102.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004452/1.934, allocations: 1.392 MB / 0.5811 GB, free: 100.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008734/1.935, allocations: 61.7 kB / 0.5812 GB, free: 100.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009484/1.936, allocations: 0.7418 MB / 0.5819 GB, free: 99.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001651/1.937, allocations: 0.6721 MB / 0.5826 GB, free: 99.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005356/1.938, allocations: 51.94 kB / 0.5826 GB, free: 99.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002571/1.938, allocations: 395 kB / 0.583 GB, free: 98.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006689/1.945, allocations: 1.292 MB / 0.5843 GB, free: 97.51 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007245/1.952, allocations: 1.728 MB / 0.586 GB, free: 95.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007161/1.96, allocations: 1.418 MB / 0.5873 GB, free: 94.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-05/1.96, allocations: 4 kB / 0.5873 GB, free: 94.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.02096/1.981, allocations: 3.923 MB / 0.5912 GB, free: 90.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.323e-05/1.981, allocations: 8 kB / 0.5912 GB, free: 90.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.519e-05/1.981, allocations: 12 kB / 0.5912 GB, free: 90.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01214/1.993, allocations: 1.589 MB / 0.5927 GB, free: 88.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0058/1.999, allocations: 471.3 kB / 0.5932 GB, free: 88.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01302/2.012, allocations: 6.681 MB / 0.5997 GB, free: 81.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006263/2.018, allocations: 219.6 kB / 0.5999 GB, free: 81.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001051/2.019, allocations: 119.9 kB / 0.6 GB, free: 80.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (213): * Single equations (assignments): 204 * 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.003946/2.023, allocations: 0.5115 MB / 0.6005 GB, free: 80.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001217/2.025, allocations: 193.8 kB / 0.6007 GB, free: 80.22 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03441/2.059, allocations: 9.978 MB / 0.6105 GB, free: 70.13 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002142/2.059, allocations: 109.9 kB / 0.6106 GB, free: 70.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-05/2.059, allocations: 7.953 kB / 0.6106 GB, free: 70.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001161/2.06, allocations: 11.95 kB / 0.6106 GB, free: 70 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04546/2.105, allocations: 13.33 MB / 0.6236 GB, free: 56.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.44e-05/2.105, allocations: 0 / 0.6236 GB, free: 56.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005323/2.111, allocations: 415.2 kB / 0.624 GB, free: 56.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01544/2.126, allocations: 4.098 MB / 0.628 GB, free: 52.06 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008/2.127, allocations: 64.2 kB / 0.6281 GB, free: 52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01715/2.144, allocations: 8.764 MB / 0.6366 GB, free: 43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/2.144, allocations: 128 / 0.6366 GB, free: 43 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0372/2.181, allocations: 10.77 MB / 0.6472 GB, free: 32.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003732/2.185, allocations: 0.9048 MB / 0.648 GB, free: 31.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001307/2.187, allocations: 51.95 kB / 0.6481 GB, free: 31.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00607/2.193, allocations: 235.5 kB / 0.6483 GB, free: 30.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001519/2.194, allocations: 233.6 kB / 0.6485 GB, free: 30.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006839/2.195, allocations: 83.95 kB / 0.6486 GB, free: 30.58 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004022/2.199, allocations: 1.258 MB / 0.6498 GB, free: 29.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.714e-06/2.199, allocations: 0 / 0.6498 GB, free: 29.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01051/2.21, allocations: 1.801 MB / 0.6516 GB, free: 27.62 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (openTankCold2.level,openTankCold2.medium.h,openTankCold1.level,openTankCold1.medium.h,openTankHot1.level,openTankHot1.medium.h,openTankHot2.level,openTankHot2.medium.h,openTankCold3.level,openTankCold3.medium.h,openTankHot3.level,openTankHot3.medium.h) * Number of discrete variables: 71 ($cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.phase,$cse39.region,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse51.region3boundary,$cse52.region3boundary,$cse53.phase,$cse53.region,$cse54.phase,$cse54.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.01384/2.224, allocations: 1.736 MB / 0.6533 GB, free: 26.15 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02066/2.244, allocations: 4.272 MB / 0.6575 GB, free: 21.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.965e-05/2.244, allocations: 4.5 kB / 0.6575 GB, free: 21.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0148/2.259, allocations: 3.149 MB / 0.6605 GB, free: 18.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01306/2.272, allocations: 1.047 MB / 0.6616 GB, free: 17.66 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02942/2.302, allocations: 9.557 MB / 0.6709 GB, free: 8.059 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004115/2.306, allocations: 2.191 MB / 0.673 GB, free: 5.832 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001972/2.308, allocations: 203.3 kB / 0.6732 GB, free: 5.633 MB / 410.7 MB Notification: Performance of SimCode: time 2.285e-06/2.308, allocations: 0 / 0.6732 GB, free: 5.633 MB / 410.7 MB Notification: Performance of Templates: time 0.8918/3.2, allocations: 171.5 MB / 0.8407 GB, free: 10.05 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)