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.001511/0.001511, allocations: 109.7 kB / 17.16 MB, free: 6.324 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.001659/0.001659, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.396/1.396, allocations: 222.9 MB / 241.8 MB, free: 13.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 48.3 kB / 300.6 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09521/0.09641, allocations: 49.45 MB / 350 MB, free: 4.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2672/0.3636, allocations: 95.46 MB / 445.5 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03781/0.4015, allocations: 22.6 MB / 468.1 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004347/0.4059, allocations: 115.1 kB / 468.2 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003503/0.4094, allocations: 0.8159 MB / 469 MB, free: 13.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01123/0.4208, allocations: 3.514 MB / 472.5 MB, free: 10.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01318/0.434, allocations: 4.95 MB / 477.5 MB, free: 5.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01255/0.4465, allocations: 10.7 MB / 488.2 MB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003577/0.4502, allocations: 1.598 MB / 489.8 MB, free: 9.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4312/0.8814, allocations: 73.41 MB / 0.55 GB, free: 51.06 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07045/0.9519, allocations: 31.97 MB / 0.5812 GB, free: 41.27 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001481/0.9535, allocations: 136.8 kB / 0.5814 GB, free: 41.27 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01467/0.9682, allocations: 5.969 MB / 0.5872 GB, free: 39.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002447/0.9707, allocations: 0.9787 MB / 0.5881 GB, free: 38.51 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003709/0.9744, allocations: 1.387 MB / 0.5895 GB, free: 37.74 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006574/0.981, allocations: 3.995 MB / 0.5934 GB, free: 34.69 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.981, allocations: 2.5 kB / 0.5934 GB, free: 34.69 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.9811, allocations: 0 / 0.5934 GB, free: 34.69 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001757/0.9812, allocations: 0 / 0.5934 GB, free: 34.69 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.01114/0.9924, allocations: 3.492 MB / 0.5968 GB, free: 31.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.9925, allocations: 12.03 kB / 0.5968 GB, free: 31.65 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00163/0.9941, allocations: 312.5 kB / 0.5971 GB, free: 31.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003336/0.9974, allocations: 1.576 MB / 0.5987 GB, free: 30.1 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002338/0.9977, allocations: 216.4 kB / 0.5989 GB, free: 29.95 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008231/0.9985, allocations: 199.2 kB / 0.5991 GB, free: 29.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006326/1.005, allocations: 3.296 MB / 0.6023 GB, free: 27.39 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.861e-05/1.005, allocations: 7.094 kB / 0.6023 GB, free: 27.39 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004413/1.005, allocations: 83.02 kB / 0.6024 GB, free: 27.37 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002966/1.006, allocations: 257.3 kB / 0.6026 GB, free: 27.15 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005856/1.012, allocations: 3.104 MB / 0.6056 GB, free: 25.08 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.01958/1.031, allocations: 13.78 MB / 0.6191 GB, free: 13.01 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004092/1.035, allocations: 2.208 MB / 0.6212 GB, free: 11.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002025/1.037, allocations: 1.353 MB / 0.6226 GB, free: 10.72 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008119/1.046, allocations: 5.859 MB / 0.6283 GB, free: 4.707 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/1.046, allocations: 56.56 kB / 0.6283 GB, free: 4.645 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009533/1.047, allocations: 182.8 kB / 0.6285 GB, free: 4.465 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 6.733e-06/1.047, allocations: 0 / 0.6285 GB, free: 4.465 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.02341/1.07, allocations: 9.155 MB / 0.6375 GB, free: 11.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/1.07, allocations: 73.41 kB / 0.6375 GB, free: 11.16 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003022/1.073, allocations: 1.845 MB / 0.6393 GB, free: 9.273 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004211/1.074, allocations: 61.7 kB / 0.6394 GB, free: 9.207 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008789/1.075, allocations: 1.058 MB / 0.6404 GB, free: 8.141 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009208/1.075, allocations: 0.6798 MB / 0.6411 GB, free: 7.469 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001158/1.077, allocations: 456.4 kB / 0.6415 GB, free: 7.016 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/1.077, allocations: 301.1 kB / 0.6418 GB, free: 6.719 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002281/1.079, allocations: 1.24 MB / 0.643 GB, free: 5.473 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002725/1.082, allocations: 1.806 MB / 0.6448 GB, free: 3.434 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004988/1.087, allocations: 3.153 MB / 0.6479 GB, free: 116 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.977e-05/1.087, allocations: 12 kB / 0.6479 GB, free: 104 kB / 462.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.00804/1.095, allocations: 4.295 MB / 0.6521 GB, free: 11.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.893e-05/1.095, allocations: 12 kB / 0.6521 GB, free: 11.89 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.113e-05/1.095, allocations: 16 kB / 0.6521 GB, free: 11.87 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0144/1.109, allocations: 3.634 MB / 0.6556 GB, free: 8.25 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/1.111, allocations: 332 kB / 0.656 GB, free: 7.949 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007338/1.118, allocations: 3.946 MB / 0.6598 GB, free: 4.004 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002428/1.121, allocations: 187.7 kB / 0.66 GB, free: 3.82 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000415/1.121, allocations: 116 kB / 0.6601 GB, free: 3.707 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003093/1.124, allocations: 1.672 MB / 0.6617 GB, free: 2.027 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002582/1.127, allocations: 1.749 MB / 0.6634 GB, free: 32 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004825/1.132, allocations: 3.053 MB / 0.6664 GB, free: 12.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.736e-05/1.132, allocations: 4 kB / 0.6664 GB, free: 12.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007515/1.139, allocations: 4.023 MB / 0.6704 GB, free: 8.871 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/1.139, allocations: 15.91 kB / 0.6704 GB, free: 8.859 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.223e-05/1.139, allocations: 16 kB / 0.6704 GB, free: 8.844 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009692/1.149, allocations: 2.754 MB / 0.6731 GB, free: 6.105 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001717/1.151, allocations: 377.5 kB / 0.6734 GB, free: 5.762 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006164/1.157, allocations: 3.466 MB / 0.6768 GB, free: 2.297 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002456/1.159, allocations: 183.7 kB / 0.677 GB, free: 2.117 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003716/1.16, allocations: 120 kB / 0.6771 GB, free: 2 MB / 494.1 MB 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.0007099/1.161, allocations: 314.8 kB / 0.6774 GB, free: 1.707 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00068/1.161, allocations: 225.2 kB / 0.6776 GB, free: 1.484 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008153/1.169, allocations: 3.954 MB / 0.6815 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.418e-05/1.169, allocations: 24 kB / 0.6815 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/1.17, allocations: 4 kB / 0.6815 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006139/1.176, allocations: 3.37 MB / 0.6848 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01167/1.187, allocations: 6.3 MB / 0.691 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/1.187, allocations: 3.984 kB / 0.691 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/1.189, allocations: 315.7 kB / 0.6913 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004484/1.193, allocations: 1.203 MB / 0.6924 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002963/1.194, allocations: 75.89 kB / 0.6925 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00946/1.203, allocations: 10.43 MB / 0.7027 GB, free: 7.059 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.203, allocations: 0 / 0.7027 GB, free: 7.059 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009794/1.213, allocations: 5.184 MB / 0.7078 GB, free: 1.848 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/1.215, allocations: 0.5992 MB / 0.7083 GB, free: 1.227 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006509/1.215, allocations: 55.98 kB / 0.7084 GB, free: 1.172 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001913/1.217, allocations: 139.6 kB / 0.7085 GB, free: 1.035 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004549/1.218, allocations: 167.6 kB / 0.7087 GB, free: 0.8711 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002404/1.218, allocations: 75.95 kB / 0.7088 GB, free: 0.7969 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002135/1.22, allocations: 1.264 MB / 0.71 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.81e-07/1.22, allocations: 0 / 0.71 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00527/1.225, allocations: 1.738 MB / 0.7117 GB, free: 13.77 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.002702/1.228, allocations: 1.009 MB / 0.7127 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01135/1.239, allocations: 5.065 MB / 0.7176 GB, free: 7.879 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/1.239, allocations: 0.875 kB / 0.7176 GB, free: 7.879 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004439/1.244, allocations: 2.231 MB / 0.7198 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005436/1.249, allocations: 0.9983 MB / 0.7208 GB, free: 4.633 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1707/1.42, allocations: 6.722 MB / 0.7273 GB, free: 243.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001867/1.422, allocations: 1.85 MB / 0.7291 GB, free: 242.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/1.423, allocations: 203 kB / 0.7293 GB, free: 242.7 MB / 0.5294 GB Notification: Performance of SimCode: time 9.92e-07/1.423, allocations: 3.844 kB / 0.7293 GB, free: 242.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.09059/1.514, allocations: 88.77 MB / 0.816 GB, free: 174 MB / 0.5294 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)