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.001235/0.001235, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001487/0.001487, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2643, allocations: 50.54 MB / 409.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.08761/0.3519, allocations: 90.41 MB / 499.6 MB, free: 6.852 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03408/0.3861, allocations: 21.35 MB / 0.5088 GB, free: 1.445 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002901/0.389, allocations: 83.5 kB / 0.5089 GB, free: 1.363 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002773/0.3918, allocations: 0.9473 MB / 0.5098 GB, free: 420 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01088/0.4027, allocations: 3.802 MB / 0.5135 GB, free: 12.59 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01402/0.4168, allocations: 5.664 MB / 0.519 GB, free: 6.93 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01055/0.4273, allocations: 7.096 MB / 0.526 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00372/0.4311, allocations: 1.837 MB / 0.5278 GB, free: 13.96 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.442/0.8731, allocations: 75.03 MB / 0.601 GB, free: 11.87 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07517/0.9483, allocations: 31.94 MB / 0.6322 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001439/0.9498, allocations: 248 kB / 0.6325 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01604/0.9659, allocations: 6.121 MB / 0.6384 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.003009/0.9689, allocations: 1.086 MB / 0.6395 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.004719/0.9737, allocations: 1.499 MB / 0.641 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01204/0.9857, allocations: 5.538 MB / 0.6464 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.9858, allocations: 0 / 0.6464 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.964e-06/0.9858, allocations: 0 / 0.6464 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001671/0.9859, allocations: 4 kB / 0.6464 GB, free: 5.895 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.01105/0.997, allocations: 3.494 MB / 0.6498 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.9971, allocations: 12.03 kB / 0.6498 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001491/0.9986, allocations: 312.5 kB / 0.6501 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004035/1.003, allocations: 1.674 MB / 0.6517 GB, free: 456 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002307/1.003, allocations: 214.5 kB / 0.6519 GB, free: 240 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006814/1.004, allocations: 200.5 kB / 0.6521 GB, free: 52 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006412/1.01, allocations: 3.3 MB / 0.6553 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.654e-05/1.01, allocations: 3.281 kB / 0.6553 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002555/1.01, allocations: 87.56 kB / 0.6554 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003097/1.011, allocations: 247.8 kB / 0.6557 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005195/1.016, allocations: 3.106 MB / 0.6587 GB, free: 9.273 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.01834/1.034, allocations: 13.78 MB / 0.6722 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003947/1.038, allocations: 2.223 MB / 0.6743 GB, free: 8.582 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002121/1.04, allocations: 1.368 MB / 0.6757 GB, free: 7.219 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008115/1.048, allocations: 5.865 MB / 0.6814 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/1.048, allocations: 52.56 kB / 0.6814 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005899/1.049, allocations: 173.9 kB / 0.6816 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 3.517e-06/1.049, allocations: 0 / 0.6816 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02118/1.07, allocations: 9.156 MB / 0.6905 GB, free: 7.43 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/1.07, allocations: 73.41 kB / 0.6906 GB, free: 7.348 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002557/1.073, allocations: 1.845 MB / 0.6924 GB, free: 5.461 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001472/1.073, allocations: 61.7 kB / 0.6925 GB, free: 5.395 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008094/1.074, allocations: 1.059 MB / 0.6935 GB, free: 4.328 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006084/1.074, allocations: 0.6712 MB / 0.6942 GB, free: 3.664 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007586/1.075, allocations: 464.3 kB / 0.6946 GB, free: 3.203 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001199/1.075, allocations: 303.3 kB / 0.6949 GB, free: 2.906 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00199/1.077, allocations: 1.237 MB / 0.6961 GB, free: 1.66 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002465/1.08, allocations: 1.804 MB / 0.6979 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004516/1.084, allocations: 3.158 MB / 0.701 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/1.084, allocations: 8 kB / 0.701 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007257/1.092, allocations: 4.293 MB / 0.7052 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/1.092, allocations: 12 kB / 0.7052 GB, free: 8.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.524e-05/1.092, allocations: 19.94 kB / 0.7052 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01371/1.105, allocations: 3.637 MB / 0.7087 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/1.107, allocations: 333.7 kB / 0.7091 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006464/1.113, allocations: 3.945 MB / 0.7129 GB, free: 184 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002098/1.116, allocations: 99.16 kB / 0.713 GB, free: 88 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000273/1.116, allocations: 116 kB / 0.7131 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002893/1.119, allocations: 1.672 MB / 0.7147 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002314/1.121, allocations: 1.749 MB / 0.7165 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004266/1.125, allocations: 3.055 MB / 0.7194 GB, free: 9.078 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.015e-05/1.125, allocations: 4 kB / 0.7194 GB, free: 9.074 MB / 0.5762 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006701/1.132, allocations: 4.025 MB / 0.7234 GB, free: 5.145 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/1.132, allocations: 12 kB / 0.7234 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/1.132, allocations: 20 kB / 0.7234 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009521/1.142, allocations: 2.746 MB / 0.7261 GB, free: 2.371 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002015/1.144, allocations: 374.7 kB / 0.7264 GB, free: 2.031 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006735/1.15, allocations: 3.467 MB / 0.7298 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0023/1.153, allocations: 99.78 kB / 0.7299 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004864/1.153, allocations: 112 kB / 0.73 GB, free: 14.37 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.001117/1.154, allocations: 318.4 kB / 0.7303 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009694/1.155, allocations: 236.4 kB / 0.7306 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009501/1.165, allocations: 3.933 MB / 0.7344 GB, free: 9.902 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-05/1.165, allocations: 32 kB / 0.7344 GB, free: 9.871 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001319/1.165, allocations: 7.938 kB / 0.7344 GB, free: 9.863 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006468/1.172, allocations: 3.375 MB / 0.7377 GB, free: 6.418 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01154/1.183, allocations: 6.29 MB / 0.7439 GB, free: 100 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/1.183, allocations: 0 / 0.7439 GB, free: 100 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001684/1.185, allocations: 320.1 kB / 0.7442 GB, free: 15.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004292/1.189, allocations: 1.153 MB / 0.7453 GB, free: 14.62 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002018/1.189, allocations: 75.95 kB / 0.7454 GB, free: 14.55 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01121/1.201, allocations: 11.06 MB / 0.7562 GB, free: 2.77 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.201, allocations: 0 / 0.7562 GB, free: 2.77 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2427/1.443, allocations: 5.176 MB / 0.7612 GB, free: 282.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001499/1.445, allocations: 0.5917 MB / 0.7618 GB, free: 282.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003526/1.445, allocations: 58.38 kB / 0.7619 GB, free: 282.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/1.447, allocations: 74.92 kB / 0.7619 GB, free: 282.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004612/1.447, allocations: 168.9 kB / 0.7621 GB, free: 282.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002132/1.447, allocations: 81.08 kB / 0.7622 GB, free: 282.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001555/1.449, allocations: 1.26 MB / 0.7634 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.449, allocations: 0 / 0.7634 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003696/1.453, allocations: 1.742 MB / 0.7651 GB, free: 282.3 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.002036/1.455, allocations: 1.008 MB / 0.7661 GB, free: 282.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.009467/1.464, allocations: 5.105 MB / 0.7711 GB, free: 280.5 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/1.464, allocations: 0 / 0.7711 GB, free: 280.5 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.003949/1.468, allocations: 2.256 MB / 0.7733 GB, free: 279.4 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004337/1.472, allocations: 1.062 MB / 0.7743 GB, free: 279.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0085/1.481, allocations: 5.65 MB / 0.7798 GB, free: 276.1 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00106/1.482, allocations: 1.876 MB / 0.7817 GB, free: 274.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002495/1.485, allocations: 0.9515 MB / 0.7826 GB, free: 273.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004975/1.485, allocations: 191.4 kB / 0.7828 GB, free: 273.3 MB / 0.6075 GB Notification: Performance of SimCode: time 1.382e-06/1.485, allocations: 0 / 0.7828 GB, free: 273.3 MB / 0.6075 GB Notification: Performance of Templates: time 0.08939/1.574, allocations: 75.96 MB / 0.857 GB, free: 197.7 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)