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.001609/0.001609, allocations: 104 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002039/0.002039, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 64.17 kB / 307 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09503/0.09647, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.2659/0.3624, allocations: 94.26 MB / 451.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04358/0.406, allocations: 34.38 MB / 486.2 MB, free: 10.31 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00249/0.4085, allocations: 51.69 kB / 486.3 MB, free: 10.26 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003959/0.4126, allocations: 1.32 MB / 487.6 MB, free: 8.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01172/0.4243, allocations: 4.526 MB / 492.1 MB, free: 4.398 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02257/0.4469, allocations: 8.731 MB / 0.4891 GB, free: 11.68 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00795/0.4549, allocations: 6.199 MB / 0.4952 GB, free: 5.453 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003695/0.4586, allocations: 2 MB / 0.4971 GB, free: 3.43 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01295/0.4716, allocations: 5.78 MB / 0.5028 GB, free: 13.59 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00371/0.4753, allocations: 2.152 MB / 0.5049 GB, free: 11.43 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001034/0.4764, allocations: 256 kB / 0.5051 GB, free: 11.18 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02029/0.4967, allocations: 8.995 MB / 0.5139 GB, free: 2.176 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002115/0.4988, allocations: 0.8493 MB / 0.5147 GB, free: 1.324 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004112/0.503, allocations: 1.362 MB / 0.516 GB, free: 15.95 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01973/0.5227, allocations: 8.645 MB / 0.5245 GB, free: 7.293 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.5228, allocations: 4 kB / 0.5245 GB, free: 7.289 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5228, allocations: 0 / 0.5245 GB, free: 7.289 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.452e-05/0.5229, allocations: 8 kB / 0.5245 GB, free: 7.281 MB / 446.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.008712/0.5316, allocations: 3.433 MB / 0.5278 GB, free: 3.789 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.5316, allocations: 12.03 kB / 0.5279 GB, free: 3.777 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004622/0.5321, allocations: 281.8 kB / 0.5281 GB, free: 3.492 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01092/0.543, allocations: 1.22 MB / 0.5293 GB, free: 2.27 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002617/0.5457, allocations: 1.338 MB / 0.5306 GB, free: 0.875 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000334/0.546, allocations: 350.5 kB / 0.531 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004836/0.5465, allocations: 183.9 kB / 0.5311 GB, free: 324 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1707/0.7172, allocations: 3.42 MB / 0.5345 GB, free: 149.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.292e-05/0.7174, allocations: 11.66 kB / 0.5345 GB, free: 149.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000321/0.7177, allocations: 82.77 kB / 0.5346 GB, free: 149.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001687/0.7179, allocations: 106.8 kB / 0.5347 GB, free: 149.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009427/0.7273, allocations: 3.406 MB / 0.538 GB, free: 148.3 MB / 446.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.02024/0.7476, allocations: 14.4 MB / 0.5521 GB, free: 138.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006737/0.7543, allocations: 2.821 MB / 0.5548 GB, free: 137.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002457/0.7568, allocations: 1.423 MB / 0.5562 GB, free: 136.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04398/0.8008, allocations: 26.84 MB / 0.5824 GB, free: 113.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.191e-05/0.8009, allocations: 52.56 kB / 0.5825 GB, free: 113.3 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001868/0.8028, allocations: 328.3 kB / 0.5828 GB, free: 113 MB / 446.1 MB Notification: Performance of pre-optimization done (n=175): time 5.781e-06/0.8028, allocations: 0 / 0.5828 GB, free: 113 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.03379/0.8366, allocations: 12 MB / 0.5945 GB, free: 100.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/0.8367, allocations: 154.5 kB / 0.5946 GB, free: 100.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/0.8381, allocations: 1.408 MB / 0.596 GB, free: 99.33 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002147/0.8383, allocations: 65.7 kB / 0.5961 GB, free: 99.26 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003479/0.8387, allocations: 0.7825 MB / 0.5968 GB, free: 98.47 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003882/0.8391, allocations: 0.6728 MB / 0.5975 GB, free: 97.81 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005924/0.8397, allocations: 451.6 kB / 0.5979 GB, free: 97.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.119e-05/0.8397, allocations: 305.1 kB / 0.5982 GB, free: 97.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0021/0.8418, allocations: 1.265 MB / 0.5995 GB, free: 95.79 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002312/0.8442, allocations: 1.705 MB / 0.6011 GB, free: 93.91 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004429/0.8486, allocations: 2.922 MB / 0.604 GB, free: 90.83 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.8486, allocations: 4 kB / 0.604 GB, free: 90.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.006773/0.8554, allocations: 3.942 MB / 0.6078 GB, free: 86.85 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.8554, allocations: 16.16 kB / 0.6078 GB, free: 86.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/0.8555, allocations: 12 kB / 0.6079 GB, free: 86.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004151/0.8596, allocations: 1.57 MB / 0.6094 GB, free: 85.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001826/0.8615, allocations: 451.3 kB / 0.6098 GB, free: 84.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004684/0.8662, allocations: 6.7 MB / 0.6164 GB, free: 77.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002098/0.8683, allocations: 123.9 kB / 0.6165 GB, free: 77.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001987/0.8685, allocations: 115.9 kB / 0.6166 GB, free: 77.64 MB / 446.1 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 (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.0009358/0.8694, allocations: 0.5143 MB / 0.6171 GB, free: 77.12 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003999/0.8698, allocations: 197.7 kB / 0.6173 GB, free: 76.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0107/0.8806, allocations: 9.841 MB / 0.6269 GB, free: 66.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.672e-05/0.8806, allocations: 107.8 kB / 0.627 GB, free: 66.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.8807, allocations: 0 / 0.627 GB, free: 66.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.177e-05/0.8807, allocations: 11.95 kB / 0.627 GB, free: 66.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01392/0.8946, allocations: 13.25 MB / 0.6399 GB, free: 53.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.8947, allocations: 0 / 0.6399 GB, free: 53.51 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001609/0.8963, allocations: 375.4 kB / 0.6403 GB, free: 53.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004142/0.9004, allocations: 2.949 MB / 0.6432 GB, free: 50.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001659/0.9006, allocations: 59.97 kB / 0.6432 GB, free: 50.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005882/0.9065, allocations: 8.773 MB / 0.6518 GB, free: 41.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.9065, allocations: 0 / 0.6518 GB, free: 41.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01199/0.9185, allocations: 10.7 MB / 0.6623 GB, free: 30.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001091/0.9196, allocations: 0.6912 MB / 0.6629 GB, free: 29.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003821/0.92, allocations: 103.1 kB / 0.663 GB, free: 29.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001706/0.9217, allocations: 151.8 kB / 0.6632 GB, free: 29.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004098/0.9222, allocations: 221.7 kB / 0.6634 GB, free: 29.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/0.9223, allocations: 91.94 kB / 0.6635 GB, free: 29.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001349/0.9237, allocations: 1.266 MB / 0.6647 GB, free: 27.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9237, allocations: 0 / 0.6647 GB, free: 27.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004224/0.9279, allocations: 1.798 MB / 0.6665 GB, free: 26.05 MB / 446.1 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 (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.01593/0.9439, allocations: 11.79 MB / 0.678 GB, free: 14.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01453/0.9584, allocations: 5.261 MB / 0.6831 GB, free: 9.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.9585, allocations: 4.562 kB / 0.6831 GB, free: 9.156 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004796/0.9633, allocations: 3.136 MB / 0.6862 GB, free: 6.023 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004738/0.968, allocations: 1.097 MB / 0.6873 GB, free: 4.961 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2013/1.169, allocations: 28.01 MB / 0.7146 GB, free: 152.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00172/1.171, allocations: 2.169 MB / 0.7167 GB, free: 151.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004015/1.175, allocations: 1.729 MB / 0.7184 GB, free: 151.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001503/1.177, allocations: 1.345 MB / 0.7197 GB, free: 150.4 MB / 462.1 MB Notification: Performance of SimCode: time 8.41e-07/1.177, allocations: 1.344 kB / 0.7197 GB, free: 150.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1556/1.332, allocations: 123.6 MB / 0.8405 GB, free: 44.35 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.11/17.44, allocations: 21.72 kB / 0.8405 GB, free: 44.34 MB / 462.1 MB (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)