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: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002217/0.002217, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.977/1.977, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001144/0.001144, allocations: 89.03 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003945/0.0003946, allocations: 12 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3459, allocations: 47.57 MB / 374.6 MB, free: 45.33 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.08/8.426, allocations: 2.756 GB / 3.122 GB, free: 38.69 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/8.426, allocations: 84.7 kB / 3.122 GB, free: 38.65 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.184/13.61, allocations: 0.9688 GB / 4.091 GB, free: 29.5 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.565e-06/13.61, allocations: 6.531 kB / 4.091 GB, free: 29.5 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002222/13.61, allocations: 54.36 kB / 4.091 GB, free: 29.5 MB / 474.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.01653/13.63, allocations: 3.594 MB / 4.094 GB, free: 27.69 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/13.63, allocations: 14.3 kB / 4.094 GB, free: 27.69 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001282/13.63, allocations: 273.9 kB / 4.095 GB, free: 27.64 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02269/13.65, allocations: 1.222 MB / 4.096 GB, free: 27.52 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005699/13.66, allocations: 1.535 MB / 4.097 GB, free: 27.13 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003908/13.66, allocations: 345.5 kB / 4.098 GB, free: 26.94 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007128/13.66, allocations: 186.5 kB / 4.098 GB, free: 26.94 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01339/13.67, allocations: 3.533 MB / 4.101 GB, free: 26.52 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.5e-05/13.67, allocations: 8.625 kB / 4.101 GB, free: 26.51 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000492/13.67, allocations: 84 kB / 4.101 GB, free: 26.51 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002038/13.67, allocations: 108.2 kB / 4.102 GB, free: 26.51 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01454/13.69, allocations: 3.52 MB / 4.105 GB, free: 26.49 MB / 474.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.03267/13.72, allocations: 14.41 MB / 4.119 GB, free: 19.31 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01127/13.73, allocations: 2.873 MB / 4.122 GB, free: 19.26 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02531/13.76, allocations: 8.246 MB / 4.13 GB, free: 14.29 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.282e-05/13.76, allocations: 56.59 kB / 4.13 GB, free: 14.25 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005428/13.76, allocations: 0.571 MB / 4.131 GB, free: 14.15 MB / 474.7 MB Notification: Performance of pre-optimization done (n=175): time 5.08e-06/13.76, allocations: 3.938 kB / 4.131 GB, free: 14.15 MB / 474.7 MB Notification: Performance of matching and sorting (n=205): time 0.06316/13.83, allocations: 12.29 MB / 4.143 GB, free: 12.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/13.83, allocations: 153.5 kB / 4.143 GB, free: 12.64 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002427/13.83, allocations: 1.227 MB / 4.144 GB, free: 12.47 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006117/13.83, allocations: 65.77 kB / 4.144 GB, free: 12.44 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005271/13.83, allocations: 0.7413 MB / 4.145 GB, free: 12.05 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008797/13.83, allocations: 0.6725 MB / 4.145 GB, free: 11.62 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003058/13.83, allocations: 46.06 kB / 4.145 GB, free: 11.62 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/13.83, allocations: 398.9 kB / 4.146 GB, free: 11.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004301/13.83, allocations: 1.262 MB / 4.147 GB, free: 11.28 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004957/13.84, allocations: 1.685 MB / 4.149 GB, free: 10.61 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004852/13.84, allocations: 1.369 MB / 4.15 GB, free: 10.05 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.567e-05/13.84, allocations: 3.938 kB / 4.15 GB, free: 10.05 MB / 474.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01359/13.86, allocations: 3.823 MB / 4.154 GB, free: 8.605 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/13.86, allocations: 8.094 kB / 4.154 GB, free: 8.605 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.729e-05/13.86, allocations: 11.47 kB / 4.154 GB, free: 8.605 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00779/13.87, allocations: 1.556 MB / 4.155 GB, free: 8.203 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003845/13.87, allocations: 460.9 kB / 4.156 GB, free: 8.156 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008265/13.88, allocations: 6.608 MB / 4.162 GB, free: 2.699 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004324/13.88, allocations: 211.8 kB / 4.162 GB, free: 2.645 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005507/13.88, allocations: 120.7 kB / 4.162 GB, free: 2.621 MB / 474.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.001701/13.89, allocations: 0.5078 MB / 4.163 GB, free: 2.301 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007323/13.89, allocations: 196.8 kB / 4.163 GB, free: 2.203 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02392/13.91, allocations: 9.872 MB / 4.173 GB, free: 10.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001499/13.91, allocations: 105 kB / 4.173 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.466e-05/13.91, allocations: 0 / 4.173 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.427e-05/13.91, allocations: 15 kB / 4.173 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4285/14.34, allocations: 13.38 MB / 4.186 GB, free: 43.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.47e-05/14.34, allocations: 0 / 4.186 GB, free: 43.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003541/14.34, allocations: 402.1 kB / 4.186 GB, free: 43.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01022/14.35, allocations: 4.137 MB / 4.19 GB, free: 43.05 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006492/14.35, allocations: 63.48 kB / 4.19 GB, free: 43.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01125/14.36, allocations: 8.773 MB / 4.199 GB, free: 38.35 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/14.36, allocations: 3.812 kB / 4.199 GB, free: 38.35 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02514/14.39, allocations: 10.72 MB / 4.209 GB, free: 37.81 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002735/14.39, allocations: 0.9058 MB / 4.21 GB, free: 37.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008546/14.39, allocations: 49.22 kB / 4.21 GB, free: 37.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004222/14.4, allocations: 236.3 kB / 4.211 GB, free: 37.59 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009606/14.4, allocations: 227.4 kB / 4.211 GB, free: 37.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000395/14.4, allocations: 87.7 kB / 4.211 GB, free: 37.59 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003191/14.4, allocations: 1.253 MB / 4.212 GB, free: 37.45 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.102e-06/14.4, allocations: 1.031 kB / 4.212 GB, free: 37.45 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01012/14.41, allocations: 1.919 MB / 4.214 GB, free: 37.45 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.03812/14.45, allocations: 12.69 MB / 4.226 GB, free: 36.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01455/14.47, allocations: 4.23 MB / 4.231 GB, free: 36 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/14.47, allocations: 4.375 kB / 4.231 GB, free: 36 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01012/14.48, allocations: 3.133 MB / 4.234 GB, free: 35.94 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009487/14.48, allocations: 1.054 MB / 4.235 GB, free: 35.91 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05842/14.54, allocations: 28.27 MB / 4.262 GB, free: 22.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002126/14.55, allocations: 2.191 MB / 4.264 GB, free: 21.35 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002876/14.55, allocations: 1.337 MB / 4.266 GB, free: 21.34 MB / 490.7 MB Notification: Performance of SimCode: time 1.152e-06/14.55, allocations: 0 / 4.266 GB, free: 21.34 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.868/20.42, allocations: 184.8 MB / 4.446 GB, free: 59.05 MB / 0.4949 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat does not exist to compare? outputFormat=mat