Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001009/0.001009, allocations: 198.9 kB / 17.05 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.213/1.213, allocations: 226.5 MB / 244.3 MB, free: 6.582 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009734/0.0009737, allocations: 107.5 kB / 296.4 MB, free: 6.766 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000207/0.0002071, allocations: 4 kB / 356.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.184, allocations: 51.29 MB / 407.5 MB, free: 27.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.07221/0.2563, allocations: 86.61 MB / 494.1 MB, free: 4.953 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02746/0.2838, allocations: 20.57 MB / 0.5026 GB, free: 352 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002661/0.2865, allocations: 107.1 kB / 0.5027 GB, free: 244 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1738/0.4603, allocations: 0.7715 MB / 0.5035 GB, free: 5.637 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008021/0.4683, allocations: 3.442 MB / 0.5068 GB, free: 5.602 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009155/0.4775, allocations: 4.441 MB / 0.5112 GB, free: 5.516 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009088/0.4866, allocations: 8.733 MB / 0.5197 GB, free: 5.512 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002399/0.489, allocations: 1.511 MB / 0.5212 GB, free: 5.375 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1504/0.6394, allocations: 125.9 MB / 0.6441 GB, free: 15.2 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2457/0.8851, allocations: 55.04 MB / 0.6979 GB, free: 148.9 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0006295/0.8858, allocations: 124.7 kB / 0.698 GB, free: 148.9 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01159/0.8974, allocations: 7.975 MB / 0.7058 GB, free: 148.9 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.001024/0.8984, allocations: 0.9626 MB / 0.7067 GB, free: 148.9 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.000935/0.8994, allocations: 0.5302 MB / 0.7073 GB, free: 148.9 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.00419/0.9036, allocations: 3.853 MB / 0.711 GB, free: 148.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.9036, allocations: 1.969 kB / 0.711 GB, free: 148.7 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9036, allocations: 0 / 0.711 GB, free: 148.7 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.753e-05/0.9037, allocations: 0 / 0.711 GB, free: 148.7 MB / 0.5105 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.006087/0.9098, allocations: 3.024 MB / 0.714 GB, free: 147.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.9098, allocations: 10.19 kB / 0.714 GB, free: 147.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007384/0.9105, allocations: 305.5 kB / 0.7143 GB, free: 147.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002037/0.9126, allocations: 1.529 MB / 0.7158 GB, free: 146.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.9127, allocations: 216.8 kB / 0.716 GB, free: 146.6 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002596/0.913, allocations: 194.5 kB / 0.7162 GB, free: 146.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003984/0.917, allocations: 3.289 MB / 0.7194 GB, free: 146 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.116e-05/0.917, allocations: 5.5 kB / 0.7194 GB, free: 146 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002067/0.9173, allocations: 81.33 kB / 0.7195 GB, free: 146 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002377/0.9175, allocations: 254.5 kB / 0.7197 GB, free: 146 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00397/0.9215, allocations: 3.102 MB / 0.7227 GB, free: 145.5 MB / 0.5105 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.01338/0.9349, allocations: 13.8 MB / 0.7362 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003103/0.938, allocations: 2.225 MB / 0.7384 GB, free: 134.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001591/0.9396, allocations: 1.355 MB / 0.7397 GB, free: 134 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006233/0.9458, allocations: 5.874 MB / 0.7454 GB, free: 128.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.9459, allocations: 51.25 kB / 0.7455 GB, free: 128.8 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006113/0.9465, allocations: 187.4 kB / 0.7457 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=171): time 3.296e-06/0.9465, allocations: 0 / 0.7457 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=197): time 0.01844/0.965, allocations: 9.284 MB / 0.7547 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.833e-05/0.965, allocations: 73.41 kB / 0.7548 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001795/0.9668, allocations: 1.833 MB / 0.7566 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001705/0.967, allocations: 63.2 kB / 0.7567 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004866/0.9675, allocations: 1.062 MB / 0.7577 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003739/0.9679, allocations: 0.6788 MB / 0.7584 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.968, allocations: 43.06 kB / 0.7584 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.378e-05/0.9681, allocations: 401.3 kB / 0.7588 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001514/0.9696, allocations: 1.191 MB / 0.7599 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001692/0.9713, allocations: 1.777 MB / 0.7617 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.9731, allocations: 1.459 MB / 0.7631 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/0.9731, allocations: 4 kB / 0.7631 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.005383/0.9785, allocations: 4.212 MB / 0.7672 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001909/0.9787, allocations: 0.6058 MB / 0.7678 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/0.9787, allocations: 20 kB / 0.7678 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.012/0.9907, allocations: 3.656 MB / 0.7714 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/0.9919, allocations: 332.5 kB / 0.7717 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00504/0.997, allocations: 3.943 MB / 0.7756 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00207/0.9991, allocations: 182.6 kB / 0.7757 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001967/0.9993, allocations: 119.1 kB / 0.7759 GB, free: 105 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.318e-06/0.9993, allocations: 4 kB / 0.7759 GB, free: 105 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005003/1.004, allocations: 3.796 MB / 0.7796 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.327e-05/1.004, allocations: 16 kB / 0.7796 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008263/1.013, allocations: 2.844 MB / 0.7824 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/1.014, allocations: 373.6 kB / 0.7827 GB, free: 99.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004122/1.018, allocations: 3.466 MB / 0.7861 GB, free: 97.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001987/1.02, allocations: 190 kB / 0.7863 GB, free: 97.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001836/1.02, allocations: 111.3 kB / 0.7864 GB, free: 97.07 MB / 0.5105 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.001097/1.021, allocations: 0.7003 MB / 0.7871 GB, free: 96.59 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003002/1.022, allocations: 225.3 kB / 0.7873 GB, free: 96.37 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006072/1.028, allocations: 3.964 MB / 0.7912 GB, free: 93.64 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.957e-05/1.028, allocations: 22.12 kB / 0.7912 GB, free: 93.62 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/1.028, allocations: 8 kB / 0.7912 GB, free: 93.61 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004563/1.032, allocations: 3.379 MB / 0.7945 GB, free: 91.14 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008649/1.041, allocations: 6.304 MB / 0.8006 GB, free: 85.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/1.041, allocations: 3.953 kB / 0.8006 GB, free: 85.63 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/1.042, allocations: 320.6 kB / 0.8009 GB, free: 85.33 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0039/1.046, allocations: 1.231 MB / 0.8022 GB, free: 84.08 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003284/1.047, allocations: 75.94 kB / 0.8022 GB, free: 84.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006826/1.054, allocations: 10.45 MB / 0.8124 GB, free: 72.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/1.054, allocations: 0 / 0.8124 GB, free: 72.88 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007357/1.061, allocations: 5.189 MB / 0.8175 GB, free: 67.67 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/1.062, allocations: 0.5954 MB / 0.8181 GB, free: 67.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003397/1.063, allocations: 59.98 kB / 0.8181 GB, free: 67 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/1.064, allocations: 155.6 kB / 0.8183 GB, free: 66.84 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002824/1.064, allocations: 169.8 kB / 0.8184 GB, free: 66.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001573/1.065, allocations: 79.95 kB / 0.8185 GB, free: 66.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001408/1.066, allocations: 1.241 MB / 0.8197 GB, free: 65.34 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.2e-07/1.066, allocations: 0 / 0.8197 GB, free: 65.34 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004028/1.07, allocations: 1.745 MB / 0.8214 GB, free: 63.59 MB / 0.5105 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.001978/1.072, allocations: 0.9776 MB / 0.8224 GB, free: 62.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008524/1.081, allocations: 4.958 MB / 0.8272 GB, free: 57.84 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/1.081, allocations: 4 kB / 0.8272 GB, free: 57.84 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003361/1.084, allocations: 2.231 MB / 0.8294 GB, free: 55.57 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004265/1.088, allocations: 1.005 MB / 0.8304 GB, free: 54.58 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007621/1.096, allocations: 6.684 MB / 0.8369 GB, free: 47.91 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000933/1.097, allocations: 1.852 MB / 0.8387 GB, free: 46.02 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006448/1.098, allocations: 205.4 kB / 0.8389 GB, free: 45.82 MB / 0.5105 GB Notification: Performance of SimCode: time 8.22e-07/1.098, allocations: 0 / 0.8389 GB, free: 45.82 MB / 0.5105 GB Notification: Performance of Templates: time 0.2497/1.347, allocations: 88.69 MB / 0.9255 GB, free: 198.4 MB / 0.5105 GB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)