Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001725/0.001725, allocations: 175.2 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.564/1.564, allocations: 221.3 MB / 235.5 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009577/0.0009573, allocations: 87.86 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.125e-05/3.127e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1376, allocations: 50.42 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.379/8.517, allocations: 2.761 GB / 3.146 GB, free: 67.69 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002258/8.517, allocations: 80.12 kB / 3.146 GB, free: 67.66 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.895/12.41, allocations: 0.9762 GB / 4.123 GB, free: 10.24 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.056e-06/12.41, allocations: 0 / 4.123 GB, free: 10.24 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000287/12.41, allocations: 59.98 kB / 4.123 GB, free: 10.18 MB / 490.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.01744/12.43, allocations: 3.394 MB / 4.126 GB, free: 6.734 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/12.43, allocations: 8.031 kB / 4.126 GB, free: 6.727 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001049/12.43, allocations: 265.7 kB / 4.126 GB, free: 6.457 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01371/12.44, allocations: 1.23 MB / 4.127 GB, free: 5.223 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004804/12.45, allocations: 1.529 MB / 4.129 GB, free: 3.637 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003095/12.45, allocations: 345.8 kB / 4.129 GB, free: 3.262 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005334/12.45, allocations: 188 kB / 4.129 GB, free: 3.078 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4217/12.87, allocations: 3.47 MB / 4.133 GB, free: 24.12 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-05/12.87, allocations: 8.562 kB / 4.133 GB, free: 24.12 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004707/12.87, allocations: 86.88 kB / 4.133 GB, free: 24.12 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000209/12.87, allocations: 102.8 kB / 4.133 GB, free: 24.12 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007979/12.88, allocations: 3.31 MB / 4.136 GB, free: 24.11 MB / 490.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.02185/12.9, allocations: 14.41 MB / 4.15 GB, free: 17.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005972/12.91, allocations: 2.695 MB / 4.153 GB, free: 17.15 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001913/12.91, allocations: 1.27 MB / 4.154 GB, free: 17.14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01695/12.93, allocations: 8.28 MB / 4.162 GB, free: 28.16 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.428e-05/12.93, allocations: 54.95 kB / 4.162 GB, free: 28.12 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003572/12.93, allocations: 0.573 MB / 4.163 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=175): time 4.949e-06/12.93, allocations: 0 / 4.163 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=205): time 0.02765/12.96, allocations: 10.12 MB / 4.173 GB, free: 27.27 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.703e-05/12.96, allocations: 152 kB / 4.173 GB, free: 27.11 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001695/12.96, allocations: 1.209 MB / 4.174 GB, free: 26.95 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002268/12.96, allocations: 65.48 kB / 4.174 GB, free: 26.91 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004372/12.96, allocations: 0.7935 MB / 4.175 GB, free: 26.66 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005844/12.96, allocations: 0.6713 MB / 4.176 GB, free: 26.3 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/12.96, allocations: 45.56 kB / 4.176 GB, free: 26.3 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001808/12.96, allocations: 386.4 kB / 4.176 GB, free: 26 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00149/12.96, allocations: 1.103 MB / 4.177 GB, free: 25.99 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00166/12.97, allocations: 1.527 MB / 4.178 GB, free: 25.54 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001666/12.97, allocations: 1.214 MB / 4.18 GB, free: 25.51 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/12.97, allocations: 3.344 kB / 4.18 GB, free: 25.51 MB / 0.4948 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.005615/12.97, allocations: 3.602 MB / 4.183 GB, free: 25.26 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/12.97, allocations: 11.72 kB / 4.183 GB, free: 25.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/12.97, allocations: 16.84 kB / 4.183 GB, free: 25.26 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003912/12.98, allocations: 1.533 MB / 4.185 GB, free: 25.19 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001818/12.98, allocations: 467.5 kB / 4.185 GB, free: 25.19 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005961/12.99, allocations: 6.591 MB / 4.192 GB, free: 20.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003194/12.99, allocations: 227.7 kB / 4.192 GB, free: 20.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002907/12.99, allocations: 110.2 kB / 4.192 GB, free: 20.48 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 () * 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.0006226/12.99, allocations: 244.8 kB / 4.192 GB, free: 20.37 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004257/12.99, allocations: 202 kB / 4.192 GB, free: 20.27 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01095/13, allocations: 9.645 MB / 4.202 GB, free: 19.29 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-05/13, allocations: 102.8 kB / 4.202 GB, free: 19.29 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/13, allocations: 0 / 4.202 GB, free: 19.29 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.372e-05/13, allocations: 13.14 kB / 4.202 GB, free: 19.29 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01635/13.02, allocations: 13.13 MB / 4.215 GB, free: 18.33 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/13.02, allocations: 0.9375 kB / 4.215 GB, free: 18.33 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001834/13.02, allocations: 403.7 kB / 4.215 GB, free: 18.33 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006603/13.03, allocations: 4.687 MB / 4.22 GB, free: 18.12 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006393/13.03, allocations: 66.69 kB / 4.22 GB, free: 18.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008317/13.03, allocations: 8.76 MB / 4.228 GB, free: 13.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/13.03, allocations: 1.312 kB / 4.228 GB, free: 13.36 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01315/13.05, allocations: 10.23 MB / 4.238 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002222/13.05, allocations: 0.9142 MB / 4.239 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005174/13.05, allocations: 40.84 kB / 4.239 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002153/13.05, allocations: 237.3 kB / 4.239 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004575/13.05, allocations: 226.7 kB / 4.24 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001927/13.05, allocations: 91.86 kB / 4.24 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001715/13.06, allocations: 1.227 MB / 4.241 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/13.06, allocations: 3.922 kB / 4.241 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008081/13.06, allocations: 1.919 MB / 4.243 GB, free: 11.99 MB / 0.4948 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 () * 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.02356/13.09, allocations: 12.22 MB / 4.255 GB, free: 10.06 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007996/13.1, allocations: 3.9 MB / 4.259 GB, free: 8.652 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/13.1, allocations: 4.094 kB / 4.259 GB, free: 8.652 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005225/13.1, allocations: 2.973 MB / 4.261 GB, free: 7.395 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006092/13.11, allocations: 1.046 MB / 4.262 GB, free: 7.199 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01878/13.13, allocations: 7.695 MB / 4.27 GB, free: 4.492 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00188/13.13, allocations: 2.236 MB / 4.272 GB, free: 3.668 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003563/13.13, allocations: 1.745 MB / 4.274 GB, free: 3.637 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001603/13.13, allocations: 1.321 MB / 4.275 GB, free: 2.57 MB / 0.4948 GB Notification: Performance of SimCode: time 1.864e-06/13.13, allocations: 0 / 4.275 GB, free: 2.57 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.396/15.53, allocations: 129.2 MB / 4.401 GB, free: 49.86 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002161/15.53, allocations: 227.5 kB / 4.402 GB, free: 49.62 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.303/21.83, allocations: 0 / 4.402 GB, free: 49.62 MB / 0.5105 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)