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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001287/0.001287, allocations: 117.6 kB / 17.79 MB, free: 5.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 200.7 kB / 18.74 MB, free: 4.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2817, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.09959/0.3814, allocations: 94.24 MB / 0.4912 GB, free: 2.953 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04645/0.4278, allocations: 34.38 MB / 0.5248 GB, free: 468 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002619/0.4305, allocations: 51.69 kB / 0.5248 GB, free: 416 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004209/0.4348, allocations: 1.324 MB / 0.5261 GB, free: 15.07 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01299/0.4478, allocations: 4.537 MB / 0.5306 GB, free: 10.52 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02482/0.4726, allocations: 8.73 MB / 0.5391 GB, free: 1.801 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.2716/0.7442, allocations: 6.182 MB / 0.5451 GB, free: 12.04 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003001/0.7473, allocations: 1.999 MB / 0.5471 GB, free: 11.88 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01074/0.758, allocations: 5.786 MB / 0.5527 GB, free: 10.95 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004562/0.7626, allocations: 2.156 MB / 0.5548 GB, free: 10.94 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008234/0.7635, allocations: 257.9 kB / 0.5551 GB, free: 10.94 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01732/0.7808, allocations: 9.16 MB / 0.564 GB, free: 10.92 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001771/0.7826, allocations: 0.854 MB / 0.5649 GB, free: 10.92 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002638/0.7853, allocations: 1.354 MB / 0.5662 GB, free: 10.64 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01965/0.8049, allocations: 8.706 MB / 0.5747 GB, free: 9.988 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.805, allocations: 0 / 0.5747 GB, free: 9.988 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.805, allocations: 0 / 0.5747 GB, free: 9.988 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001694/0.8052, allocations: 0 / 0.5747 GB, free: 9.988 MB / 462.1 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.01243/0.8176, allocations: 3.536 MB / 0.5781 GB, free: 8.367 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.8177, allocations: 18.91 kB / 0.5781 GB, free: 8.359 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003603/0.818, allocations: 274.8 kB / 0.5784 GB, free: 8.312 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01096/0.829, allocations: 1.227 MB / 0.5796 GB, free: 8.172 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003204/0.8322, allocations: 1.418 MB / 0.581 GB, free: 7.742 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006199/0.8329, allocations: 344.2 kB / 0.5813 GB, free: 23.55 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007431/0.8336, allocations: 192.4 kB / 0.5815 GB, free: 23.55 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008305/0.842, allocations: 3.413 MB / 0.5848 GB, free: 22.77 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.332e-05/0.842, allocations: 7.516 kB / 0.5848 GB, free: 22.77 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00032/0.8424, allocations: 84.25 kB / 0.5849 GB, free: 22.77 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001115/0.8425, allocations: 107.1 kB / 0.585 GB, free: 22.75 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008218/0.8507, allocations: 3.407 MB / 0.5884 GB, free: 22 MB / 478.1 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.02284/0.8736, allocations: 14.36 MB / 0.6024 GB, free: 9.875 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007483/0.8811, allocations: 2.811 MB / 0.6051 GB, free: 7.953 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002758/0.8839, allocations: 1.421 MB / 0.6065 GB, free: 7.035 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05343/0.9374, allocations: 26.94 MB / 0.6328 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.859e-05/0.9375, allocations: 66.5 kB / 0.6329 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002179/0.9397, allocations: 330.8 kB / 0.6332 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=175): time 4.218e-06/0.9397, allocations: 0 / 0.6332 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=205): time 0.04018/0.9799, allocations: 12.02 MB / 0.6449 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.98, allocations: 154.5 kB / 0.6451 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002177/0.9822, allocations: 1.408 MB / 0.6465 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004726/0.9827, allocations: 65.7 kB / 0.6465 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007125/0.9834, allocations: 0.8024 MB / 0.6473 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008714/0.9843, allocations: 0.7166 MB / 0.648 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007899/0.9851, allocations: 443.8 kB / 0.6484 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.9852, allocations: 309.1 kB / 0.6487 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002694/0.9879, allocations: 1.265 MB / 0.65 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00319/0.9911, allocations: 1.702 MB / 0.6516 GB, free: 8.363 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005974/0.9971, allocations: 2.923 MB / 0.6545 GB, free: 5.332 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.824e-06/0.9972, allocations: 0 / 0.6545 GB, free: 5.332 MB / 0.5137 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.008733/1.006, allocations: 3.946 MB / 0.6583 GB, free: 1.422 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/1.006, allocations: 8 kB / 0.6583 GB, free: 1.414 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/1.006, allocations: 15.09 kB / 0.6584 GB, free: 1.402 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005018/1.011, allocations: 1.577 MB / 0.6599 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00224/1.013, allocations: 452.3 kB / 0.6603 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007218/1.021, allocations: 6.708 MB / 0.6669 GB, free: 8.473 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002717/1.023, allocations: 123.9 kB / 0.667 GB, free: 8.352 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003641/1.024, allocations: 114.9 kB / 0.6671 GB, free: 8.242 MB / 0.5294 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 (mFlow3.medium.phase,openTankHot3.inFlow[1],openTankHot3.regularFlow[1],openTankHot3.heatTransfer.states[1].phase,openTankCold3.inFlow[1],openTankCold3.regularFlow[1],openTankCold3.heatTransfer.states[1].phase,mFlow2.medium.phase,mFlow1.medium.phase,openTankHot2.inFlow[1],openTankHot2.regularFlow[1],openTankHot2.heatTransfer.states[1].phase,openTankHot1.inFlow[1],openTankHot1.regularFlow[1],openTankHot1.heatTransfer.states[1].phase,openTankCold1.inFlow[1],openTankCold1.regularFlow[1],openTankCold1.heatTransfer.states[1].phase,openTankCold2.inFlow[1],openTankCold2.regularFlow[1],openTankCold2.heatTransfer.states[1].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 (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 9 systems {(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.001288/1.025, allocations: 0.5071 MB / 0.6676 GB, free: 7.75 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005975/1.026, allocations: 214.7 kB / 0.6678 GB, free: 7.539 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01514/1.041, allocations: 9.829 MB / 0.6774 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001031/1.041, allocations: 107.8 kB / 0.6775 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/1.041, allocations: 0 / 0.6775 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.49e-05/1.041, allocations: 11.95 kB / 0.6775 GB, free: 13.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0207/1.062, allocations: 13.24 MB / 0.6904 GB, free: 184 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.057e-05/1.062, allocations: 0 / 0.6904 GB, free: 184 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002276/1.064, allocations: 376 kB / 0.6908 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006154/1.07, allocations: 2.941 MB / 0.6937 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004701/1.071, allocations: 59.91 kB / 0.6937 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009388/1.08, allocations: 8.773 MB / 0.7023 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.08, allocations: 0 / 0.7023 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01772/1.098, allocations: 10.72 MB / 0.7128 GB, free: 8.988 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001735/1.1, allocations: 0.7124 MB / 0.7135 GB, free: 8.254 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005135/1.1, allocations: 99.41 kB / 0.7136 GB, free: 8.156 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001919/1.102, allocations: 148.3 kB / 0.7137 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005461/1.103, allocations: 221.7 kB / 0.7139 GB, free: 7.793 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002022/1.103, allocations: 87.95 kB / 0.714 GB, free: 7.707 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001906/1.105, allocations: 1.277 MB / 0.7152 GB, free: 6.41 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.71e-07/1.105, allocations: 0 / 0.7152 GB, free: 6.41 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006119/1.111, allocations: 1.802 MB / 0.717 GB, free: 4.605 MB / 0.5762 GB 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 (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 9 systems {(2,4), (2,4), (4,11), (2,4), (2,4), (4,11), (2,4), (2,4), (6,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0233/1.134, allocations: 11.84 MB / 0.7286 GB, free: 8.832 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.009972/1.144, allocations: 4.225 MB / 0.7327 GB, free: 4.641 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/1.144, allocations: 4.75 kB / 0.7327 GB, free: 4.637 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006672/1.151, allocations: 3.131 MB / 0.7358 GB, free: 1.543 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00521/1.156, allocations: 1.082 MB / 0.7368 GB, free: 492 kB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2795/1.436, allocations: 25.67 MB / 0.7619 GB, free: 272.8 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001526/1.437, allocations: 2.169 MB / 0.764 GB, free: 271.9 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002874/1.44, allocations: 1.731 MB / 0.7657 GB, free: 271.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001327/1.442, allocations: 1.335 MB / 0.767 GB, free: 270.8 MB / 0.6075 GB Notification: Performance of SimCode: time 7.61e-07/1.442, allocations: 2.688 kB / 0.767 GB, free: 270.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1587/1.6, allocations: 124.5 MB / 0.8886 GB, free: 156.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.89/23.49, allocations: 9.875 kB / 0.8886 GB, free: 156.4 MB / 0.6075 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MeasuringTemperature.fmu > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MeasuringTemperature.pipe 2>&1)