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: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008331/0.0008332, allocations: 99.02 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008428/0.0008428, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.7 MB / 246.4 MB, free: 9.777 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001986/0.0001986, allocations: 8 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0994/0.09961, allocations: 51.53 MB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2509/0.3505, allocations: 86.79 MB / 445.4 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02927/0.3798, allocations: 20.62 MB / 466 MB, free: 24 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002226/0.3821, allocations: 107.2 kB / 466.1 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001884/0.384, allocations: 0.7803 MB / 466.9 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007984/0.392, allocations: 3.436 MB / 470.4 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01108/0.4031, allocations: 4.479 MB / 474.8 MB, free: 7.211 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009682/0.4128, allocations: 8.738 MB / 483.6 MB, free: 14.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002611/0.4154, allocations: 1.523 MB / 485.1 MB, free: 12.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4004/0.8158, allocations: 125.9 MB / 0.5967 GB, free: 31.24 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07157/0.8875, allocations: 55.04 MB / 0.6505 GB, free: 14.88 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007748/0.8883, allocations: 128 kB / 0.6506 GB, free: 14.75 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01513/0.9034, allocations: 7.985 MB / 0.6584 GB, free: 7.898 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002026/0.9055, allocations: 0.9596 MB / 0.6593 GB, free: 7.234 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001078/0.9066, allocations: 0.5331 MB / 0.6598 GB, free: 6.922 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006074/0.9127, allocations: 3.849 MB / 0.6636 GB, free: 3.781 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.146e-06/0.9127, allocations: 0 / 0.6636 GB, free: 3.781 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.9127, allocations: 2.844 kB / 0.6636 GB, free: 3.781 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.819e-05/0.9128, allocations: 0 / 0.6636 GB, free: 3.781 MB / 478.1 MB 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.007811/0.9206, allocations: 3.021 MB / 0.6665 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.9206, allocations: 8.031 kB / 0.6666 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008961/0.9215, allocations: 312.5 kB / 0.6668 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002443/0.924, allocations: 1.522 MB / 0.6683 GB, free: 15.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/0.9242, allocations: 223.2 kB / 0.6685 GB, free: 15.34 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003005/0.9245, allocations: 192.7 kB / 0.6687 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004872/0.9294, allocations: 3.283 MB / 0.6719 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.543e-05/0.9294, allocations: 13.22 kB / 0.6719 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00021/0.9297, allocations: 82.27 kB / 0.672 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002909/0.93, allocations: 252.2 kB / 0.6723 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005027/0.935, allocations: 3.102 MB / 0.6753 GB, free: 10.5 MB / 494.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.01818/0.9532, allocations: 13.81 MB / 0.6888 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003645/0.9569, allocations: 2.217 MB / 0.6909 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0019/0.9588, allocations: 1.356 MB / 0.6923 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007703/0.9665, allocations: 5.864 MB / 0.698 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.9665, allocations: 61.05 kB / 0.6981 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000708/0.9673, allocations: 188.7 kB / 0.6982 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=171): time 3.957e-06/0.9673, allocations: 0 / 0.6982 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of matching and sorting (n=197): time 0.02092/0.9882, allocations: 9.294 MB / 0.7073 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.08e-05/0.9883, allocations: 73.41 kB / 0.7074 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002392/0.9907, allocations: 1.824 MB / 0.7092 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001592/0.9909, allocations: 63.02 kB / 0.7092 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007061/0.9916, allocations: 1.056 MB / 0.7103 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005495/0.9921, allocations: 0.6792 MB / 0.7109 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.9923, allocations: 48.44 kB / 0.711 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.9925, allocations: 396 kB / 0.7113 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001804/0.9943, allocations: 1.193 MB / 0.7125 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002148/0.9964, allocations: 1.782 MB / 0.7142 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002157/0.9986, allocations: 1.451 MB / 0.7157 GB, free: 9.293 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.9986, allocations: 4 kB / 0.7157 GB, free: 9.289 MB / 0.5137 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006682/1.005, allocations: 4.214 MB / 0.7198 GB, free: 6.219 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004035/1.006, allocations: 0.6023 MB / 0.7204 GB, free: 5.391 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.411e-05/1.006, allocations: 18.41 kB / 0.7204 GB, free: 5.375 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01285/1.019, allocations: 3.664 MB / 0.724 GB, free: 1.719 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/1.02, allocations: 339.7 kB / 0.7243 GB, free: 1.41 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2121/1.232, allocations: 3.929 MB / 0.7281 GB, free: 226.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00218/1.234, allocations: 194.1 kB / 0.7283 GB, free: 226.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002401/1.235, allocations: 114 kB / 0.7284 GB, free: 226.9 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/1.235, allocations: 7.062 kB / 0.7284 GB, free: 226.9 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005933/1.24, allocations: 3.792 MB / 0.7321 GB, free: 226.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/1.241, allocations: 16.94 kB / 0.7321 GB, free: 226.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009287/1.25, allocations: 2.837 MB / 0.7349 GB, free: 225.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00149/1.251, allocations: 382 kB / 0.7353 GB, free: 225.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005209/1.257, allocations: 3.461 MB / 0.7387 GB, free: 224.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/1.259, allocations: 191.9 kB / 0.7388 GB, free: 224.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002213/1.259, allocations: 109.5 kB / 0.7389 GB, free: 224.2 MB / 0.5137 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.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 initialization (175): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.001487/1.26, allocations: 0.6964 MB / 0.7396 GB, free: 223.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004372/1.261, allocations: 227.6 kB / 0.7398 GB, free: 223.8 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007062/1.268, allocations: 3.964 MB / 0.7437 GB, free: 222.3 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.026e-05/1.268, allocations: 23.39 kB / 0.7437 GB, free: 222.3 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/1.268, allocations: 3.969 kB / 0.7437 GB, free: 222.3 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004733/1.273, allocations: 3.381 MB / 0.747 GB, free: 220.9 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008369/1.281, allocations: 6.312 MB / 0.7532 GB, free: 217.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/1.281, allocations: 0 / 0.7532 GB, free: 217.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/1.282, allocations: 319 kB / 0.7535 GB, free: 217.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003739/1.286, allocations: 1.231 MB / 0.7547 GB, free: 217.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001615/1.286, allocations: 73.88 kB / 0.7548 GB, free: 217.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0069/1.293, allocations: 10.45 MB / 0.765 GB, free: 207.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/1.293, allocations: 96 / 0.765 GB, free: 207.4 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006841/1.3, allocations: 5.19 MB / 0.7701 GB, free: 202.2 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/1.301, allocations: 0.6091 MB / 0.7707 GB, free: 201.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003432/1.301, allocations: 55.94 kB / 0.7707 GB, free: 201.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/1.303, allocations: 148.3 kB / 0.7708 GB, free: 201.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/1.303, allocations: 161.8 kB / 0.771 GB, free: 201.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001582/1.303, allocations: 83.95 kB / 0.7711 GB, free: 201.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001371/1.304, allocations: 1.245 MB / 0.7723 GB, free: 199.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.082e-06/1.304, allocations: 0 / 0.7723 GB, free: 199.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003659/1.308, allocations: 1.746 MB / 0.774 GB, free: 198.3 MB / 0.5137 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.001739/1.31, allocations: 0.9822 MB / 0.775 GB, free: 197.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008219/1.318, allocations: 4.954 MB / 0.7798 GB, free: 192.6 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/1.318, allocations: 3.969 kB / 0.7798 GB, free: 192.6 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003124/1.321, allocations: 2.239 MB / 0.782 GB, free: 190.3 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003912/1.325, allocations: 1.012 MB / 0.783 GB, free: 189.3 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007985/1.333, allocations: 6.608 MB / 0.7894 GB, free: 182.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/1.334, allocations: 1.878 MB / 0.7913 GB, free: 181 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002822/1.337, allocations: 0.9565 MB / 0.7922 GB, free: 180 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005227/1.338, allocations: 191.4 kB / 0.7924 GB, free: 179.8 MB / 0.5137 GB Notification: Performance of SimCode: time 1.663e-06/1.338, allocations: 0 / 0.7924 GB, free: 179.8 MB / 0.5137 GB Notification: Performance of Templates: time 0.07893/1.417, allocations: 70.25 MB / 0.861 GB, free: 110 MB / 0.5137 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.makefile (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 & ./Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)