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.001049/0.001049, allocations: 104.4 kB / 18.35 MB, free: 4.516 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.0009967/0.0009967, allocations: 191 kB / 19.29 MB, free: 3.586 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.317/1.317, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001197/0.001197, allocations: 59.92 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09161/0.09282, allocations: 46.62 MB / 328.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2554/0.3483, allocations: 90.12 MB / 418.8 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03928/0.3876, allocations: 21.29 MB / 440.1 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003945/0.3916, allocations: 87.53 kB / 440.2 MB, free: 6.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003774/0.3955, allocations: 0.938 MB / 441.2 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01396/0.4095, allocations: 3.718 MB / 444.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01393/0.4234, allocations: 5.642 MB / 450.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009066/0.4325, allocations: 7.034 MB / 457.5 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003133/0.4357, allocations: 1.847 MB / 459.4 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1754/0.611, allocations: 74.84 MB / 0.5217 GB, free: 7.523 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3161/0.9272, allocations: 31.9 MB / 0.5529 GB, free: 94.98 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001677/0.9289, allocations: 247.8 kB / 0.5531 GB, free: 94.98 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02255/0.9515, allocations: 6.091 MB / 0.5591 GB, free: 94.01 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003085/0.9546, allocations: 1.086 MB / 0.5601 GB, free: 94.01 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005785/0.9605, allocations: 1.498 MB / 0.5616 GB, free: 94.01 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01499/0.9755, allocations: 5.517 MB / 0.567 GB, free: 93.61 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.347e-06/0.9756, allocations: 1.25 kB / 0.567 GB, free: 93.61 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.9756, allocations: 0 / 0.567 GB, free: 93.61 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001886/0.9758, allocations: 2.938 kB / 0.567 GB, free: 93.61 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.01538/0.9912, allocations: 3.493 MB / 0.5704 GB, free: 92.15 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.9912, allocations: 7.938 kB / 0.5704 GB, free: 92.15 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002481/0.9937, allocations: 315.3 kB / 0.5707 GB, free: 92 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005595/0.9994, allocations: 1.67 MB / 0.5723 GB, free: 91.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003304/0.9997, allocations: 218.3 kB / 0.5725 GB, free: 91.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001128/1.001, allocations: 206.5 kB / 0.5727 GB, free: 91.44 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007864/1.009, allocations: 3.29 MB / 0.5759 GB, free: 91.07 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.485e-05/1.009, allocations: 5.344 kB / 0.5759 GB, free: 91.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006065/1.01, allocations: 85.19 kB / 0.576 GB, free: 91.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003653/1.01, allocations: 253.5 kB / 0.5763 GB, free: 91.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006486/1.016, allocations: 3.109 MB / 0.5793 GB, free: 91.05 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.02025/1.037, allocations: 13.8 MB / 0.5928 GB, free: 79.61 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003973/1.041, allocations: 2.212 MB / 0.5949 GB, free: 78.19 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001894/1.043, allocations: 1.356 MB / 0.5963 GB, free: 77.12 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007798/1.05, allocations: 5.847 MB / 0.602 GB, free: 70.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/1.05, allocations: 60.41 kB / 0.602 GB, free: 70.73 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008532/1.051, allocations: 173.9 kB / 0.6022 GB, free: 70.56 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 8.045e-06/1.051, allocations: 3.938 kB / 0.6022 GB, free: 70.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.02087/1.072, allocations: 9.151 MB / 0.6111 GB, free: 61.34 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/1.072, allocations: 73.41 kB / 0.6112 GB, free: 61.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002466/1.075, allocations: 1.841 MB / 0.613 GB, free: 59.37 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002507/1.075, allocations: 61.7 kB / 0.6131 GB, free: 59.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005261/1.076, allocations: 1.06 MB / 0.6141 GB, free: 58.24 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004881/1.076, allocations: 0.6723 MB / 0.6148 GB, free: 57.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007751/1.077, allocations: 456.3 kB / 0.6152 GB, free: 57.12 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.855e-05/1.077, allocations: 311.1 kB / 0.6155 GB, free: 56.81 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001887/1.079, allocations: 1.229 MB / 0.6167 GB, free: 55.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00204/1.081, allocations: 1.802 MB / 0.6184 GB, free: 53.54 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003864/1.085, allocations: 3.163 MB / 0.6215 GB, free: 50.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.278e-05/1.085, allocations: 4 kB / 0.6215 GB, free: 50.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.0066/1.091, allocations: 4.295 MB / 0.6257 GB, free: 46 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/1.091, allocations: 12 kB / 0.6257 GB, free: 45.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.536e-05/1.091, allocations: 20 kB / 0.6258 GB, free: 45.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01266/1.104, allocations: 3.638 MB / 0.6293 GB, free: 42.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/1.105, allocations: 330.9 kB / 0.6296 GB, free: 42.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006073/1.112, allocations: 3.946 MB / 0.6335 GB, free: 38.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00227/1.114, allocations: 106.8 kB / 0.6336 GB, free: 38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003723/1.114, allocations: 112 kB / 0.6337 GB, free: 37.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002707/1.117, allocations: 1.668 MB / 0.6353 GB, free: 36.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001932/1.119, allocations: 1.753 MB / 0.637 GB, free: 34.21 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003675/1.123, allocations: 3.054 MB / 0.64 GB, free: 30.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.312e-05/1.123, allocations: 8 kB / 0.64 GB, free: 30.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.005946/1.129, allocations: 4.024 MB / 0.644 GB, free: 27.05 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/1.129, allocations: 12 kB / 0.644 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/1.129, allocations: 16 kB / 0.644 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008894/1.138, allocations: 2.746 MB / 0.6467 GB, free: 24.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/1.139, allocations: 381.2 kB / 0.647 GB, free: 23.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004975/1.144, allocations: 3.457 MB / 0.6504 GB, free: 20.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002495/1.147, allocations: 95.94 kB / 0.6505 GB, free: 20.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003321/1.147, allocations: 112 kB / 0.6506 GB, free: 20.27 MB / 446.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.0006662/1.148, allocations: 322.1 kB / 0.6509 GB, free: 19.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006175/1.149, allocations: 225.3 kB / 0.6511 GB, free: 19.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007192/1.156, allocations: 3.955 MB / 0.655 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.552e-05/1.156, allocations: 26.81 kB / 0.655 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.908e-05/1.156, allocations: 0 / 0.655 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004887/1.161, allocations: 3.375 MB / 0.6583 GB, free: 12.33 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009964/1.171, allocations: 6.298 MB / 0.6645 GB, free: 6.016 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/1.171, allocations: 0 / 0.6645 GB, free: 6.016 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001293/1.172, allocations: 310.7 kB / 0.6648 GB, free: 5.727 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003647/1.176, allocations: 1.163 MB / 0.6659 GB, free: 4.543 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002224/1.176, allocations: 75.89 kB / 0.666 GB, free: 4.469 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008677/1.185, allocations: 11.05 MB / 0.6768 GB, free: 8.691 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/1.185, allocations: 4.031 kB / 0.6768 GB, free: 8.688 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009664/1.194, allocations: 5.179 MB / 0.6818 GB, free: 3.48 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001732/1.196, allocations: 0.5996 MB / 0.6824 GB, free: 2.859 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006932/1.197, allocations: 55.92 kB / 0.6825 GB, free: 2.805 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001689/1.198, allocations: 79.94 kB / 0.6825 GB, free: 2.727 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004036/1.199, allocations: 172.3 kB / 0.6827 GB, free: 2.562 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002389/1.199, allocations: 87.89 kB / 0.6828 GB, free: 2.477 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002034/1.201, allocations: 1.257 MB / 0.684 GB, free: 1.199 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.201, allocations: 0 / 0.684 GB, free: 1.199 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005331/1.207, allocations: 1.73 MB / 0.6857 GB, free: 15.46 MB / 478.1 MB 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.00303/1.21, allocations: 1.012 MB / 0.6867 GB, free: 14.53 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01085/1.22, allocations: 5.104 MB / 0.6917 GB, free: 9.531 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/1.221, allocations: 4 kB / 0.6917 GB, free: 9.527 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004284/1.225, allocations: 2.243 MB / 0.6939 GB, free: 7.258 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005137/1.23, allocations: 1.044 MB / 0.6949 GB, free: 6.219 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/1.241, allocations: 5.652 MB / 0.7004 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001869/1.243, allocations: 1.872 MB / 0.7022 GB, free: 14.64 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003233/1.246, allocations: 0.9551 MB / 0.7032 GB, free: 13.68 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007399/1.247, allocations: 191.4 kB / 0.7033 GB, free: 13.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.203e-06/1.247, allocations: 0 / 0.7033 GB, free: 13.5 MB / 494.1 MB Notification: Performance of Templates: time 0.2717/1.519, allocations: 75.02 MB / 0.7766 GB, free: 202.1 MB / 0.4981 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 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)