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.001089/0.001089, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.00133/0.00133, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.347/1.347, allocations: 222.9 MB / 242.3 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 53.31 kB / 302 MB, free: 5.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1013, allocations: 49.43 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2744/0.3757, allocations: 90.09 MB / 441.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03481/0.4106, allocations: 21.31 MB / 462.9 MB, free: 4.289 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003243/0.4139, allocations: 87.44 kB / 463 MB, free: 4.203 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003156/0.417, allocations: 0.9434 MB / 463.9 MB, free: 3.254 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01082/0.4279, allocations: 3.725 MB / 467.6 MB, free: 15.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01307/0.441, allocations: 5.677 MB / 473.3 MB, free: 9.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01142/0.4525, allocations: 7.042 MB / 480.4 MB, free: 2.781 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00435/0.4569, allocations: 1.834 MB / 482.2 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4416/0.8985, allocations: 74.88 MB / 0.544 GB, free: 60.81 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06553/0.9641, allocations: 31.92 MB / 0.5752 GB, free: 51.1 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008916/0.965, allocations: 249.9 kB / 0.5754 GB, free: 51.1 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01335/0.9783, allocations: 6.096 MB / 0.5814 GB, free: 49.18 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002429/0.9808, allocations: 1.086 MB / 0.5824 GB, free: 48.6 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002721/0.9836, allocations: 1.498 MB / 0.5839 GB, free: 47.82 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009802/0.9934, allocations: 5.527 MB / 0.5893 GB, free: 43.69 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.9934, allocations: 0 / 0.5893 GB, free: 43.69 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.9934, allocations: 0 / 0.5893 GB, free: 43.69 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.053e-05/0.9935, allocations: 0 / 0.5893 GB, free: 43.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.007965/1.001, allocations: 3.499 MB / 0.5927 GB, free: 40.64 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/1.002, allocations: 12.03 kB / 0.5927 GB, free: 40.63 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008716/1.002, allocations: 308.5 kB / 0.593 GB, free: 40.33 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002785/1.005, allocations: 1.67 MB / 0.5947 GB, free: 38.99 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/1.005, allocations: 215.6 kB / 0.5949 GB, free: 38.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000303/1.006, allocations: 202.6 kB / 0.5951 GB, free: 38.71 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004392/1.01, allocations: 3.299 MB / 0.5983 GB, free: 36.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.232e-05/1.01, allocations: 9.969 kB / 0.5983 GB, free: 36.27 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000203/1.01, allocations: 78.75 kB / 0.5984 GB, free: 36.25 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002482/1.011, allocations: 250.8 kB / 0.5986 GB, free: 36.04 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004286/1.015, allocations: 3.105 MB / 0.6016 GB, free: 33.97 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.01734/1.032, allocations: 13.78 MB / 0.6151 GB, free: 21.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003454/1.036, allocations: 2.211 MB / 0.6173 GB, free: 19.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001704/1.038, allocations: 1.356 MB / 0.6186 GB, free: 18.04 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00706/1.045, allocations: 5.859 MB / 0.6243 GB, free: 11.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/1.045, allocations: 52.56 kB / 0.6243 GB, free: 11.64 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006868/1.045, allocations: 176.4 kB / 0.6245 GB, free: 11.47 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 4.158e-06/1.045, allocations: 4 kB / 0.6245 GB, free: 11.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.01974/1.065, allocations: 9.147 MB / 0.6335 GB, free: 2.266 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/1.065, allocations: 73.41 kB / 0.6335 GB, free: 2.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002363/1.068, allocations: 1.849 MB / 0.6353 GB, free: 296 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002538/1.068, allocations: 61.7 kB / 0.6354 GB, free: 228 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008317/1.069, allocations: 1.058 MB / 0.6364 GB, free: 15.15 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006678/1.069, allocations: 0.6791 MB / 0.6371 GB, free: 14.48 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007612/1.07, allocations: 460.3 kB / 0.6375 GB, free: 14.02 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/1.07, allocations: 301.1 kB / 0.6378 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002109/1.072, allocations: 1.231 MB / 0.639 GB, free: 12.49 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002506/1.075, allocations: 1.807 MB / 0.6408 GB, free: 10.45 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005122/1.08, allocations: 3.154 MB / 0.6439 GB, free: 7.125 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-05/1.08, allocations: 8 kB / 0.6439 GB, free: 7.117 MB / 462.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008214/1.088, allocations: 4.296 MB / 0.6481 GB, free: 2.914 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.126e-05/1.088, allocations: 16.19 kB / 0.6481 GB, free: 2.898 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.411e-05/1.088, allocations: 19.98 kB / 0.6481 GB, free: 2.879 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01398/1.102, allocations: 3.633 MB / 0.6516 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/1.104, allocations: 329.7 kB / 0.652 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006634/1.111, allocations: 3.949 MB / 0.6558 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002029/1.113, allocations: 91.89 kB / 0.6559 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002685/1.113, allocations: 116 kB / 0.656 GB, free: 10.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002802/1.116, allocations: 1.676 MB / 0.6576 GB, free: 9.121 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00238/1.118, allocations: 1.754 MB / 0.6594 GB, free: 7.125 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004701/1.123, allocations: 3.05 MB / 0.6623 GB, free: 3.898 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.292e-05/1.123, allocations: 4 kB / 0.6623 GB, free: 3.895 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007485/1.13, allocations: 4.03 MB / 0.6663 GB, free: 15.96 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.91e-05/1.13, allocations: 12 kB / 0.6663 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.666e-05/1.13, allocations: 20.09 kB / 0.6663 GB, free: 15.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01/1.14, allocations: 2.74 MB / 0.669 GB, free: 13.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/1.142, allocations: 378.4 kB / 0.6693 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006035/1.148, allocations: 3.468 MB / 0.6727 GB, free: 9.387 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002445/1.151, allocations: 95.94 kB / 0.6728 GB, free: 9.293 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002844/1.151, allocations: 108 kB / 0.6729 GB, free: 9.188 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.0007773/1.152, allocations: 324 kB / 0.6732 GB, free: 8.891 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005467/1.153, allocations: 229.3 kB / 0.6735 GB, free: 8.664 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008002/1.161, allocations: 3.953 MB / 0.6773 GB, free: 4.719 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.971e-05/1.161, allocations: 27.98 kB / 0.6773 GB, free: 4.691 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-05/1.161, allocations: 4 kB / 0.6773 GB, free: 4.688 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005745/1.166, allocations: 3.369 MB / 0.6806 GB, free: 1.238 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01143/1.178, allocations: 6.289 MB / 0.6868 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/1.178, allocations: 0 / 0.6868 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001528/1.179, allocations: 329.7 kB / 0.6871 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00411/1.184, allocations: 1.151 MB / 0.6882 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003984/1.184, allocations: 75.94 kB / 0.6883 GB, free: 9.379 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009701/1.194, allocations: 11.06 MB / 0.6991 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/1.194, allocations: 0 / 0.6991 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009131/1.203, allocations: 5.184 MB / 0.7042 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001541/1.204, allocations: 0.5954 MB / 0.7047 GB, free: 7.766 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00038/1.205, allocations: 55.98 kB / 0.7048 GB, free: 7.711 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/1.206, allocations: 71.94 kB / 0.7049 GB, free: 7.641 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003717/1.207, allocations: 168.6 kB / 0.705 GB, free: 7.48 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001964/1.207, allocations: 83.89 kB / 0.7051 GB, free: 7.398 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001719/1.209, allocations: 1.261 MB / 0.7063 GB, free: 6.117 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/1.209, allocations: 0 / 0.7063 GB, free: 6.117 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004283/1.213, allocations: 1.73 MB / 0.708 GB, free: 4.387 MB / 0.5137 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.002199/1.215, allocations: 1.014 MB / 0.709 GB, free: 3.449 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01075/1.226, allocations: 5.114 MB / 0.714 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/1.226, allocations: 0 / 0.714 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004437/1.23, allocations: 2.245 MB / 0.7162 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004781/1.235, allocations: 1.044 MB / 0.7172 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/1.245, allocations: 5.644 MB / 0.7227 GB, free: 5.508 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001468/1.247, allocations: 1.887 MB / 0.7246 GB, free: 3.582 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003101/1.25, allocations: 0.9557 MB / 0.7255 GB, free: 2.625 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005489/1.251, allocations: 195.4 kB / 0.7257 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of SimCode: time 1.042e-06/1.251, allocations: 0 / 0.7257 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of Templates: time 0.2597/1.51, allocations: 75.09 MB / 0.799 GB, free: 193 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 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)