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.001125/0.001124, allocations: 118.3 kB / 17.28 MB, free: 6.219 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.001139/0.001139, allocations: 193.3 kB / 18.19 MB, free: 5.301 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.486/1.486, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001309/0.001309, allocations: 55.91 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1079, allocations: 46.63 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3175/0.4255, allocations: 93.18 MB / 420 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03201/0.4576, allocations: 21.77 MB / 441.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003984/0.4616, allocations: 117.1 kB / 441.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00333/0.465, allocations: 0.8251 MB / 442.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01093/0.476, allocations: 3.489 MB / 446.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01485/0.4908, allocations: 5.2 MB / 451.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00991/0.5008, allocations: 7.065 MB / 458.4 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003636/0.5044, allocations: 1.834 MB / 460.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1528/0.6573, allocations: 74.4 MB / 0.5221 GB, free: 6.168 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3407/0.998, allocations: 32.1 MB / 0.5535 GB, free: 92.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00126/0.9993, allocations: 247.8 kB / 0.5537 GB, free: 92.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01522/1.015, allocations: 6.109 MB / 0.5597 GB, free: 91.25 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00235/1.017, allocations: 1.093 MB / 0.5607 GB, free: 91.25 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003075/1.02, allocations: 1.501 MB / 0.5622 GB, free: 91.25 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01198/1.032, allocations: 5.464 MB / 0.5675 GB, free: 90.86 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/1.032, allocations: 0 / 0.5675 GB, free: 90.86 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.793e-06/1.032, allocations: 3.75 kB / 0.5676 GB, free: 90.86 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.596e-05/1.032, allocations: 0 / 0.5676 GB, free: 90.86 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.009242/1.041, allocations: 3.502 MB / 0.571 GB, free: 89.37 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/1.041, allocations: 7.625 kB / 0.571 GB, free: 89.37 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009137/1.042, allocations: 311.9 kB / 0.5713 GB, free: 89.22 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002303/1.045, allocations: 1.572 MB / 0.5728 GB, free: 88.75 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/1.045, allocations: 220.6 kB / 0.573 GB, free: 88.68 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003008/1.045, allocations: 201.6 kB / 0.5732 GB, free: 88.68 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004871/1.05, allocations: 3.299 MB / 0.5764 GB, free: 87.96 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.926e-05/1.05, allocations: 6.844 kB / 0.5764 GB, free: 87.96 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002244/1.05, allocations: 79.53 kB / 0.5765 GB, free: 87.96 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002597/1.051, allocations: 253.4 kB / 0.5768 GB, free: 87.91 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004361/1.055, allocations: 3.106 MB / 0.5798 GB, free: 87.41 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.01593/1.071, allocations: 13.79 MB / 0.5933 GB, free: 76.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003875/1.075, allocations: 2.221 MB / 0.5954 GB, free: 74.67 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002176/1.077, allocations: 1.35 MB / 0.5967 GB, free: 73.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009092/1.086, allocations: 5.858 MB / 0.6025 GB, free: 67.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/1.086, allocations: 55.84 kB / 0.6025 GB, free: 67.71 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001364/1.088, allocations: 177.9 kB / 0.6027 GB, free: 67.54 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 8.826e-06/1.088, allocations: 4 kB / 0.6027 GB, free: 67.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.02135/1.109, allocations: 9.154 MB / 0.6116 GB, free: 58.32 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/1.109, allocations: 77.41 kB / 0.6117 GB, free: 58.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002564/1.112, allocations: 1.841 MB / 0.6135 GB, free: 56.34 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002139/1.112, allocations: 61.7 kB / 0.6136 GB, free: 56.28 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006049/1.112, allocations: 1.055 MB / 0.6146 GB, free: 55.21 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005421/1.113, allocations: 0.6716 MB / 0.6152 GB, free: 54.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007918/1.114, allocations: 468.2 kB / 0.6157 GB, free: 54.08 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.51e-05/1.114, allocations: 301.1 kB / 0.616 GB, free: 53.79 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001791/1.116, allocations: 1.233 MB / 0.6172 GB, free: 52.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001926/1.118, allocations: 1.802 MB / 0.6189 GB, free: 50.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003613/1.121, allocations: 3.161 MB / 0.622 GB, free: 47.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.416e-05/1.121, allocations: 4 kB / 0.622 GB, free: 47.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006112/1.127, allocations: 4.296 MB / 0.6262 GB, free: 42.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/1.127, allocations: 16 kB / 0.6262 GB, free: 42.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.585e-05/1.127, allocations: 16 kB / 0.6263 GB, free: 42.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01295/1.14, allocations: 3.65 MB / 0.6298 GB, free: 39.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/1.142, allocations: 333.8 kB / 0.6301 GB, free: 39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006011/1.148, allocations: 3.946 MB / 0.634 GB, free: 35.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002957/1.151, allocations: 190.9 kB / 0.6342 GB, free: 34.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003724/1.151, allocations: 116 kB / 0.6343 GB, free: 34.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002862/1.154, allocations: 1.668 MB / 0.6359 GB, free: 33.08 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00205/1.156, allocations: 1.762 MB / 0.6376 GB, free: 31.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003696/1.16, allocations: 3.044 MB / 0.6406 GB, free: 27.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.532e-05/1.16, allocations: 8 kB / 0.6406 GB, free: 27.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006115/1.166, allocations: 4.021 MB / 0.6445 GB, free: 23.92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/1.166, allocations: 16 kB / 0.6446 GB, free: 23.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.439e-05/1.166, allocations: 16 kB / 0.6446 GB, free: 23.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008672/1.175, allocations: 2.762 MB / 0.6473 GB, free: 21.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/1.176, allocations: 373.5 kB / 0.6476 GB, free: 20.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0048/1.181, allocations: 3.467 MB / 0.651 GB, free: 17.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002674/1.184, allocations: 191.7 kB / 0.6512 GB, free: 17.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003597/1.184, allocations: 108 kB / 0.6513 GB, free: 17.04 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.0008234/1.185, allocations: 321.5 kB / 0.6516 GB, free: 16.74 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007849/1.186, allocations: 225.3 kB / 0.6518 GB, free: 16.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007088/1.193, allocations: 3.942 MB / 0.6557 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.71e-05/1.193, allocations: 27.98 kB / 0.6557 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-05/1.193, allocations: 4 kB / 0.6557 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0049/1.198, allocations: 3.377 MB / 0.659 GB, free: 9.094 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/1.208, allocations: 6.303 MB / 0.6652 GB, free: 2.766 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/1.208, allocations: 4 kB / 0.6652 GB, free: 2.762 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/1.21, allocations: 312.4 kB / 0.6655 GB, free: 2.473 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003811/1.213, allocations: 1.167 MB / 0.6666 GB, free: 1.285 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002984/1.214, allocations: 79.88 kB / 0.6667 GB, free: 1.207 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01063/1.224, allocations: 11.06 MB / 0.6775 GB, free: 5.426 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.224, allocations: 3.938 kB / 0.6775 GB, free: 5.422 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01133/1.236, allocations: 5.179 MB / 0.6825 GB, free: 224 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002929/1.239, allocations: 0.5962 MB / 0.6831 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001299/1.24, allocations: 54.52 kB / 0.6832 GB, free: 15.55 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003584/1.244, allocations: 139.6 kB / 0.6833 GB, free: 15.41 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008512/1.245, allocations: 177.7 kB / 0.6835 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004482/1.245, allocations: 75.95 kB / 0.6835 GB, free: 15.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004391/1.249, allocations: 1.264 MB / 0.6848 GB, free: 13.88 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.11e-07/1.249, allocations: 0 / 0.6848 GB, free: 13.88 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01043/1.26, allocations: 1.738 MB / 0.6865 GB, free: 12.14 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.005024/1.265, allocations: 0.997 MB / 0.6875 GB, free: 11.21 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.03084/1.296, allocations: 6.855 MB / 0.6941 GB, free: 4.477 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/1.296, allocations: 0 / 0.6941 GB, free: 4.477 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007803/1.304, allocations: 2.246 MB / 0.6963 GB, free: 2.215 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0114/1.315, allocations: 1.049 MB / 0.6974 GB, free: 1.168 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02204/1.337, allocations: 6.651 MB / 0.7039 GB, free: 10.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003598/1.341, allocations: 1.875 MB / 0.7057 GB, free: 8.59 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007883/1.349, allocations: 0.9597 MB / 0.7066 GB, free: 7.629 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001468/1.35, allocations: 187.4 kB / 0.7068 GB, free: 7.445 MB / 494.1 MB Notification: Performance of SimCode: time 1.473e-06/1.35, allocations: 0 / 0.7068 GB, free: 7.445 MB / 494.1 MB Notification: Performance of Templates: time 0.3127/1.663, allocations: 74.77 MB / 0.7798 GB, free: 195.4 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 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)