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.001464/0.001465, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001688/0.001688, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.291, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.0925/0.3836, allocations: 94.24 MB / 0.4912 GB, free: 2.973 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04329/0.4269, allocations: 34.4 MB / 0.5248 GB, free: 476 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00259/0.4295, allocations: 51.69 kB / 0.5248 GB, free: 424 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003753/0.4333, allocations: 1.324 MB / 0.5261 GB, free: 15.08 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01162/0.445, allocations: 4.592 MB / 0.5306 GB, free: 10.48 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02376/0.4688, allocations: 8.73 MB / 0.5391 GB, free: 1.754 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.2789/0.7477, allocations: 6.206 MB / 0.5452 GB, free: 12.06 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003356/0.7511, allocations: 2.012 MB / 0.5472 GB, free: 11.91 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01345/0.7645, allocations: 5.825 MB / 0.5529 GB, free: 10.97 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005459/0.77, allocations: 2.151 MB / 0.555 GB, free: 10.96 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00136/0.7714, allocations: 256.3 kB / 0.5552 GB, free: 10.96 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0185/0.79, allocations: 9.162 MB / 0.5641 GB, free: 10.95 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001711/0.7917, allocations: 0.8531 MB / 0.565 GB, free: 10.95 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002959/0.7947, allocations: 1.36 MB / 0.5663 GB, free: 10.67 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02287/0.8176, allocations: 8.703 MB / 0.5748 GB, free: 10.02 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.8176, allocations: 3.375 kB / 0.5748 GB, free: 10.02 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.8176, allocations: 0 / 0.5748 GB, free: 10.02 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001155/0.8178, allocations: 0 / 0.5748 GB, free: 10.02 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.009911/0.8277, allocations: 3.535 MB / 0.5783 GB, free: 24.39 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.8277, allocations: 8.938 kB / 0.5783 GB, free: 24.39 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003763/0.8281, allocations: 289.3 kB / 0.5785 GB, free: 24.34 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01075/0.8389, allocations: 1.226 MB / 0.5797 GB, free: 24.2 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003249/0.8422, allocations: 1.411 MB / 0.5811 GB, free: 23.77 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003031/0.8425, allocations: 351 kB / 0.5815 GB, free: 23.57 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005655/0.8431, allocations: 187.8 kB / 0.5816 GB, free: 23.57 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007996/0.8511, allocations: 3.42 MB / 0.585 GB, free: 22.78 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.394e-05/0.8512, allocations: 9.734 kB / 0.585 GB, free: 22.78 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002637/0.8514, allocations: 84.19 kB / 0.5851 GB, free: 22.78 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001171/0.8516, allocations: 106.2 kB / 0.5852 GB, free: 22.76 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008425/0.86, allocations: 3.405 MB / 0.5885 GB, free: 22.01 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.02222/0.8823, allocations: 14.37 MB / 0.6025 GB, free: 9.84 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00708/0.8894, allocations: 2.808 MB / 0.6053 GB, free: 7.922 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002608/0.892, allocations: 1.427 MB / 0.6067 GB, free: 7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05011/0.9421, allocations: 26.94 MB / 0.633 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.401e-05/0.9422, allocations: 59.98 kB / 0.633 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002053/0.9443, allocations: 328.6 kB / 0.6333 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=175): time 9.287e-06/0.9443, allocations: 4 kB / 0.6333 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of matching and sorting (n=205): time 0.04199/0.9863, allocations: 12.02 MB / 0.6451 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.9865, allocations: 150.5 kB / 0.6452 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002415/0.9889, allocations: 1.416 MB / 0.6466 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004459/0.9894, allocations: 61.7 kB / 0.6467 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006953/0.9901, allocations: 0.8027 MB / 0.6475 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009033/0.991, allocations: 0.7082 MB / 0.6481 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001047/0.9921, allocations: 447.8 kB / 0.6486 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.683e-05/0.9922, allocations: 305.1 kB / 0.6489 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002648/0.9948, allocations: 1.269 MB / 0.6501 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002927/0.9978, allocations: 1.7 MB / 0.6518 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005601/1.003, allocations: 2.922 MB / 0.6546 GB, free: 5.281 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-05/1.003, allocations: 4 kB / 0.6546 GB, free: 5.277 MB / 0.5137 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.009242/1.013, allocations: 3.945 MB / 0.6585 GB, free: 1.371 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.83e-05/1.013, allocations: 12 kB / 0.6585 GB, free: 1.359 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-05/1.013, allocations: 22.91 kB / 0.6585 GB, free: 1.344 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00503/1.018, allocations: 1.577 MB / 0.66 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002512/1.02, allocations: 456.6 kB / 0.6605 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007839/1.028, allocations: 6.698 MB / 0.667 GB, free: 8.422 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00281/1.031, allocations: 128.1 kB / 0.6671 GB, free: 8.297 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005774/1.032, allocations: 115.9 kB / 0.6673 GB, free: 8.184 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.001773/1.034, allocations: 0.507 MB / 0.6677 GB, free: 7.691 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009325/1.034, allocations: 206.7 kB / 0.6679 GB, free: 7.488 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01645/1.051, allocations: 9.833 MB / 0.6775 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.175e-05/1.051, allocations: 103.8 kB / 0.6776 GB, free: 13.47 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.979e-05/1.051, allocations: 0 / 0.6776 GB, free: 13.47 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.241e-05/1.051, allocations: 11.95 kB / 0.6777 GB, free: 13.46 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02129/1.072, allocations: 13.25 MB / 0.6906 GB, free: 136 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.812e-05/1.072, allocations: 0 / 0.6906 GB, free: 136 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001962/1.074, allocations: 364.5 kB / 0.6909 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00541/1.08, allocations: 2.945 MB / 0.6938 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004523/1.08, allocations: 71.91 kB / 0.6939 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008455/1.089, allocations: 8.772 MB / 0.7025 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/1.089, allocations: 3.75 kB / 0.7025 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01814/1.107, allocations: 10.71 MB / 0.7129 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00179/1.109, allocations: 0.7125 MB / 0.7136 GB, free: 8.207 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008998/1.11, allocations: 103.4 kB / 0.7137 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002299/1.112, allocations: 143.8 kB / 0.7138 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007357/1.113, allocations: 221.7 kB / 0.7141 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003766/1.113, allocations: 91.94 kB / 0.7141 GB, free: 7.656 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002532/1.116, allocations: 1.274 MB / 0.7154 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.7e-07/1.116, allocations: 0 / 0.7154 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007781/1.124, allocations: 1.806 MB / 0.7172 GB, free: 4.555 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.02471/1.148, allocations: 11.82 MB / 0.7287 GB, free: 8.785 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01038/1.159, allocations: 4.223 MB / 0.7328 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/1.159, allocations: 0.5625 kB / 0.7328 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006916/1.166, allocations: 3.134 MB / 0.7359 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006452/1.172, allocations: 1.097 MB / 0.737 GB, free: 440 kB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2715/1.444, allocations: 25.65 MB / 0.762 GB, free: 273.1 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/1.445, allocations: 2.168 MB / 0.7641 GB, free: 272.3 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.00262/1.448, allocations: 1.745 MB / 0.7658 GB, free: 272.3 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/1.449, allocations: 1.341 MB / 0.7671 GB, free: 271.2 MB / 0.6075 GB Notification: Performance of SimCode: time 1.152e-06/1.449, allocations: 0 / 0.7671 GB, free: 271.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1602/1.609, allocations: 124.5 MB / 0.8887 GB, free: 156.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.17/22.78, allocations: 10.11 kB / 0.8887 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)