Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001326/0.001326, allocations: 113.3 kB / 18.4 MB, free: 4.699 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.001423/0.001423, allocations: 189.2 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.44/1.44, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 55.92 kB / 329.2 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09178/0.09323, allocations: 46.62 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2944/0.3876, allocations: 90.12 MB / 465.9 MB, free: 5.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03399/0.4217, allocations: 21.31 MB / 487.2 MB, free: 52 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003242/0.425, allocations: 83.61 kB / 487.3 MB, free: 15.96 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003215/0.4282, allocations: 0.9434 MB / 488.3 MB, free: 15.02 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01104/0.4393, allocations: 3.721 MB / 492 MB, free: 11.28 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01378/0.4531, allocations: 5.623 MB / 497.6 MB, free: 5.645 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00962/0.4628, allocations: 7.023 MB / 0.4928 GB, free: 14.61 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003752/0.4666, allocations: 1.85 MB / 0.4946 GB, free: 12.73 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4132/0.8799, allocations: 74.92 MB / 0.5678 GB, free: 55.36 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06845/0.9484, allocations: 31.91 MB / 0.5989 GB, free: 45.65 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001709/0.9501, allocations: 246.2 kB / 0.5992 GB, free: 45.65 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01543/0.9656, allocations: 6.082 MB / 0.6051 GB, free: 44.14 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002487/0.9681, allocations: 1.091 MB / 0.6062 GB, free: 43.79 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004379/0.9725, allocations: 1.5 MB / 0.6076 GB, free: 43.19 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01287/0.9854, allocations: 5.515 MB / 0.613 GB, free: 39.12 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.9855, allocations: 0 / 0.613 GB, free: 39.12 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.9855, allocations: 0 / 0.613 GB, free: 39.12 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0001837/0.9857, allocations: 0 / 0.613 GB, free: 39.12 MB / 478.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.01205/0.9977, allocations: 3.504 MB / 0.6164 GB, free: 36.05 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.9978, allocations: 8.031 kB / 0.6164 GB, free: 36.04 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001685/0.9995, allocations: 304.6 kB / 0.6167 GB, free: 35.74 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003184/1.003, allocations: 1.676 MB / 0.6184 GB, free: 34.4 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001731/1.003, allocations: 217.6 kB / 0.6186 GB, free: 34.25 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003152/1.003, allocations: 198.5 kB / 0.6188 GB, free: 34.11 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004921/1.008, allocations: 3.307 MB / 0.622 GB, free: 31.69 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.304e-05/1.008, allocations: 11.22 kB / 0.622 GB, free: 31.68 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002391/1.008, allocations: 79.88 kB / 0.6221 GB, free: 31.66 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002855/1.009, allocations: 254.8 kB / 0.6223 GB, free: 31.44 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004822/1.014, allocations: 3.107 MB / 0.6254 GB, free: 29.38 MB / 478.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.01766/1.031, allocations: 13.78 MB / 0.6388 GB, free: 17.29 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003739/1.035, allocations: 2.22 MB / 0.641 GB, free: 15.59 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001849/1.037, allocations: 1.368 MB / 0.6423 GB, free: 14.22 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00715/1.044, allocations: 5.858 MB / 0.648 GB, free: 7.887 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/1.044, allocations: 52.56 kB / 0.6481 GB, free: 7.828 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007919/1.045, allocations: 169.9 kB / 0.6483 GB, free: 7.66 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 6.953e-06/1.045, allocations: 4 kB / 0.6483 GB, free: 7.656 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.02133/1.066, allocations: 9.156 MB / 0.6572 GB, free: 14.44 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/1.066, allocations: 73.41 kB / 0.6573 GB, free: 14.36 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002919/1.069, allocations: 1.837 MB / 0.6591 GB, free: 12.48 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005245/1.07, allocations: 65.69 kB / 0.6591 GB, free: 12.41 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009053/1.071, allocations: 1.058 MB / 0.6602 GB, free: 11.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009561/1.072, allocations: 0.6866 MB / 0.6608 GB, free: 10.66 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008041/1.073, allocations: 456.3 kB / 0.6613 GB, free: 10.21 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/1.073, allocations: 305.1 kB / 0.6616 GB, free: 9.906 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002161/1.075, allocations: 1.236 MB / 0.6628 GB, free: 8.664 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002529/1.077, allocations: 1.797 MB / 0.6645 GB, free: 6.625 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004939/1.082, allocations: 3.161 MB / 0.6676 GB, free: 3.297 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.222e-05/1.083, allocations: 4 kB / 0.6676 GB, free: 3.293 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008649/1.091, allocations: 4.292 MB / 0.6718 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/1.091, allocations: 16.19 kB / 0.6718 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-05/1.091, allocations: 16 kB / 0.6718 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01416/1.105, allocations: 3.642 MB / 0.6754 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001509/1.107, allocations: 327.1 kB / 0.6757 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007986/1.115, allocations: 3.952 MB / 0.6796 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002446/1.118, allocations: 88.11 kB / 0.6797 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004782/1.118, allocations: 116 kB / 0.6798 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003496/1.122, allocations: 1.676 MB / 0.6814 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002903/1.124, allocations: 1.75 MB / 0.6831 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005116/1.13, allocations: 3.053 MB / 0.6861 GB, free: 92 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.226e-05/1.13, allocations: 7.938 kB / 0.6861 GB, free: 84 kB / 0.4981 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.008507/1.138, allocations: 4.029 MB / 0.69 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.271e-05/1.138, allocations: 12 kB / 0.69 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.29e-05/1.138, allocations: 20.09 kB / 0.6901 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009992/1.148, allocations: 2.754 MB / 0.6928 GB, free: 9.375 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001821/1.15, allocations: 370.6 kB / 0.6931 GB, free: 9.039 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006464/1.157, allocations: 3.471 MB / 0.6965 GB, free: 5.566 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002277/1.159, allocations: 91.94 kB / 0.6966 GB, free: 5.477 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004371/1.159, allocations: 111.5 kB / 0.6967 GB, free: 5.371 MB / 0.5137 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.0008881/1.16, allocations: 312.9 kB / 0.697 GB, free: 5.078 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008579/1.161, allocations: 229.3 kB / 0.6972 GB, free: 4.852 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008724/1.17, allocations: 3.945 MB / 0.7011 GB, free: 0.9102 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.844e-05/1.17, allocations: 23.98 kB / 0.7011 GB, free: 0.8867 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.558e-05/1.17, allocations: 4 kB / 0.7011 GB, free: 0.8828 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006777/1.177, allocations: 3.377 MB / 0.7044 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0126/1.189, allocations: 6.298 MB / 0.7105 GB, free: 7.109 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/1.19, allocations: 0 / 0.7105 GB, free: 7.109 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/1.191, allocations: 319.6 kB / 0.7108 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004245/1.195, allocations: 1.152 MB / 0.712 GB, free: 5.641 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004469/1.196, allocations: 79.88 kB / 0.712 GB, free: 5.562 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0106/1.206, allocations: 11.06 MB / 0.7228 GB, free: 9.777 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/1.206, allocations: 0 / 0.7228 GB, free: 9.777 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/1.217, allocations: 5.182 MB / 0.7279 GB, free: 4.57 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001522/1.218, allocations: 0.5877 MB / 0.7285 GB, free: 3.961 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007395/1.219, allocations: 55.98 kB / 0.7285 GB, free: 3.906 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00169/1.221, allocations: 67.94 kB / 0.7286 GB, free: 3.84 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004591/1.221, allocations: 173.7 kB / 0.7288 GB, free: 3.668 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002647/1.221, allocations: 80.33 kB / 0.7288 GB, free: 3.59 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002337/1.224, allocations: 1.26 MB / 0.7301 GB, free: 2.309 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.2e-07/1.224, allocations: 0 / 0.7301 GB, free: 2.309 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005718/1.229, allocations: 1.726 MB / 0.7318 GB, free: 0.582 MB / 0.545 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.00281/1.232, allocations: 1.021 MB / 0.7328 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01202/1.244, allocations: 5.113 MB / 0.7377 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/1.244, allocations: 3.375 kB / 0.7377 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004641/1.249, allocations: 2.245 MB / 0.7399 GB, free: 8.355 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005578/1.255, allocations: 1.04 MB / 0.741 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01212/1.267, allocations: 5.717 MB / 0.7465 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002146/1.269, allocations: 1.856 MB / 0.7484 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/1.27, allocations: 203.4 kB / 0.7485 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.022e-06/1.27, allocations: 0 / 0.7485 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.3534/1.624, allocations: 88.98 MB / 0.8354 GB, free: 210.6 MB / 0.5762 GB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)