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.001204/0.001204, allocations: 106.4 kB / 17.15 MB, free: 6.305 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.001332/0.001332, allocations: 198 kB / 18.07 MB, free: 5.41 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.528/1.528, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001358/0.001358, allocations: 47.92 kB / 280 MB, free: 3.613 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1083, allocations: 46.63 MB / 326.6 MB, free: 4.918 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3498/0.4582, allocations: 95.48 MB / 422.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03634/0.4945, allocations: 22.59 MB / 444.7 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005349/0.5, allocations: 119.1 kB / 444.8 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003121/0.5032, allocations: 0.816 MB / 445.6 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01233/0.5155, allocations: 3.513 MB / 449.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01542/0.5309, allocations: 4.911 MB / 454 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01393/0.5449, allocations: 10.7 MB / 464.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003837/0.5488, allocations: 1.595 MB / 466.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.173/0.7218, allocations: 73.37 MB / 0.527 GB, free: 1.5 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3384/1.06, allocations: 31.96 MB / 0.5582 GB, free: 84.23 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001368/1.062, allocations: 132.8 kB / 0.5584 GB, free: 84.23 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0171/1.079, allocations: 5.953 MB / 0.5642 GB, free: 83.22 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002943/1.082, allocations: 0.9812 MB / 0.5651 GB, free: 83.22 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003279/1.085, allocations: 1.378 MB / 0.5665 GB, free: 83.22 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01186/1.097, allocations: 5.368 MB / 0.5717 GB, free: 82.85 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.177e-06/1.097, allocations: 0 / 0.5717 GB, free: 82.85 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.034e-06/1.097, allocations: 0 / 0.5717 GB, free: 82.85 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001653/1.097, allocations: 0 / 0.5717 GB, free: 82.85 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.01082/1.108, allocations: 3.497 MB / 0.5751 GB, free: 81.42 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/1.108, allocations: 7.469 kB / 0.5751 GB, free: 81.42 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/1.109, allocations: 313.3 kB / 0.5754 GB, free: 81.28 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002634/1.112, allocations: 1.578 MB / 0.577 GB, free: 80.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001897/1.112, allocations: 219.5 kB / 0.5772 GB, free: 80.74 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003562/1.112, allocations: 201.6 kB / 0.5774 GB, free: 80.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006533/1.119, allocations: 3.297 MB / 0.5806 GB, free: 80.35 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.982e-05/1.119, allocations: 5.25 kB / 0.5806 GB, free: 80.35 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002947/1.119, allocations: 83.62 kB / 0.5807 GB, free: 80.35 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004023/1.12, allocations: 253.9 kB / 0.5809 GB, free: 80.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00549/1.125, allocations: 3.108 MB / 0.584 GB, free: 79.8 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.01775/1.143, allocations: 13.78 MB / 0.5974 GB, free: 69.34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003693/1.147, allocations: 2.216 MB / 0.5996 GB, free: 67.94 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001932/1.149, allocations: 1.354 MB / 0.6009 GB, free: 67.04 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007959/1.157, allocations: 5.858 MB / 0.6066 GB, free: 61.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/1.157, allocations: 51.81 kB / 0.6067 GB, free: 61.77 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000961/1.158, allocations: 175.9 kB / 0.6068 GB, free: 61.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 4.859e-06/1.158, allocations: 4 kB / 0.6068 GB, free: 61.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.0204/1.178, allocations: 9.154 MB / 0.6158 GB, free: 52.74 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/1.178, allocations: 77.39 kB / 0.6159 GB, free: 52.65 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00228/1.18, allocations: 1.847 MB / 0.6177 GB, free: 50.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001748/1.181, allocations: 61.7 kB / 0.6177 GB, free: 50.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005361/1.181, allocations: 1.065 MB / 0.6188 GB, free: 49.63 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004384/1.182, allocations: 0.6728 MB / 0.6194 GB, free: 48.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006457/1.182, allocations: 460.3 kB / 0.6199 GB, free: 48.51 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.306e-05/1.182, allocations: 301.1 kB / 0.6201 GB, free: 48.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001769/1.184, allocations: 1.233 MB / 0.6214 GB, free: 46.97 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00201/1.186, allocations: 1.805 MB / 0.6231 GB, free: 44.93 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003927/1.19, allocations: 3.162 MB / 0.6262 GB, free: 41.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.207e-05/1.19, allocations: 8 kB / 0.6262 GB, free: 41.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006652/1.197, allocations: 4.294 MB / 0.6304 GB, free: 37.39 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.414e-05/1.197, allocations: 16.19 kB / 0.6304 GB, free: 37.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/1.197, allocations: 16 kB / 0.6304 GB, free: 37.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01305/1.21, allocations: 3.63 MB / 0.634 GB, free: 33.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001685/1.212, allocations: 331.6 kB / 0.6343 GB, free: 33.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007012/1.219, allocations: 3.951 MB / 0.6382 GB, free: 29.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003023/1.222, allocations: 191.7 kB / 0.6383 GB, free: 29.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004999/1.222, allocations: 112 kB / 0.6384 GB, free: 29.19 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003182/1.225, allocations: 1.668 MB / 0.6401 GB, free: 27.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002221/1.228, allocations: 1.754 MB / 0.6418 GB, free: 25.52 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004005/1.232, allocations: 3.045 MB / 0.6448 GB, free: 22.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.461e-05/1.232, allocations: 8 kB / 0.6448 GB, free: 22.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006983/1.239, allocations: 4.029 MB / 0.6487 GB, free: 18.36 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/1.239, allocations: 12 kB / 0.6487 GB, free: 18.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.591e-05/1.239, allocations: 17.8 kB / 0.6487 GB, free: 18.33 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009027/1.248, allocations: 2.747 MB / 0.6514 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/1.25, allocations: 383.8 kB / 0.6518 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005403/1.255, allocations: 3.465 MB / 0.6552 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003037/1.258, allocations: 191.7 kB / 0.6553 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004959/1.259, allocations: 112 kB / 0.6555 GB, free: 11.48 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.0008554/1.26, allocations: 308 kB / 0.6557 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008412/1.26, allocations: 225.3 kB / 0.656 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008191/1.269, allocations: 3.955 MB / 0.6598 GB, free: 7.035 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.693e-05/1.269, allocations: 23.98 kB / 0.6598 GB, free: 7.012 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.121e-05/1.269, allocations: 4 kB / 0.6598 GB, free: 7.008 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005418/1.274, allocations: 3.378 MB / 0.6631 GB, free: 3.555 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01325/1.287, allocations: 6.306 MB / 0.6693 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/1.287, allocations: 0 / 0.6693 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/1.289, allocations: 313.1 kB / 0.6696 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004562/1.293, allocations: 1.202 MB / 0.6708 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003287/1.294, allocations: 79.88 kB / 0.6709 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01141/1.305, allocations: 10.42 MB / 0.681 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.827e-06/1.305, allocations: 3.938 kB / 0.681 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01277/1.318, allocations: 5.181 MB / 0.6861 GB, free: 11.33 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002149/1.32, allocations: 0.5993 MB / 0.6867 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009238/1.321, allocations: 47.98 kB / 0.6867 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002473/1.324, allocations: 143.7 kB / 0.6869 GB, free: 10.52 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005541/1.324, allocations: 165.8 kB / 0.687 GB, free: 10.36 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002833/1.325, allocations: 84.33 kB / 0.6871 GB, free: 10.27 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002645/1.327, allocations: 1.257 MB / 0.6883 GB, free: 8.996 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.01e-07/1.327, allocations: 6.062 kB / 0.6883 GB, free: 8.992 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008436/1.336, allocations: 1.745 MB / 0.69 GB, free: 7.246 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.003722/1.339, allocations: 1.001 MB / 0.691 GB, free: 6.316 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01424/1.354, allocations: 5.067 MB / 0.696 GB, free: 1.352 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/1.354, allocations: 0 / 0.696 GB, free: 1.352 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005615/1.359, allocations: 2.239 MB / 0.6982 GB, free: 15.09 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007808/1.367, allocations: 0.9882 MB / 0.6991 GB, free: 14.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01562/1.383, allocations: 6.646 MB / 0.7056 GB, free: 7.441 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002945/1.386, allocations: 1.875 MB / 0.7074 GB, free: 5.527 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004801/1.391, allocations: 0.9558 MB / 0.7084 GB, free: 4.57 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000986/1.392, allocations: 191.4 kB / 0.7086 GB, free: 4.383 MB / 494.1 MB Notification: Performance of SimCode: time 1.343e-06/1.392, allocations: 0 / 0.7086 GB, free: 4.383 MB / 494.1 MB Notification: Performance of Templates: time 0.2773/1.669, allocations: 72.04 MB / 0.7789 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)