Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 103.1 kB / 17.06 MB, free: 5.816 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 199.9 kB / 18 MB, free: 4.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009167/0.0009167, allocations: 51.91 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2528, allocations: 49.43 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.08842/0.3413, allocations: 90.1 MB / 490.8 MB, free: 14.47 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03139/0.3727, allocations: 21.33 MB / 0.5001 GB, free: 9.078 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003223/0.376, allocations: 87.44 kB / 0.5002 GB, free: 8.992 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002863/0.3789, allocations: 0.9278 MB / 0.5011 GB, free: 8.059 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01051/0.3894, allocations: 3.725 MB / 0.5048 GB, free: 4.316 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01313/0.4026, allocations: 5.665 MB / 0.5103 GB, free: 14.66 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01017/0.4128, allocations: 7.038 MB / 0.5172 GB, free: 7.598 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003459/0.4163, allocations: 1.837 MB / 0.519 GB, free: 5.734 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4108/0.8271, allocations: 74.96 MB / 0.5922 GB, free: 7.617 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06249/0.8897, allocations: 31.92 MB / 0.6233 GB, free: 13.99 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001535/0.8913, allocations: 248 kB / 0.6236 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01596/0.9072, allocations: 6.086 MB / 0.6295 GB, free: 8.977 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002489/0.9098, allocations: 1.088 MB / 0.6306 GB, free: 8.328 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004382/0.9142, allocations: 1.493 MB / 0.632 GB, free: 7.551 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0129/0.9271, allocations: 5.535 MB / 0.6374 GB, free: 3.387 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.9271, allocations: 0 / 0.6374 GB, free: 3.387 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.9271, allocations: 0 / 0.6374 GB, free: 3.387 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001626/0.9273, allocations: 0 / 0.6374 GB, free: 3.387 MB / 494.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.01146/0.9388, allocations: 3.493 MB / 0.6409 GB, free: 288 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.9388, allocations: 12.03 kB / 0.6409 GB, free: 276 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001675/0.9405, allocations: 309.9 kB / 0.6412 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003681/0.9442, allocations: 1.672 MB / 0.6428 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001849/0.9444, allocations: 213.3 kB / 0.643 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003377/0.9448, allocations: 200.7 kB / 0.6432 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005117/0.9499, allocations: 3.313 MB / 0.6464 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.586e-05/0.95, allocations: 7 kB / 0.6464 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002205/0.9502, allocations: 84.03 kB / 0.6465 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002971/0.9505, allocations: 246.8 kB / 0.6467 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004741/0.9552, allocations: 3.103 MB / 0.6498 GB, free: 7.566 MB / 0.4981 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.01955/0.9748, allocations: 13.78 MB / 0.6632 GB, free: 9.086 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00424/0.9791, allocations: 2.233 MB / 0.6654 GB, free: 6.867 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002224/0.9813, allocations: 1.368 MB / 0.6668 GB, free: 5.5 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008907/0.9902, allocations: 5.856 MB / 0.6725 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/0.9903, allocations: 56.55 kB / 0.6725 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007336/0.991, allocations: 169.9 kB / 0.6727 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 3.537e-06/0.991, allocations: 0 / 0.6727 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02138/1.012, allocations: 9.152 MB / 0.6816 GB, free: 5.719 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/1.012, allocations: 73.41 kB / 0.6817 GB, free: 5.637 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002479/1.015, allocations: 1.841 MB / 0.6835 GB, free: 3.754 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001848/1.015, allocations: 61.7 kB / 0.6836 GB, free: 3.688 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007454/1.016, allocations: 1.058 MB / 0.6846 GB, free: 2.621 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006204/1.017, allocations: 0.6858 MB / 0.6853 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007832/1.017, allocations: 460.3 kB / 0.6857 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001135/1.017, allocations: 301.1 kB / 0.686 GB, free: 1.191 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002001/1.019, allocations: 1.232 MB / 0.6872 GB, free: 15.95 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002341/1.022, allocations: 1.805 MB / 0.6889 GB, free: 13.91 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004422/1.026, allocations: 3.16 MB / 0.692 GB, free: 10.58 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/1.026, allocations: 8 kB / 0.692 GB, free: 10.57 MB / 0.545 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007166/1.033, allocations: 4.294 MB / 0.6962 GB, free: 6.375 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/1.034, allocations: 12 kB / 0.6962 GB, free: 6.363 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.453e-05/1.034, allocations: 16.06 kB / 0.6963 GB, free: 6.348 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01365/1.047, allocations: 3.638 MB / 0.6998 GB, free: 2.715 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/1.049, allocations: 330.7 kB / 0.7001 GB, free: 2.418 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007144/1.056, allocations: 3.947 MB / 0.704 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002243/1.058, allocations: 99.88 kB / 0.7041 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00041/1.058, allocations: 112 kB / 0.7042 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003216/1.062, allocations: 1.672 MB / 0.7058 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002656/1.064, allocations: 1.757 MB / 0.7075 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004667/1.069, allocations: 3.061 MB / 0.7105 GB, free: 7.359 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.653e-05/1.069, allocations: 4 kB / 0.7105 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007062/1.076, allocations: 4.016 MB / 0.7144 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/1.076, allocations: 12.94 kB / 0.7145 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.943e-05/1.076, allocations: 20 kB / 0.7145 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009695/1.086, allocations: 2.749 MB / 0.7172 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001654/1.088, allocations: 372.9 kB / 0.7175 GB, free: 328 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005683/1.093, allocations: 3.47 MB / 0.7209 GB, free: 12.85 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002129/1.095, allocations: 99.94 kB / 0.721 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004669/1.096, allocations: 108 kB / 0.7211 GB, free: 12.65 MB / 0.5762 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.0009251/1.097, allocations: 314.8 kB / 0.7214 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009095/1.098, allocations: 237.3 kB / 0.7216 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00808/1.106, allocations: 3.939 MB / 0.7255 GB, free: 8.184 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.689e-05/1.106, allocations: 24 kB / 0.7255 GB, free: 8.16 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-05/1.106, allocations: 4 kB / 0.7255 GB, free: 8.156 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005802/1.112, allocations: 3.373 MB / 0.7288 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/1.123, allocations: 6.287 MB / 0.7349 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/1.123, allocations: 0 / 0.7349 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001401/1.125, allocations: 319.7 kB / 0.7352 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004089/1.129, allocations: 1.158 MB / 0.7364 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002466/1.129, allocations: 71.95 kB / 0.7364 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009759/1.139, allocations: 11.07 MB / 0.7473 GB, free: 1.062 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/1.139, allocations: 0 / 0.7473 GB, free: 1.062 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2494/1.388, allocations: 5.179 MB / 0.7523 GB, free: 273.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001503/1.39, allocations: 0.6008 MB / 0.7529 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003365/1.39, allocations: 51.56 kB / 0.7529 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001275/1.392, allocations: 74.34 kB / 0.753 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003457/1.392, allocations: 165.1 kB / 0.7532 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001664/1.392, allocations: 86.59 kB / 0.7533 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001449/1.394, allocations: 1.252 MB / 0.7545 GB, free: 273.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.9e-07/1.394, allocations: 3.031 kB / 0.7545 GB, free: 273.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003843/1.397, allocations: 1.734 MB / 0.7562 GB, free: 273 MB / 0.5919 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.002043/1.399, allocations: 1.01 MB / 0.7572 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00947/1.409, allocations: 5.112 MB / 0.7622 GB, free: 271.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/1.409, allocations: 0 / 0.7622 GB, free: 271.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.003568/1.413, allocations: 2.247 MB / 0.7643 GB, free: 270.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004671/1.417, allocations: 1.047 MB / 0.7654 GB, free: 269.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008556/1.426, allocations: 5.663 MB / 0.7709 GB, free: 264.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00116/1.427, allocations: 1.876 MB / 0.7727 GB, free: 262.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002664/1.43, allocations: 0.9554 MB / 0.7737 GB, free: 261.9 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005225/1.43, allocations: 191.4 kB / 0.7738 GB, free: 261.7 MB / 0.5919 GB Notification: Performance of SimCode: time 1.223e-06/1.43, allocations: 0 / 0.7738 GB, free: 261.7 MB / 0.5919 GB Notification: Performance of Templates: time 0.08934/1.52, allocations: 77.43 MB / 0.8495 GB, free: 184.7 MB / 0.5919 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)