Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00156/0.001561, allocations: 198 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.2 MB / 245 MB, free: 5.875 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009078/0.000908, allocations: 97.59 kB / 297.3 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002639/0.0002639, allocations: 4 kB / 358 MB, free: 9.234 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2429, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.385/5.628, allocations: 2.762 GB / 3.162 GB, free: 64.48 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/5.628, allocations: 79.84 kB / 3.162 GB, free: 64.44 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.327/8.955, allocations: 0.9795 GB / 4.141 GB, free: 35.37 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.814e-06/8.955, allocations: 0.75 kB / 4.141 GB, free: 35.37 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001366/8.955, allocations: 57.64 kB / 4.142 GB, free: 35.37 MB / 0.4948 GB 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.01076/8.966, allocations: 3.605 MB / 4.145 GB, free: 33.77 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/8.966, allocations: 13.38 kB / 4.145 GB, free: 33.77 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007253/8.967, allocations: 274.8 kB / 4.145 GB, free: 33.72 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01273/8.979, allocations: 1.231 MB / 4.147 GB, free: 33.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003884/8.983, allocations: 1.525 MB / 4.148 GB, free: 33.22 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002762/8.984, allocations: 346.1 kB / 4.148 GB, free: 33.03 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004512/8.984, allocations: 189.8 kB / 4.149 GB, free: 33.02 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007481/8.992, allocations: 3.535 MB / 4.152 GB, free: 32.59 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.146e-05/8.992, allocations: 8.797 kB / 4.152 GB, free: 32.59 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003217/8.992, allocations: 88.42 kB / 4.152 GB, free: 32.59 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001279/8.992, allocations: 101.8 kB / 4.152 GB, free: 32.59 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008096/9, allocations: 3.523 MB / 4.156 GB, free: 32.57 MB / 0.4948 GB 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.01943/9.02, allocations: 14.42 MB / 4.17 GB, free: 25.5 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005917/9.026, allocations: 2.86 MB / 4.172 GB, free: 25.44 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01425/9.04, allocations: 8.971 MB / 4.181 GB, free: 19.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.618e-05/9.04, allocations: 61.25 kB / 4.181 GB, free: 19.66 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003314/9.043, allocations: 0.5631 MB / 4.182 GB, free: 19.57 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=175): time 5.31e-06/9.043, allocations: 0 / 4.182 GB, free: 19.57 MB / 0.4948 GB Notification: Performance of matching and sorting (n=205): time 0.0352/9.079, allocations: 12.29 MB / 4.194 GB, free: 18.44 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/9.079, allocations: 159 kB / 4.194 GB, free: 18.29 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001592/9.08, allocations: 1.227 MB / 4.195 GB, free: 18.12 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002662/9.081, allocations: 63.52 kB / 4.195 GB, free: 18.09 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004017/9.081, allocations: 0.7847 MB / 4.196 GB, free: 17.76 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004699/9.081, allocations: 0.6803 MB / 4.197 GB, free: 17.33 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/9.082, allocations: 40.44 kB / 4.197 GB, free: 17.33 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001029/9.082, allocations: 388 kB / 4.197 GB, free: 17.02 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00219/9.084, allocations: 1.262 MB / 4.198 GB, free: 17.02 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002318/9.086, allocations: 1.696 MB / 4.2 GB, free: 16.55 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002255/9.088, allocations: 1.363 MB / 4.201 GB, free: 16.54 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.074e-06/9.089, allocations: 3.406 kB / 4.201 GB, free: 16.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.006919/9.095, allocations: 3.927 MB / 4.205 GB, free: 16.28 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/9.095, allocations: 9.656 kB / 4.205 GB, free: 16.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.745e-05/9.096, allocations: 9.625 kB / 4.205 GB, free: 16.28 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004181/9.1, allocations: 1.554 MB / 4.207 GB, free: 16.21 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001956/9.102, allocations: 468.4 kB / 4.207 GB, free: 16.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004657/9.106, allocations: 6.598 MB / 4.214 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002766/9.109, allocations: 215.7 kB / 4.214 GB, free: 11.51 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002598/9.109, allocations: 115.6 kB / 4.214 GB, free: 11.51 MB / 0.4948 GB 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.001161/9.111, allocations: 0.517 MB / 4.214 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004332/9.111, allocations: 192.2 kB / 4.215 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01141/9.122, allocations: 9.865 MB / 4.224 GB, free: 10.32 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.258e-05/9.123, allocations: 104 kB / 4.224 GB, free: 10.32 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/9.123, allocations: 0 / 4.224 GB, free: 10.32 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-05/9.123, allocations: 12.19 kB / 4.224 GB, free: 10.32 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01717/9.14, allocations: 13.37 MB / 4.237 GB, free: 9.359 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/9.14, allocations: 6.719 kB / 4.237 GB, free: 9.359 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/9.142, allocations: 401.3 kB / 4.238 GB, free: 9.359 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00554/9.147, allocations: 4.131 MB / 4.242 GB, free: 9.156 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000277/9.147, allocations: 65.58 kB / 4.242 GB, free: 9.156 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007292/9.155, allocations: 8.776 MB / 4.25 GB, free: 20.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/9.155, allocations: 0 / 4.25 GB, free: 20.39 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01359/9.168, allocations: 10.72 MB / 4.261 GB, free: 18.85 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0022/9.171, allocations: 0.9062 MB / 4.262 GB, free: 18.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004359/9.171, allocations: 47.97 kB / 4.262 GB, free: 18.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002082/9.173, allocations: 237.8 kB / 4.262 GB, free: 18.21 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004453/9.174, allocations: 229.3 kB / 4.262 GB, free: 18.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001889/9.174, allocations: 90.5 kB / 4.262 GB, free: 18.16 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001538/9.175, allocations: 1.249 MB / 4.264 GB, free: 17.68 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/9.175, allocations: 0 / 4.264 GB, free: 17.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00678/9.182, allocations: 1.943 MB / 4.265 GB, free: 17.26 MB / 0.5105 GB 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.02159/9.204, allocations: 12.7 MB / 4.278 GB, free: 12 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008618/9.212, allocations: 4.233 MB / 4.282 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/9.212, allocations: 0.5625 kB / 4.282 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005975/9.218, allocations: 3.132 MB / 4.285 GB, free: 9.273 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00528/9.224, allocations: 1.043 MB / 4.286 GB, free: 8.895 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3068/9.531, allocations: 28.54 MB / 4.314 GB, free: 61.24 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001543/9.532, allocations: 2.23 MB / 4.316 GB, free: 60.47 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003439/9.536, allocations: 1.739 MB / 4.318 GB, free: 60.44 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001512/9.537, allocations: 1.323 MB / 4.319 GB, free: 60.44 MB / 0.5261 GB Notification: Performance of SimCode: time 1.022e-06/9.537, allocations: 0 / 4.319 GB, free: 60.44 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1578/9.695, allocations: 124 MB / 4.44 GB, free: 44.95 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/9.695, allocations: 256.5 kB / 4.44 GB, free: 44.61 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.142/15.84, allocations: 0 / 4.44 GB, free: 44.61 MB / 0.5261 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature.fmu > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat does not exist to compare? outputFormat=mat