Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_3_2_3_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.001231/0.001231, allocations: 181.3 kB / 17.02 MB, free: 5.125 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.722/1.722, allocations: 205.4 MB / 223.1 MB, free: 9.031 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.0009275/0.0009273, allocations: 100.1 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003291/0.0003292, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3127, allocations: 47.57 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.553/6.866, allocations: 2.756 GB / 3.123 GB, free: 126.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/6.866, allocations: 91.25 kB / 3.123 GB, free: 126.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306/10.17, allocations: 0.9689 GB / 4.092 GB, free: 30.22 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.775e-06/10.17, allocations: 0 / 4.092 GB, free: 30.22 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002064/10.17, allocations: 64.3 kB / 4.092 GB, free: 30.2 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.01432/10.19, allocations: 3.591 MB / 4.096 GB, free: 28.16 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/10.19, allocations: 11.33 kB / 4.096 GB, free: 28.16 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001335/10.19, allocations: 283.4 kB / 4.096 GB, free: 27.99 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01373/10.2, allocations: 1.213 MB / 4.097 GB, free: 27.82 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004344/10.21, allocations: 1.531 MB / 4.099 GB, free: 27.04 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003228/10.21, allocations: 346.7 kB / 4.099 GB, free: 26.78 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000718/10.21, allocations: 189.2 kB / 4.099 GB, free: 26.72 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008379/10.22, allocations: 3.54 MB / 4.103 GB, free: 25.39 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.262e-05/10.22, allocations: 3.656 kB / 4.103 GB, free: 25.39 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003502/10.22, allocations: 88.48 kB / 4.103 GB, free: 25.33 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001314/10.22, allocations: 101.3 kB / 4.103 GB, free: 25.32 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008193/10.22, allocations: 3.526 MB / 4.106 GB, free: 24.34 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.02086/10.25, allocations: 14.4 MB / 4.12 GB, free: 11.41 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006364/10.25, allocations: 2.873 MB / 4.123 GB, free: 9.051 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01375/10.27, allocations: 8.248 MB / 4.131 GB, free: 52 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001006/10.27, allocations: 63.67 kB / 4.131 GB, free: 15.98 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003641/10.27, allocations: 0.573 MB / 4.132 GB, free: 15.42 MB / 490.7 MB Notification: Performance of pre-optimization done (n=175): time 1.147e-05/10.27, allocations: 0 / 4.132 GB, free: 15.42 MB / 490.7 MB Notification: Performance of matching and sorting (n=205): time 0.03921/10.31, allocations: 12.29 MB / 4.144 GB, free: 3.074 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.408e-05/10.31, allocations: 162.4 kB / 4.144 GB, free: 2.883 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001899/10.31, allocations: 1.225 MB / 4.145 GB, free: 1.652 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004283/10.31, allocations: 65.7 kB / 4.145 GB, free: 1.582 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005444/10.31, allocations: 0.7823 MB / 4.146 GB, free: 0.793 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006988/10.31, allocations: 0.6713 MB / 4.147 GB, free: 132 kB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/10.31, allocations: 40 kB / 4.147 GB, free: 92 kB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.3161/10.63, allocations: 391 kB / 4.147 GB, free: 46.42 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003235/10.63, allocations: 1.261 MB / 4.148 GB, free: 46.41 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00306/10.63, allocations: 1.685 MB / 4.15 GB, free: 45.97 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002861/10.64, allocations: 1.366 MB / 4.151 GB, free: 45.95 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/10.64, allocations: 3.969 kB / 4.151 GB, free: 45.95 MB / 490.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.008236/10.65, allocations: 3.931 MB / 4.155 GB, free: 45.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/10.65, allocations: 8.781 kB / 4.155 GB, free: 45.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.622e-05/10.65, allocations: 14.81 kB / 4.155 GB, free: 45.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004529/10.65, allocations: 1.549 MB / 4.157 GB, free: 45.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002413/10.65, allocations: 462.3 kB / 4.157 GB, free: 45.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005283/10.66, allocations: 6.603 MB / 4.163 GB, free: 41.08 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003355/10.66, allocations: 217.5 kB / 4.164 GB, free: 41.08 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006698/10.66, allocations: 115.4 kB / 4.164 GB, free: 41.08 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 () * 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.001692/10.66, allocations: 0.5119 MB / 4.164 GB, free: 40.96 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007597/10.66, allocations: 200.8 kB / 4.165 GB, free: 40.96 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01421/10.68, allocations: 9.85 MB / 4.174 GB, free: 40.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.213e-05/10.68, allocations: 104.9 kB / 4.174 GB, free: 40.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/10.68, allocations: 1.969 kB / 4.174 GB, free: 40.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-05/10.68, allocations: 11.39 kB / 4.174 GB, free: 40.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02156/10.7, allocations: 13.37 MB / 4.187 GB, free: 39.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.576e-05/10.7, allocations: 0 / 4.187 GB, free: 39.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00195/10.7, allocations: 403.1 kB / 4.188 GB, free: 39.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00595/10.71, allocations: 4.136 MB / 4.192 GB, free: 39.15 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004868/10.71, allocations: 61.97 kB / 4.192 GB, free: 39.15 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007762/10.72, allocations: 8.778 MB / 4.2 GB, free: 34.39 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/10.72, allocations: 5.875 kB / 4.2 GB, free: 34.39 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01568/10.73, allocations: 10.71 MB / 4.211 GB, free: 33.63 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002411/10.74, allocations: 0.9101 MB / 4.212 GB, free: 33.29 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006127/10.74, allocations: 48.45 kB / 4.212 GB, free: 33.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002405/10.74, allocations: 239.5 kB / 4.212 GB, free: 33.28 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004443/10.74, allocations: 225.8 kB / 4.212 GB, free: 33.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001979/10.74, allocations: 87.62 kB / 4.212 GB, free: 33.27 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001622/10.74, allocations: 1.255 MB / 4.214 GB, free: 33.13 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.91e-07/10.74, allocations: 0 / 4.214 GB, free: 33.13 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008213/10.75, allocations: 1.916 MB / 4.215 GB, free: 33.06 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.02548/10.77, allocations: 12.69 MB / 4.228 GB, free: 31.64 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009329/10.78, allocations: 4.232 MB / 4.232 GB, free: 31.54 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.299e-05/10.78, allocations: 2.781 kB / 4.232 GB, free: 31.54 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00652/10.79, allocations: 3.146 MB / 4.235 GB, free: 31.48 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005585/10.8, allocations: 1.048 MB / 4.236 GB, free: 31.46 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04321/10.84, allocations: 28.25 MB / 4.264 GB, free: 16.19 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001909/10.84, allocations: 2.231 MB / 4.266 GB, free: 15.37 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003307/10.84, allocations: 1.745 MB / 4.267 GB, free: 15.34 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00184/10.85, allocations: 1.319 MB / 4.269 GB, free: 14.28 MB / 490.7 MB Notification: Performance of SimCode: time 1.463e-06/10.85, allocations: 0 / 4.269 GB, free: 14.28 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4862/11.33, allocations: 124.5 MB / 4.39 GB, free: 56.77 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001538/11.33, allocations: 260.3 kB / 4.391 GB, free: 56.43 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.546/17.88, allocations: 0 / 4.391 GB, free: 56.43 MB / 0.4948 GB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat does not exist to compare? outputFormat=mat