Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.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.HeatingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001185/0.001185, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 198 kB / 18.73 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.424/1.424, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2766, allocations: 50.54 MB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.09006/0.3667, allocations: 90.42 MB / 499.2 MB, free: 6.848 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03196/0.3987, allocations: 21.34 MB / 0.5083 GB, free: 1.453 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003445/0.4022, allocations: 91.5 kB / 0.5084 GB, free: 1.363 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002949/0.4052, allocations: 0.9434 MB / 0.5093 GB, free: 424 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.012/0.4172, allocations: 3.787 MB / 0.513 GB, free: 12.61 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01458/0.4318, allocations: 5.683 MB / 0.5186 GB, free: 6.926 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01045/0.4423, allocations: 7.089 MB / 0.5255 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003677/0.446, allocations: 1.845 MB / 0.5273 GB, free: 13.95 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4419/0.888, allocations: 75.03 MB / 0.6006 GB, free: 11.99 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0735/0.9615, allocations: 31.95 MB / 0.6317 GB, free: 1.043 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001447/0.963, allocations: 248 kB / 0.632 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01624/0.9793, allocations: 6.119 MB / 0.638 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.002509/0.9818, allocations: 1.086 MB / 0.639 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.003895/0.9857, allocations: 1.502 MB / 0.6405 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0124/0.9982, allocations: 5.561 MB / 0.6459 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.9982, allocations: 0 / 0.6459 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.633e-06/0.9982, allocations: 0 / 0.6459 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001417/0.9984, allocations: 0 / 0.6459 GB, free: 5.883 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01077/1.009, allocations: 3.594 MB / 0.6494 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/1.009, allocations: 8.031 kB / 0.6494 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009737/1.01, allocations: 344.5 kB / 0.6498 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001454/1.012, allocations: 329.5 kB / 0.6501 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003987/1.016, allocations: 1.688 MB / 0.6517 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002314/1.016, allocations: 222.8 kB / 0.6519 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000605/1.017, allocations: 202 kB / 0.6521 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006433/1.023, allocations: 3.31 MB / 0.6554 GB, free: 12.17 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.41e-05/1.023, allocations: 8.25 kB / 0.6554 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004205/1.024, allocations: 84.03 kB / 0.6555 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003476/1.024, allocations: 251 kB / 0.6557 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006096/1.03, allocations: 3.11 MB / 0.6587 GB, free: 8.762 MB / 0.5137 GB 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.02295/1.053, allocations: 13.83 MB / 0.6722 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004544/1.058, allocations: 2.221 MB / 0.6744 GB, free: 8.039 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002427/1.06, allocations: 1.371 MB / 0.6757 GB, free: 6.676 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01041/1.07, allocations: 5.862 MB / 0.6815 GB, free: 348 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.756e-05/1.071, allocations: 52.56 kB / 0.6815 GB, free: 288 kB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001001/1.072, allocations: 178.4 kB / 0.6817 GB, free: 112 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 7.134e-06/1.072, allocations: 4 kB / 0.6817 GB, free: 108 kB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02663/1.098, allocations: 9.193 MB / 0.6907 GB, free: 6.855 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/1.098, allocations: 69.41 kB / 0.6907 GB, free: 6.777 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003246/1.102, allocations: 1.841 MB / 0.6925 GB, free: 4.895 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003824/1.102, allocations: 61.7 kB / 0.6926 GB, free: 4.828 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009301/1.103, allocations: 1.093 MB / 0.6937 GB, free: 3.73 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009672/1.104, allocations: 0.7142 MB / 0.6944 GB, free: 3.027 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001034/1.105, allocations: 460.5 kB / 0.6948 GB, free: 2.57 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.286e-05/1.105, allocations: 305.1 kB / 0.6951 GB, free: 2.27 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002188/1.107, allocations: 1.232 MB / 0.6963 GB, free: 1.031 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002815/1.11, allocations: 1.807 MB / 0.6981 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005034/1.115, allocations: 3.158 MB / 0.7011 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.728e-05/1.115, allocations: 4 kB / 0.7011 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007893/1.123, allocations: 4.309 MB / 0.7053 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.552e-05/1.123, allocations: 15.12 kB / 0.7054 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.785e-05/1.123, allocations: 24 kB / 0.7054 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01381/1.137, allocations: 3.63 MB / 0.7089 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/1.138, allocations: 337.6 kB / 0.7093 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006885/1.145, allocations: 3.947 MB / 0.7131 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002138/1.147, allocations: 99.78 kB / 0.7132 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000345/1.148, allocations: 112 kB / 0.7133 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003001/1.151, allocations: 1.676 MB / 0.7149 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002401/1.153, allocations: 1.752 MB / 0.7167 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004453/1.158, allocations: 3.051 MB / 0.7196 GB, free: 8.434 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.386e-05/1.158, allocations: 8 kB / 0.7196 GB, free: 8.426 MB / 0.5762 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007017/1.165, allocations: 4.041 MB / 0.7236 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/1.165, allocations: 15.94 kB / 0.7236 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.723e-05/1.165, allocations: 16 kB / 0.7236 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009471/1.174, allocations: 2.745 MB / 0.7263 GB, free: 1.711 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/1.176, allocations: 375.9 kB / 0.7267 GB, free: 1.367 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005903/1.182, allocations: 3.473 MB / 0.7301 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002219/1.184, allocations: 95.94 kB / 0.7301 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003392/1.185, allocations: 108 kB / 0.7302 GB, free: 13.71 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 4 (tank.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.0007709/1.185, allocations: 320.4 kB / 0.7306 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006662/1.186, allocations: 238.5 kB / 0.7308 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008855/1.195, allocations: 3.937 MB / 0.7346 GB, free: 9.23 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.603e-05/1.195, allocations: 31.98 kB / 0.7347 GB, free: 9.199 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.912e-05/1.195, allocations: 0 / 0.7347 GB, free: 9.199 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006379/1.201, allocations: 3.37 MB / 0.7379 GB, free: 5.75 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01193/1.213, allocations: 6.294 MB / 0.7441 GB, free: 15.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/1.213, allocations: 0 / 0.7441 GB, free: 15.43 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/1.215, allocations: 320.2 kB / 0.7444 GB, free: 15.13 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004034/1.219, allocations: 1.16 MB / 0.7455 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002989/1.219, allocations: 71.95 kB / 0.7456 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00966/1.229, allocations: 11.08 MB / 0.7564 GB, free: 2.086 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/1.229, allocations: 0 / 0.7564 GB, free: 2.086 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2225/1.452, allocations: 5.192 MB / 0.7615 GB, free: 282.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002082/1.454, allocations: 0.6113 MB / 0.7621 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006176/1.454, allocations: 54.62 kB / 0.7621 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001477/1.456, allocations: 73.22 kB / 0.7622 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003495/1.456, allocations: 175.6 kB / 0.7624 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000171/1.456, allocations: 80.47 kB / 0.7625 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001568/1.458, allocations: 1.262 MB / 0.7637 GB, free: 282 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.2e-07/1.458, allocations: 0 / 0.7637 GB, free: 282 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00452/1.462, allocations: 1.752 MB / 0.7654 GB, free: 281.9 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (2,8), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01017/1.473, allocations: 6.672 MB / 0.7719 GB, free: 279.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01022/1.483, allocations: 5.11 MB / 0.7769 GB, free: 277.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/1.483, allocations: 0 / 0.7769 GB, free: 277.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.003587/1.487, allocations: 2.246 MB / 0.7791 GB, free: 275.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004497/1.491, allocations: 1.068 MB / 0.7801 GB, free: 274.7 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03138/1.522, allocations: 24.27 MB / 0.8038 GB, free: 250.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001149/1.524, allocations: 1.875 MB / 0.8057 GB, free: 248.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.00247/1.526, allocations: 0.9565 MB / 0.8066 GB, free: 247.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/1.527, allocations: 1.003 MB / 0.8076 GB, free: 246.5 MB / 0.6075 GB Notification: Performance of SimCode: time 6.21e-07/1.527, allocations: 0 / 0.8076 GB, free: 246.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.136/1.663, allocations: 98.89 MB / 0.9042 GB, free: 147.9 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.25/18.91, allocations: 7.375 kB / 0.9042 GB, free: 147.9 MB / 0.6075 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem_res.csv --start-time 0 --stop-time 6000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.4 Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)