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.0008042/0.0008042, allocations: 101.9 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001008/0.001008, allocations: 206.9 kB / 18.94 MB, free: 4.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.7 MB / 247.5 MB, free: 9.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002247/0.0002246, allocations: 8 kB / 308.4 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1269, allocations: 51.51 MB / 359.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.409/0.5359, allocations: 94.08 MB / 454 MB, free: 12.85 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04624/0.5822, allocations: 22.35 MB / 476.3 MB, free: 6.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004229/0.5865, allocations: 107.1 kB / 476.4 MB, free: 6.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003195/0.5897, allocations: 0.8199 MB / 477.2 MB, free: 5.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01122/0.6009, allocations: 3.527 MB / 480.8 MB, free: 1.977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01357/0.6145, allocations: 4.946 MB / 485.7 MB, free: 13.03 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01298/0.6275, allocations: 10.74 MB / 496.5 MB, free: 2.277 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003727/0.6313, allocations: 1.592 MB / 498 MB, free: 0.6641 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3967/1.028, allocations: 73.45 MB / 0.5581 GB, free: 41.25 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05649/1.085, allocations: 31.98 MB / 0.5893 GB, free: 30.28 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001244/1.086, allocations: 125 kB / 0.5894 GB, free: 30.28 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01246/1.098, allocations: 5.983 MB / 0.5953 GB, free: 26.01 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002116/1.101, allocations: 0.9748 MB / 0.5962 GB, free: 25.36 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003225/1.104, allocations: 1.386 MB / 0.5976 GB, free: 24.67 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006299/1.11, allocations: 3.951 MB / 0.6015 GB, free: 21.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/1.11, allocations: 4 kB / 0.6015 GB, free: 21.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.464e-06/1.11, allocations: 0 / 0.6015 GB, free: 21.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001458/1.11, allocations: 0 / 0.6015 GB, free: 21.43 MB / 446.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.007921/1.118, allocations: 3.008 MB / 0.6044 GB, free: 18.7 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/1.118, allocations: 8.031 kB / 0.6044 GB, free: 18.69 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001302/1.12, allocations: 304.6 kB / 0.6047 GB, free: 18.39 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002883/1.122, allocations: 1.58 MB / 0.6062 GB, free: 17.15 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002202/1.123, allocations: 217.6 kB / 0.6064 GB, free: 16.99 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005738/1.123, allocations: 201.1 kB / 0.6066 GB, free: 16.86 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005325/1.129, allocations: 3.302 MB / 0.6099 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.481e-05/1.129, allocations: 5.812 kB / 0.6099 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002849/1.129, allocations: 82.7 kB / 0.6099 GB, free: 14.41 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002685/1.129, allocations: 250.8 kB / 0.6102 GB, free: 14.2 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004914/1.134, allocations: 3.119 MB / 0.6132 GB, free: 12.12 MB / 446.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.01782/1.152, allocations: 13.8 MB / 0.6267 GB, free: 32 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004187/1.156, allocations: 2.234 MB / 0.6289 GB, free: 14.62 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00226/1.159, allocations: 1.357 MB / 0.6302 GB, free: 13.71 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009327/1.168, allocations: 5.874 MB / 0.6359 GB, free: 7.859 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.384e-05/1.168, allocations: 56.56 kB / 0.636 GB, free: 7.797 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009684/1.169, allocations: 185.1 kB / 0.6362 GB, free: 7.617 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 6.943e-06/1.169, allocations: 2.297 kB / 0.6362 GB, free: 7.617 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.02388/1.193, allocations: 9.21 MB / 0.6452 GB, free: 14.34 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/1.193, allocations: 81.06 kB / 0.6453 GB, free: 14.25 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002984/1.196, allocations: 1.841 MB / 0.6471 GB, free: 12.37 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002986/1.196, allocations: 57.7 kB / 0.6471 GB, free: 12.31 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007927/1.197, allocations: 1.063 MB / 0.6481 GB, free: 11.24 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000726/1.198, allocations: 0.6824 MB / 0.6488 GB, free: 10.56 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003729/1.198, allocations: 190.4 kB / 0.649 GB, free: 10.37 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.421e-05/1.198, allocations: 305.1 kB / 0.6493 GB, free: 10.07 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002215/1.201, allocations: 1.229 MB / 0.6505 GB, free: 8.84 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002794/1.203, allocations: 1.809 MB / 0.6522 GB, free: 6.797 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004851/1.208, allocations: 3.168 MB / 0.6553 GB, free: 3.457 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.892e-05/1.208, allocations: 4 kB / 0.6553 GB, free: 3.453 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007917/1.216, allocations: 4.304 MB / 0.6596 GB, free: 15.24 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004519/1.217, allocations: 0.596 MB / 0.6601 GB, free: 14.42 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.662e-05/1.217, allocations: 20 kB / 0.6602 GB, free: 14.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0143/1.231, allocations: 3.653 MB / 0.6637 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/1.233, allocations: 332.5 kB / 0.664 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00754/1.24, allocations: 3.956 MB / 0.6679 GB, free: 6.504 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002643/1.243, allocations: 187.8 kB / 0.6681 GB, free: 6.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004289/1.243, allocations: 115.4 kB / 0.6682 GB, free: 6.211 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/1.243, allocations: 6.406 kB / 0.6682 GB, free: 6.207 MB / 494.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007082/1.25, allocations: 3.814 MB / 0.6719 GB, free: 2.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.035e-05/1.25, allocations: 16 kB / 0.6719 GB, free: 2.484 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01045/1.261, allocations: 2.873 MB / 0.6747 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001825/1.263, allocations: 380.3 kB / 0.6751 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006107/1.269, allocations: 3.48 MB / 0.6785 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002503/1.271, allocations: 187.6 kB / 0.6787 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004303/1.272, allocations: 112 kB / 0.6788 GB, free: 11.52 MB / 0.4981 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.001679/1.274, allocations: 0.7058 MB / 0.6795 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006086/1.274, allocations: 229.2 kB / 0.6797 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008456/1.283, allocations: 3.97 MB / 0.6836 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.133e-05/1.283, allocations: 20 kB / 0.6836 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.181e-05/1.283, allocations: 4 kB / 0.6836 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006147/1.289, allocations: 3.388 MB / 0.6869 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01232/1.301, allocations: 6.323 MB / 0.6931 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/1.301, allocations: 0 / 0.6931 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001444/1.303, allocations: 322.9 kB / 0.6934 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00463/1.307, allocations: 1.231 MB / 0.6946 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000314/1.308, allocations: 75.94 kB / 0.6947 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009722/1.317, allocations: 10.46 MB / 0.7049 GB, free: 52 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.317, allocations: 0 / 0.7049 GB, free: 52 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01039/1.328, allocations: 5.201 MB / 0.71 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001788/1.33, allocations: 0.5993 MB / 0.7105 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007445/1.33, allocations: 55.98 kB / 0.7106 GB, free: 10.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002029/1.333, allocations: 151.7 kB / 0.7107 GB, free: 10 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004921/1.333, allocations: 169.8 kB / 0.7109 GB, free: 9.836 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002571/1.333, allocations: 79.95 kB / 0.711 GB, free: 9.758 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002349/1.336, allocations: 1.26 MB / 0.7122 GB, free: 8.477 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.31e-07/1.336, allocations: 0 / 0.7122 GB, free: 8.477 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006036/1.342, allocations: 1.742 MB / 0.7139 GB, free: 6.734 MB / 0.5294 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), (6,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003282/1.345, allocations: 1.01 MB / 0.7149 GB, free: 5.801 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01231/1.357, allocations: 5.05 MB / 0.7198 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/1.357, allocations: 4 kB / 0.7198 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.1906/1.548, allocations: 2.238 MB / 0.722 GB, free: 239.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006071/1.554, allocations: 1.011 MB / 0.723 GB, free: 239.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/1.566, allocations: 6.934 MB / 0.7298 GB, free: 237.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001747/1.568, allocations: 1.854 MB / 0.7316 GB, free: 236.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001072/1.569, allocations: 201.7 kB / 0.7318 GB, free: 236.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.212e-06/1.569, allocations: 0 / 0.7318 GB, free: 236.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.0897/1.659, allocations: 88.74 MB / 0.8184 GB, free: 163.7 MB / 0.5294 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)