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.002194/0.002194, allocations: 182.1 kB / 16.4 MB, free: 5.75 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.021/2.021, allocations: 205.4 MB / 222.5 MB, free: 9.098 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.001163/0.001163, allocations: 97.83 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004044/0.0004044, allocations: 12 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3411, allocations: 47.57 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.1112/0.4524, allocations: 79.26 MB / 453.9 MB, free: 1.395 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0605/0.513, allocations: 29.53 MB / 483.4 MB, free: 3.805 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003488/0.5165, allocations: 67.44 kB / 483.5 MB, free: 3.738 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005674/0.5223, allocations: 1.155 MB / 484.6 MB, free: 2.578 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01637/0.5387, allocations: 3.567 MB / 488.2 MB, free: 15.01 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03173/0.5705, allocations: 7.195 MB / 495.4 MB, free: 7.809 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00931/0.5798, allocations: 3.594 MB / 499 MB, free: 4.211 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004026/0.5839, allocations: 1.667 MB / 0.4889 GB, free: 2.516 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3476/0.9315, allocations: 7.557 MB / 0.4963 GB, free: 13.02 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004023/0.9356, allocations: 1.453 MB / 0.4977 GB, free: 13.02 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00127/0.9369, allocations: 141.3 kB / 0.4979 GB, free: 13.02 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02814/0.9651, allocations: 8.734 MB / 0.5064 GB, free: 13 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001985/0.9671, allocations: 0.6833 MB / 0.5071 GB, free: 13 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001175/0.9683, allocations: 469 kB / 0.5075 GB, free: 12.96 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01572/0.984, allocations: 5.873 MB / 0.5132 GB, free: 12.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.9841, allocations: 0 / 0.5132 GB, free: 12.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.547e-06/0.9841, allocations: 0 / 0.5132 GB, free: 12.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.849e-05/0.9842, allocations: 3.281 kB / 0.5132 GB, free: 12.63 MB / 378.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.01305/0.9973, allocations: 2.975 MB / 0.5161 GB, free: 11.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.9974, allocations: 11.77 kB / 0.5162 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001037/0.9984, allocations: 272.9 kB / 0.5164 GB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01758/1.016, allocations: 1.264 MB / 0.5177 GB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004259/1.02, allocations: 1.293 MB / 0.5189 GB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004254/1.021, allocations: 348.8 kB / 0.5192 GB, free: 10.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007771/1.022, allocations: 186.4 kB / 0.5194 GB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01396/1.036, allocations: 3.474 MB / 0.5228 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.509e-05/1.036, allocations: 4.969 kB / 0.5228 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000473/1.036, allocations: 86.02 kB / 0.5229 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002096/1.036, allocations: 103 kB / 0.523 GB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01552/1.052, allocations: 3.516 MB / 0.5264 GB, free: 10.04 MB / 378.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.0373/1.089, allocations: 14.46 MB / 0.5406 GB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01183/1.101, allocations: 2.917 MB / 0.5434 GB, free: 12.51 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08863/1.19, allocations: 24.51 MB / 0.5673 GB, free: 1.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.38e-05/1.19, allocations: 61.34 kB / 0.5674 GB, free: 1.539 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004665/1.195, allocations: 451.7 kB / 0.5678 GB, free: 1.168 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 1.248e-05/1.195, allocations: 0 / 0.5678 GB, free: 1.168 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.07126/1.266, allocations: 12.45 MB / 0.58 GB, free: 7.469 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/1.266, allocations: 158.5 kB / 0.5801 GB, free: 7.281 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002883/1.269, allocations: 1.391 MB / 0.5815 GB, free: 6.227 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006467/1.27, allocations: 67.2 kB / 0.5816 GB, free: 6.184 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006857/1.27, allocations: 0.7392 MB / 0.5823 GB, free: 5.695 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001215/1.272, allocations: 0.6766 MB / 0.583 GB, free: 5.121 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002635/1.272, allocations: 43.12 kB / 0.583 GB, free: 5.113 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002496/1.272, allocations: 390.8 kB / 0.5834 GB, free: 4.758 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005099/1.277, allocations: 1.297 MB / 0.5846 GB, free: 3.887 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005622/1.283, allocations: 1.723 MB / 0.5863 GB, free: 2.465 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005305/1.288, allocations: 1.41 MB / 0.5877 GB, free: 1.582 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.735e-05/1.288, allocations: 0 / 0.5877 GB, free: 1.582 MB / 426.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01511/1.304, allocations: 3.923 MB / 0.5915 GB, free: 14.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.741e-05/1.304, allocations: 8.969 kB / 0.5915 GB, free: 14.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.927e-05/1.304, allocations: 12 kB / 0.5915 GB, free: 14.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008509/1.312, allocations: 1.588 MB / 0.5931 GB, free: 13.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004192/1.316, allocations: 470.2 kB / 0.5935 GB, free: 13.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/1.327, allocations: 6.705 MB / 0.6001 GB, free: 6.984 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004406/1.331, allocations: 219.3 kB / 0.6003 GB, free: 6.805 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006443/1.332, allocations: 109.3 kB / 0.6004 GB, free: 6.719 MB / 442.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.001669/1.333, allocations: 0.5104 MB / 0.6009 GB, free: 6.395 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007281/1.334, allocations: 197.7 kB / 0.6011 GB, free: 6.199 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02483/1.359, allocations: 9.979 MB / 0.6108 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00016/1.359, allocations: 104.1 kB / 0.6109 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.379e-05/1.359, allocations: 0 / 0.6109 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.654e-05/1.359, allocations: 15.95 kB / 0.611 GB, free: 15.37 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03218/1.391, allocations: 13.34 MB / 0.624 GB, free: 6.766 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.182e-05/1.392, allocations: 0 / 0.624 GB, free: 6.766 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003842/1.395, allocations: 418.1 kB / 0.6244 GB, free: 6.387 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01165/1.407, allocations: 4.097 MB / 0.6284 GB, free: 2.867 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006683/1.408, allocations: 58.28 kB / 0.6284 GB, free: 2.844 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01336/1.421, allocations: 8.776 MB / 0.637 GB, free: 11.47 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/1.421, allocations: 0 / 0.637 GB, free: 11.47 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02728/1.449, allocations: 10.77 MB / 0.6475 GB, free: 3.039 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002762/1.451, allocations: 0.9049 MB / 0.6484 GB, free: 2.105 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006762/1.452, allocations: 40 kB / 0.6484 GB, free: 2.066 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003942/1.456, allocations: 247.5 kB / 0.6487 GB, free: 1.824 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009209/1.457, allocations: 225.6 kB / 0.6489 GB, free: 1.605 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003514/1.457, allocations: 91.05 kB / 0.649 GB, free: 1.52 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002875/1.46, allocations: 1.258 MB / 0.6502 GB, free: 248 kB / 474.7 MB Notification: Performance of sort global known variables: time 5e-07/1.46, allocations: 0 / 0.6502 GB, free: 248 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.007983/1.468, allocations: 1.803 MB / 0.652 GB, free: 14.44 MB / 490.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.03715/1.505, allocations: 11.85 MB / 0.6635 GB, free: 2.676 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.2821/1.788, allocations: 4.264 MB / 0.6677 GB, free: 213.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/1.788, allocations: 0.5625 kB / 0.6677 GB, free: 213.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01094/1.799, allocations: 3.143 MB / 0.6708 GB, free: 212.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009234/1.808, allocations: 1.047 MB / 0.6718 GB, free: 212.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05739/1.865, allocations: 28.37 MB / 0.6995 GB, free: 194.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001977/1.867, allocations: 2.195 MB / 0.7017 GB, free: 193.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002606/1.87, allocations: 1.329 MB / 0.703 GB, free: 192.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.243e-06/1.87, allocations: 0 / 0.703 GB, free: 192.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.58/7.451, allocations: 182.2 MB / 0.8809 GB, free: 206.5 MB / 490.7 MB (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