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.002166/0.002166, allocations: 182 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.408/2.408, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.00107/0.001069, allocations: 82.02 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.25e-05/3.264e-05, allocations: 7.938 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.911/8.014, allocations: 2.756 GB / 3.117 GB, free: 4.266 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003008/8.015, allocations: 78.09 kB / 3.117 GB, free: 4.23 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.035/13.05, allocations: 0.966 GB / 4.083 GB, free: 29.66 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.965e-06/13.05, allocations: 2.75 kB / 4.083 GB, free: 29.66 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002274/13.05, allocations: 60.73 kB / 4.083 GB, free: 29.65 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.01603/13.07, allocations: 3.391 MB / 4.086 GB, free: 27.93 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/13.07, allocations: 9.844 kB / 4.086 GB, free: 27.93 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001051/13.07, allocations: 266.7 kB / 4.086 GB, free: 27.89 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02221/13.09, allocations: 1.234 MB / 4.087 GB, free: 27.77 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005732/13.1, allocations: 1.517 MB / 4.089 GB, free: 27.34 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004263/13.1, allocations: 352.7 kB / 4.089 GB, free: 27.14 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008243/13.1, allocations: 186.7 kB / 4.089 GB, free: 27.14 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/13.11, allocations: 3.47 MB / 4.093 GB, free: 26.71 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.545e-05/13.11, allocations: 11.44 kB / 4.093 GB, free: 26.7 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004987/13.11, allocations: 83.7 kB / 4.093 GB, free: 26.7 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002014/13.11, allocations: 107.2 kB / 4.093 GB, free: 26.7 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01241/13.12, allocations: 3.305 MB / 4.096 GB, free: 26.65 MB / 474.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.03519/13.16, allocations: 14.42 MB / 4.11 GB, free: 19.45 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009258/13.17, allocations: 2.699 MB / 4.113 GB, free: 19.26 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003224/13.17, allocations: 1.28 MB / 4.114 GB, free: 18.75 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02595/13.2, allocations: 8.268 MB / 4.122 GB, free: 13.45 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.706e-05/13.2, allocations: 53.69 kB / 4.122 GB, free: 13.39 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005746/13.2, allocations: 0.5725 MB / 4.123 GB, free: 13.23 MB / 474.7 MB Notification: Performance of pre-optimization done (n=175): time 9.798e-06/13.2, allocations: 0 / 4.123 GB, free: 13.23 MB / 474.7 MB Notification: Performance of matching and sorting (n=205): time 0.04901/13.25, allocations: 10.13 MB / 4.133 GB, free: 9.566 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.004e-05/13.25, allocations: 150.5 kB / 4.133 GB, free: 9.391 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002512/13.25, allocations: 1.208 MB / 4.134 GB, free: 8.305 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007101/13.25, allocations: 69.7 kB / 4.134 GB, free: 8.23 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000527/13.25, allocations: 0.7406 MB / 4.135 GB, free: 7.523 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009074/13.26, allocations: 0.6752 MB / 4.136 GB, free: 6.918 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002517/13.26, allocations: 48 kB / 4.136 GB, free: 6.871 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/13.26, allocations: 391.2 kB / 4.136 GB, free: 6.504 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002898/13.26, allocations: 1.101 MB / 4.137 GB, free: 5.504 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003178/13.26, allocations: 1.53 MB / 4.139 GB, free: 3.938 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00316/13.27, allocations: 1.21 MB / 4.14 GB, free: 2.902 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.145e-05/13.27, allocations: 4 kB / 4.14 GB, free: 2.898 MB / 474.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01057/13.28, allocations: 3.523 MB / 4.143 GB, free: 15.85 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.118e-05/13.28, allocations: 8 kB / 4.143 GB, free: 15.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.098e-05/13.28, allocations: 12 kB / 4.143 GB, free: 15.83 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007817/13.28, allocations: 1.542 MB / 4.145 GB, free: 14.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004105/13.29, allocations: 466 kB / 4.145 GB, free: 14.24 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009811/13.3, allocations: 6.595 MB / 4.152 GB, free: 7.754 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004569/13.3, allocations: 217.2 kB / 4.152 GB, free: 7.578 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004632/13.3, allocations: 110.9 kB / 4.152 GB, free: 7.488 MB / 490.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 () * 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.0008223/13.3, allocations: 246.8 kB / 4.152 GB, free: 7.246 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007226/13.3, allocations: 201.8 kB / 4.152 GB, free: 7.047 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4859/13.79, allocations: 9.657 MB / 4.162 GB, free: 43.69 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002521/13.79, allocations: 110 kB / 4.162 GB, free: 43.69 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.904e-05/13.79, allocations: 0.9375 kB / 4.162 GB, free: 43.69 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.453e-05/13.79, allocations: 12.8 kB / 4.162 GB, free: 43.69 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04447/13.84, allocations: 13.12 MB / 4.175 GB, free: 42.98 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.257e-05/13.84, allocations: 0 / 4.175 GB, free: 42.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004966/13.84, allocations: 401.9 kB / 4.175 GB, free: 42.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01718/13.86, allocations: 4.699 MB / 4.18 GB, free: 42.77 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008334/13.86, allocations: 59.34 kB / 4.18 GB, free: 42.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01617/13.88, allocations: 8.755 MB / 4.188 GB, free: 38.08 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/13.88, allocations: 3.375 kB / 4.188 GB, free: 38.08 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03062/13.91, allocations: 10.23 MB / 4.198 GB, free: 37.48 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003522/13.91, allocations: 0.9118 MB / 4.199 GB, free: 37.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008524/13.91, allocations: 45.09 kB / 4.199 GB, free: 37.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004934/13.92, allocations: 238.9 kB / 4.199 GB, free: 37.19 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001005/13.92, allocations: 224.8 kB / 4.2 GB, free: 37.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004166/13.92, allocations: 95.38 kB / 4.2 GB, free: 37.18 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003437/13.92, allocations: 1.228 MB / 4.201 GB, free: 37.02 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.11e-07/13.92, allocations: 0 / 4.201 GB, free: 37.02 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0124/13.93, allocations: 1.924 MB / 4.203 GB, free: 37.02 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 () * 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.04558/13.98, allocations: 12.21 MB / 4.215 GB, free: 35.62 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01719/14, allocations: 3.906 MB / 4.218 GB, free: 35.54 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/14, allocations: 2.875 kB / 4.219 GB, free: 35.54 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01282/14.01, allocations: 2.962 MB / 4.221 GB, free: 35.48 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01286/14.02, allocations: 1.049 MB / 4.222 GB, free: 35.45 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03218/14.05, allocations: 7.722 MB / 4.23 GB, free: 34.09 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003074/14.06, allocations: 2.194 MB / 4.232 GB, free: 33.34 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003983/14.06, allocations: 1.335 MB / 4.233 GB, free: 33.33 MB / 490.7 MB Notification: Performance of SimCode: time 2.124e-06/14.06, allocations: 0 / 4.233 GB, free: 33.33 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.863/19.92, allocations: 187.2 MB / 4.416 GB, free: 60.66 MB / 0.4948 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