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.001044/0.001044, allocations: 91.53 kB / 17.3 MB, free: 6.395 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.001316/0.001316, allocations: 173 kB / 18.2 MB, free: 5.551 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.558/1.558, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004521/0.0004523, allocations: 8 kB / 281.4 MB, free: 3.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1131, allocations: 47.59 MB / 329 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3304/0.4436, allocations: 93.76 MB / 422.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03496/0.4786, allocations: 22.31 MB / 445 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004757/0.4834, allocations: 107.1 kB / 445.1 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003934/0.4873, allocations: 0.8121 MB / 445.9 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01179/0.4992, allocations: 3.513 MB / 449.5 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01413/0.5133, allocations: 4.911 MB / 454.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01275/0.5261, allocations: 10.68 MB / 465 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003371/0.5295, allocations: 1.577 MB / 466.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1454/0.675, allocations: 73.37 MB / 0.5273 GB, free: 5.391 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3341/1.009, allocations: 31.93 MB / 0.5585 GB, free: 69.16 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001083/1.01, allocations: 122.7 kB / 0.5586 GB, free: 69.16 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01466/1.025, allocations: 5.947 MB / 0.5644 GB, free: 68.16 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002285/1.027, allocations: 0.9767 MB / 0.5654 GB, free: 68.15 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002805/1.03, allocations: 1.385 MB / 0.5668 GB, free: 68.08 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01156/1.042, allocations: 5.302 MB / 0.5719 GB, free: 66.6 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/1.042, allocations: 0 / 0.5719 GB, free: 66.6 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.216e-06/1.042, allocations: 4 kB / 0.5719 GB, free: 66.6 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.343e-05/1.042, allocations: 3.375 kB / 0.5719 GB, free: 66.6 MB / 430.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.007763/1.05, allocations: 2.992 MB / 0.5749 GB, free: 64.81 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/1.05, allocations: 11.09 kB / 0.5749 GB, free: 64.81 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009544/1.051, allocations: 307.3 kB / 0.5752 GB, free: 64.66 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002385/1.053, allocations: 1.581 MB / 0.5767 GB, free: 63.89 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001761/1.053, allocations: 213.9 kB / 0.5769 GB, free: 63.82 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003291/1.054, allocations: 204.4 kB / 0.5771 GB, free: 63.82 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004579/1.058, allocations: 3.293 MB / 0.5803 GB, free: 61.61 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.947e-05/1.058, allocations: 11.38 kB / 0.5803 GB, free: 61.61 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002244/1.058, allocations: 82.19 kB / 0.5804 GB, free: 61.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002651/1.059, allocations: 254.3 kB / 0.5807 GB, free: 61.37 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00426/1.063, allocations: 3.116 MB / 0.5837 GB, free: 59.29 MB / 430.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.01611/1.079, allocations: 13.82 MB / 0.5972 GB, free: 47.18 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003592/1.083, allocations: 2.228 MB / 0.5994 GB, free: 45.77 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001824/1.085, allocations: 1.352 MB / 0.6007 GB, free: 44.87 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007382/1.092, allocations: 5.872 MB / 0.6064 GB, free: 39.12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/1.092, allocations: 51.56 kB / 0.6065 GB, free: 39.07 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000867/1.093, allocations: 182 kB / 0.6066 GB, free: 38.89 MB / 430.1 MB Notification: Performance of pre-optimization done (n=171): time 3.757e-06/1.093, allocations: 0 / 0.6066 GB, free: 38.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.01997/1.113, allocations: 9.229 MB / 0.6157 GB, free: 29.59 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/1.113, allocations: 73.41 kB / 0.6157 GB, free: 29.51 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002351/1.115, allocations: 1.845 MB / 0.6175 GB, free: 27.62 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002721/1.116, allocations: 57.7 kB / 0.6176 GB, free: 27.56 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005412/1.116, allocations: 1.063 MB / 0.6186 GB, free: 26.49 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005234/1.117, allocations: 0.6834 MB / 0.6193 GB, free: 25.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002598/1.117, allocations: 194.4 kB / 0.6195 GB, free: 25.62 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.141e-05/1.117, allocations: 309.1 kB / 0.6198 GB, free: 25.32 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001674/1.119, allocations: 1.223 MB / 0.621 GB, free: 24.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001816/1.121, allocations: 1.807 MB / 0.6227 GB, free: 22.05 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003524/1.124, allocations: 3.168 MB / 0.6258 GB, free: 18.71 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/1.124, allocations: 4 kB / 0.6258 GB, free: 18.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006136/1.13, allocations: 4.305 MB / 0.63 GB, free: 14.5 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003007/1.131, allocations: 0.5928 MB / 0.6306 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.286e-05/1.131, allocations: 24 kB / 0.6306 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01278/1.143, allocations: 3.657 MB / 0.6342 GB, free: 9.996 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/1.145, allocations: 328 kB / 0.6345 GB, free: 9.699 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005809/1.151, allocations: 3.957 MB / 0.6384 GB, free: 5.742 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002746/1.153, allocations: 187.8 kB / 0.6386 GB, free: 5.559 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000259/1.154, allocations: 112 kB / 0.6387 GB, free: 5.449 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/1.154, allocations: 4 kB / 0.6387 GB, free: 5.445 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005505/1.159, allocations: 3.815 MB / 0.6424 GB, free: 1.738 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.363e-05/1.159, allocations: 16 kB / 0.6424 GB, free: 1.723 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009312/1.169, allocations: 2.875 MB / 0.6452 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001747/1.17, allocations: 372.9 kB / 0.6456 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005948/1.176, allocations: 3.484 MB / 0.649 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002923/1.179, allocations: 183.6 kB / 0.6492 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003077/1.18, allocations: 112 kB / 0.6493 GB, free: 10.75 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.001791/1.181, allocations: 0.7083 MB / 0.65 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005481/1.182, allocations: 229.2 kB / 0.6502 GB, free: 9.828 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007733/1.19, allocations: 3.967 MB / 0.654 GB, free: 5.871 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.788e-05/1.19, allocations: 24 kB / 0.6541 GB, free: 5.848 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/1.19, allocations: 8 kB / 0.6541 GB, free: 5.84 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005748/1.195, allocations: 3.39 MB / 0.6574 GB, free: 2.375 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/1.208, allocations: 6.321 MB / 0.6636 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/1.208, allocations: 0 / 0.6636 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/1.209, allocations: 322.6 kB / 0.6639 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004665/1.214, allocations: 1.223 MB / 0.6651 GB, free: 10.49 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003463/1.214, allocations: 79.88 kB / 0.6651 GB, free: 10.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01057/1.225, allocations: 10.46 MB / 0.6754 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/1.225, allocations: 0 / 0.6754 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009038/1.234, allocations: 5.2 MB / 0.6804 GB, free: 10.04 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001516/1.235, allocations: 0.5995 MB / 0.681 GB, free: 9.414 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003635/1.236, allocations: 55.98 kB / 0.6811 GB, free: 9.359 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001489/1.237, allocations: 147.7 kB / 0.6812 GB, free: 9.215 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004224/1.238, allocations: 175.9 kB / 0.6814 GB, free: 9.047 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001843/1.238, allocations: 79.95 kB / 0.6815 GB, free: 8.969 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001828/1.24, allocations: 1.257 MB / 0.6827 GB, free: 7.691 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.71e-07/1.24, allocations: 0 / 0.6827 GB, free: 7.691 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005171/1.245, allocations: 1.738 MB / 0.6844 GB, free: 5.953 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), (6,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002517/1.248, allocations: 0.9985 MB / 0.6854 GB, free: 5.027 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01018/1.258, allocations: 5.042 MB / 0.6903 GB, free: 88 kB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.258, allocations: 0 / 0.6903 GB, free: 88 kB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004084/1.262, allocations: 2.255 MB / 0.6925 GB, free: 13.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005108/1.267, allocations: 0.9961 MB / 0.6935 GB, free: 12.81 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/1.278, allocations: 6.862 MB / 0.7002 GB, free: 5.938 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001528/1.279, allocations: 1.868 MB / 0.702 GB, free: 4.031 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003563/1.283, allocations: 0.9593 MB / 0.7029 GB, free: 3.066 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005518/1.283, allocations: 191.4 kB / 0.7031 GB, free: 2.879 MB / 494.1 MB Notification: Performance of SimCode: time 1.062e-06/1.283, allocations: 0 / 0.7031 GB, free: 2.879 MB / 494.1 MB Notification: Performance of Templates: time 0.3134/1.597, allocations: 71.75 MB / 0.7732 GB, free: 162.3 MB / 494.1 MB 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)