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.001197/0.001203, allocations: 117.6 kB / 17.78 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.001277/0.001277, allocations: 203.9 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 55.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2706, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MeasuringTemperature): time 0.08819/0.3588, allocations: 94.25 MB / 0.4912 GB, free: 2.977 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03919/0.3981, allocations: 34.39 MB / 0.5248 GB, free: 484 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002451/0.4006, allocations: 51.75 kB / 0.5248 GB, free: 432 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003708/0.4043, allocations: 1.32 MB / 0.5261 GB, free: 15.09 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01356/0.4179, allocations: 4.592 MB / 0.5306 GB, free: 10.49 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02489/0.4428, allocations: 8.746 MB / 0.5392 GB, free: 1.75 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.2872/0.7301, allocations: 6.206 MB / 0.5452 GB, free: 11.96 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003206/0.7333, allocations: 2.003 MB / 0.5472 GB, free: 11.8 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01161/0.745, allocations: 5.819 MB / 0.5529 GB, free: 10.87 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003746/0.7487, allocations: 2.167 MB / 0.555 GB, free: 10.86 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000794/0.7496, allocations: 256.8 kB / 0.5552 GB, free: 10.86 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01688/0.7664, allocations: 9.156 MB / 0.5642 GB, free: 10.85 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001526/0.768, allocations: 0.8529 MB / 0.565 GB, free: 10.85 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002302/0.7703, allocations: 1.357 MB / 0.5663 GB, free: 10.57 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01808/0.7884, allocations: 8.706 MB / 0.5748 GB, free: 9.914 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.7885, allocations: 0 / 0.5748 GB, free: 9.914 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.7885, allocations: 0 / 0.5748 GB, free: 9.914 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.566e-05/0.7886, allocations: 0 / 0.5748 GB, free: 9.914 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.009934/0.7985, allocations: 3.54 MB / 0.5783 GB, free: 24.29 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.7986, allocations: 13.69 kB / 0.5783 GB, free: 24.29 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003857/0.799, allocations: 276.2 kB / 0.5785 GB, free: 24.24 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01099/0.81, allocations: 1.224 MB / 0.5797 GB, free: 24.1 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003094/0.8131, allocations: 1.417 MB / 0.5811 GB, free: 23.67 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002498/0.8134, allocations: 350.3 kB / 0.5815 GB, free: 23.48 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004404/0.8138, allocations: 185.6 kB / 0.5816 GB, free: 23.47 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008122/0.8219, allocations: 3.419 MB / 0.585 GB, free: 22.77 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.165e-05/0.822, allocations: 10.73 kB / 0.585 GB, free: 22.76 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002987/0.8223, allocations: 87.23 kB / 0.5851 GB, free: 22.76 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001175/0.8225, allocations: 99.86 kB / 0.5852 GB, free: 22.75 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008508/0.831, allocations: 3.402 MB / 0.5885 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.02003/0.851, allocations: 14.37 MB / 0.6025 GB, free: 9.797 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00721/0.8583, allocations: 2.807 MB / 0.6053 GB, free: 7.879 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00266/0.861, allocations: 1.425 MB / 0.6067 GB, free: 6.961 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05172/0.9127, allocations: 26.94 MB / 0.633 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.73e-05/0.9128, allocations: 59.94 kB / 0.633 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00202/0.9148, allocations: 334.3 kB / 0.6333 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=175): time 8.466e-06/0.9149, allocations: 0 / 0.6333 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of matching and sorting (n=205): time 0.04038/0.9553, allocations: 12.02 MB / 0.6451 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.891e-05/0.9554, allocations: 154.5 kB / 0.6452 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00188/0.9573, allocations: 1.408 MB / 0.6466 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004952/0.9578, allocations: 65.7 kB / 0.6467 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005874/0.9584, allocations: 0.7999 MB / 0.6474 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007579/0.9591, allocations: 0.7106 MB / 0.6481 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007851/0.9599, allocations: 451.8 kB / 0.6486 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.644e-05/0.9601, allocations: 305.1 kB / 0.6489 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002703/0.9628, allocations: 1.265 MB / 0.6501 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003139/0.9659, allocations: 1.709 MB / 0.6518 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00571/0.9717, allocations: 2.918 MB / 0.6546 GB, free: 5.285 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/0.9717, allocations: 7.75 kB / 0.6546 GB, free: 5.281 MB / 0.5137 GB Notification: Performance of matching and sorting (n=272) (initialization): time 0.008424/0.9801, allocations: 3.951 MB / 0.6585 GB, free: 1.367 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.9802, allocations: 8 kB / 0.6585 GB, free: 1.359 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/0.9802, allocations: 12 kB / 0.6585 GB, free: 1.348 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004701/0.9849, allocations: 1.564 MB / 0.66 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002197/0.9872, allocations: 456.3 kB / 0.6605 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006216/0.9934, allocations: 6.704 MB / 0.667 GB, free: 8.426 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002547/0.996, allocations: 123.9 kB / 0.6671 GB, free: 8.305 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003236/0.9963, allocations: 115.9 kB / 0.6672 GB, free: 8.191 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.001143/0.9975, allocations: 0.5137 MB / 0.6677 GB, free: 7.695 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005616/0.9981, allocations: 210.5 kB / 0.6679 GB, free: 7.492 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01444/1.013, allocations: 9.822 MB / 0.6775 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.637e-05/1.013, allocations: 107.8 kB / 0.6776 GB, free: 13.47 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-05/1.013, allocations: 11.97 kB / 0.6776 GB, free: 13.46 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.683e-05/1.013, allocations: 11.81 kB / 0.6777 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01918/1.032, allocations: 13.25 MB / 0.6906 GB, free: 128 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-05/1.032, allocations: 0 / 0.6906 GB, free: 128 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00197/1.034, allocations: 365.1 kB / 0.6909 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005213/1.039, allocations: 2.936 MB / 0.6938 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003821/1.04, allocations: 71.89 kB / 0.6939 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00808/1.048, allocations: 8.774 MB / 0.7024 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/1.048, allocations: 0 / 0.7024 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01566/1.063, allocations: 10.72 MB / 0.7129 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001593/1.065, allocations: 0.7164 MB / 0.7136 GB, free: 8.203 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005138/1.066, allocations: 99.41 kB / 0.7137 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00185/1.067, allocations: 143.8 kB / 0.7138 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00048/1.068, allocations: 221.7 kB / 0.7141 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001877/1.068, allocations: 91.95 kB / 0.7141 GB, free: 7.656 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001707/1.07, allocations: 1.273 MB / 0.7154 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.21e-07/1.07, allocations: 0 / 0.7154 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004986/1.075, allocations: 1.806 MB / 0.7171 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.02054/1.095, allocations: 11.82 MB / 0.7287 GB, free: 8.789 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.009108/1.105, allocations: 4.234 MB / 0.7328 GB, free: 4.59 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/1.105, allocations: 4.562 kB / 0.7328 GB, free: 4.586 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006198/1.111, allocations: 3.126 MB / 0.7359 GB, free: 1.496 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005233/1.116, 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.251/1.367, allocations: 25.66 MB / 0.762 GB, free: 272.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001406/1.368, allocations: 2.171 MB / 0.7641 GB, free: 272.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002716/1.371, allocations: 1.744 MB / 0.7658 GB, free: 272.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001659/1.373, allocations: 1.338 MB / 0.7671 GB, free: 271 MB / 0.6075 GB Notification: Performance of SimCode: time 1.573e-06/1.373, allocations: 0 / 0.7671 GB, free: 271 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1531/1.526, allocations: 124.5 MB / 0.8887 GB, free: 156.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.25/22.78, allocations: 2.062 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)