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.001105/0.001105, 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.001266/0.001266, 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.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001054/0.001054, allocations: 59.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2417, allocations: 50.55 MB / 409.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.0848/0.3266, allocations: 90.41 MB / 499.6 MB, free: 6.898 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02935/0.356, allocations: 21.35 MB / 0.5088 GB, free: 1.492 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002215/0.3582, allocations: 87.44 kB / 0.5089 GB, free: 1.406 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002509/0.3607, allocations: 0.9395 MB / 0.5098 GB, free: 472 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009384/0.3702, allocations: 3.74 MB / 0.5134 GB, free: 12.7 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01263/0.3828, allocations: 5.672 MB / 0.519 GB, free: 7.031 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.009492/0.3923, allocations: 7.069 MB / 0.5259 GB, free: 15.94 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003428/0.3958, allocations: 1.844 MB / 0.5277 GB, free: 14.07 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4202/0.816, allocations: 74.95 MB / 0.6009 GB, free: 12.02 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06893/0.885, allocations: 31.94 MB / 0.6321 GB, free: 1.082 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009332/0.8859, allocations: 250.7 kB / 0.6323 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01454/0.9005, allocations: 6.124 MB / 0.6383 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.002017/0.9025, allocations: 1.09 MB / 0.6393 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002264/0.9048, allocations: 1.496 MB / 0.6408 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01219/0.917, allocations: 5.556 MB / 0.6462 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.9171, allocations: 7.844 kB / 0.6462 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.974e-06/0.9171, allocations: 0 / 0.6462 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.027e-05/0.9172, allocations: 0 / 0.6462 GB, free: 5.973 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.008694/0.9259, allocations: 3.593 MB / 0.6498 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.9259, allocations: 12.03 kB / 0.6498 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009542/0.9269, allocations: 322.2 kB / 0.6501 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002693/0.9296, allocations: 1.692 MB / 0.6517 GB, free: 400 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/0.9298, allocations: 212.5 kB / 0.6519 GB, free: 184 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003184/0.9301, allocations: 202.3 kB / 0.6521 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004907/0.935, allocations: 3.297 MB / 0.6553 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.939e-05/0.9351, allocations: 7.094 kB / 0.6553 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002254/0.9353, allocations: 80.98 kB / 0.6554 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002959/0.9356, allocations: 254.9 kB / 0.6557 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005015/0.9406, allocations: 3.105 MB / 0.6587 GB, free: 9.211 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.01754/0.9582, allocations: 13.81 MB / 0.6722 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004554/0.9628, allocations: 2.213 MB / 0.6743 GB, free: 8.523 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002454/0.9653, allocations: 1.376 MB / 0.6757 GB, free: 7.152 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009313/0.9746, allocations: 5.851 MB / 0.6814 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.9747, allocations: 60.5 kB / 0.6815 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006856/0.9754, allocations: 178.5 kB / 0.6816 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 3.717e-06/0.9754, allocations: 0 / 0.6816 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02109/0.9965, allocations: 9.198 MB / 0.6906 GB, free: 7.332 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.9966, allocations: 73.25 kB / 0.6907 GB, free: 7.254 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002828/0.9994, allocations: 1.849 MB / 0.6925 GB, free: 5.363 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001694/0.9996, allocations: 61.7 kB / 0.6926 GB, free: 5.297 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007941/1, allocations: 1.081 MB / 0.6936 GB, free: 4.211 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006081/1.001, allocations: 0.7172 MB / 0.6943 GB, free: 3.504 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007961/1.002, allocations: 460.5 kB / 0.6947 GB, free: 3.047 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.582e-05/1.002, allocations: 305.1 kB / 0.695 GB, free: 2.746 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002023/1.004, allocations: 1.233 MB / 0.6962 GB, free: 1.504 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002442/1.006, allocations: 1.803 MB / 0.698 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004543/1.011, allocations: 3.161 MB / 0.7011 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.217e-05/1.011, allocations: 4 kB / 0.7011 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007198/1.018, allocations: 4.3 MB / 0.7053 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.017e-05/1.018, allocations: 15.94 kB / 0.7053 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.93e-05/1.018, allocations: 16 kB / 0.7053 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01339/1.032, allocations: 3.631 MB / 0.7089 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/1.033, allocations: 328.3 kB / 0.7092 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006467/1.039, allocations: 3.96 MB / 0.713 GB, free: 20 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002181/1.042, allocations: 97.73 kB / 0.7131 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003685/1.042, allocations: 116 kB / 0.7133 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003327/1.045, allocations: 1.668 MB / 0.7149 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00252/1.048, allocations: 1.755 MB / 0.7166 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004639/1.053, allocations: 3.045 MB / 0.7196 GB, free: 8.926 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.752e-05/1.053, allocations: 8 kB / 0.7196 GB, free: 8.918 MB / 0.5762 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006924/1.06, allocations: 4.046 MB / 0.7235 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/1.06, allocations: 14.66 kB / 0.7235 GB, free: 4.957 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-05/1.06, allocations: 16 kB / 0.7236 GB, free: 4.941 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009643/1.069, allocations: 2.746 MB / 0.7262 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001697/1.071, allocations: 380.3 kB / 0.7266 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005704/1.077, allocations: 3.466 MB / 0.73 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002244/1.079, allocations: 91.89 kB / 0.7301 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003907/1.079, allocations: 121.3 kB / 0.7302 GB, free: 14.19 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.0008013/1.08, allocations: 319.3 kB / 0.7305 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007597/1.081, allocations: 234.5 kB / 0.7307 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008463/1.089, allocations: 3.946 MB / 0.7346 GB, free: 9.711 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.303e-05/1.09, allocations: 20 kB / 0.7346 GB, free: 9.691 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.684e-05/1.09, allocations: 4 kB / 0.7346 GB, free: 9.688 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005904/1.095, allocations: 3.38 MB / 0.7379 GB, free: 6.23 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01215/1.108, allocations: 6.293 MB / 0.744 GB, free: 15.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/1.108, allocations: 0 / 0.744 GB, free: 15.91 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001432/1.109, allocations: 322.8 kB / 0.7443 GB, free: 15.61 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004078/1.113, allocations: 1.167 MB / 0.7455 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002801/1.114, allocations: 71.95 kB / 0.7456 GB, free: 14.36 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009729/1.123, allocations: 11.06 MB / 0.7564 GB, free: 2.586 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/1.123, allocations: 3.984 kB / 0.7564 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2536/1.377, allocations: 5.197 MB / 0.7614 GB, free: 282.1 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001744/1.379, allocations: 0.6049 MB / 0.762 GB, free: 282 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003891/1.379, allocations: 53.73 kB / 0.7621 GB, free: 282 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/1.38, allocations: 73 kB / 0.7621 GB, free: 282 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004586/1.381, allocations: 168.6 kB / 0.7623 GB, free: 282 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001969/1.381, allocations: 85.11 kB / 0.7624 GB, free: 282 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001514/1.383, allocations: 1.26 MB / 0.7636 GB, free: 281.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.383, allocations: 0 / 0.7636 GB, free: 281.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.004094/1.387, allocations: 1.753 MB / 0.7653 GB, free: 281.7 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.002223/1.389, allocations: 1.022 MB / 0.7663 GB, free: 281.5 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.009299/1.398, allocations: 5.117 MB / 0.7713 GB, free: 279.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/1.398, allocations: 3.844 kB / 0.7713 GB, free: 279.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.003559/1.402, allocations: 2.248 MB / 0.7735 GB, free: 278.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004456/1.406, allocations: 1.054 MB / 0.7746 GB, free: 278.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008273/1.415, allocations: 5.739 MB / 0.7802 GB, free: 275.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001266/1.416, allocations: 1.869 MB / 0.782 GB, free: 273.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002976/1.419, allocations: 0.9539 MB / 0.7829 GB, free: 272.6 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005415/1.419, allocations: 199.4 kB / 0.7831 GB, free: 272.4 MB / 0.6075 GB Notification: Performance of SimCode: time 1.483e-06/1.42, allocations: 0 / 0.7831 GB, free: 272.4 MB / 0.6075 GB Notification: Performance of Templates: time 0.08453/1.504, allocations: 75.96 MB / 0.8573 GB, free: 196.8 MB / 0.6075 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)