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.001385/0.001385, allocations: 108.4 kB / 18.34 MB, free: 4.832 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.001518/0.001518, allocations: 190.9 kB / 19.28 MB, free: 3.898 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.432/1.432, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001225/0.001225, allocations: 51.92 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1052, allocations: 46.62 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.269/0.3742, allocations: 90.12 MB / 418.8 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03139/0.4056, allocations: 21.3 MB / 440.1 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003588/0.4093, allocations: 89.06 kB / 440.2 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002499/0.4119, allocations: 0.9328 MB / 441.1 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01017/0.422, allocations: 3.724 MB / 444.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01338/0.4354, allocations: 5.635 MB / 450.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01004/0.4455, allocations: 7.027 MB / 457.5 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003601/0.4491, allocations: 1.845 MB / 459.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1772/0.6264, allocations: 74.85 MB / 0.5217 GB, free: 7.512 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3033/0.9297, allocations: 31.9 MB / 0.5529 GB, free: 94.92 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009303/0.9307, allocations: 246.7 kB / 0.5531 GB, free: 94.92 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01348/0.9442, allocations: 6.091 MB / 0.559 GB, free: 93.94 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001528/0.9457, allocations: 1.09 MB / 0.5601 GB, free: 93.94 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002325/0.9481, allocations: 1.496 MB / 0.5616 GB, free: 93.94 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007965/0.9561, allocations: 5.519 MB / 0.567 GB, free: 93.54 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.9561, allocations: 3.844 kB / 0.567 GB, free: 93.54 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.9561, allocations: 0 / 0.567 GB, free: 93.54 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.31e-05/0.9561, allocations: 0 / 0.567 GB, free: 93.54 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.007887/0.964, allocations: 3.496 MB / 0.5704 GB, free: 92.07 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.9641, allocations: 7.75 kB / 0.5704 GB, free: 92.07 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009349/0.965, allocations: 317.7 kB / 0.5707 GB, free: 91.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002761/0.9678, allocations: 1.662 MB / 0.5723 GB, free: 91.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/0.968, allocations: 225.4 kB / 0.5725 GB, free: 91.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003122/0.9683, allocations: 197.7 kB / 0.5727 GB, free: 91.37 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004348/0.9727, allocations: 3.293 MB / 0.5759 GB, free: 91 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.307e-05/0.9727, allocations: 9.188 kB / 0.5759 GB, free: 91 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002228/0.9729, allocations: 81.77 kB / 0.576 GB, free: 91 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002664/0.9732, allocations: 249.7 kB / 0.5763 GB, free: 91 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004417/0.9776, allocations: 3.109 MB / 0.5793 GB, free: 90.98 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.01501/0.9927, allocations: 13.8 MB / 0.5928 GB, free: 79.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003456/0.9961, allocations: 2.214 MB / 0.5949 GB, free: 78.13 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001725/0.9979, allocations: 1.348 MB / 0.5962 GB, free: 77.11 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007104/1.005, allocations: 5.852 MB / 0.602 GB, free: 70.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/1.005, allocations: 54.81 kB / 0.602 GB, free: 70.73 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006475/1.006, allocations: 177.9 kB / 0.6022 GB, free: 70.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 3.166e-06/1.006, allocations: 0 / 0.6022 GB, free: 70.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.01996/1.026, allocations: 9.143 MB / 0.6111 GB, free: 61.34 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/1.026, allocations: 81.39 kB / 0.6112 GB, free: 61.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002627/1.028, allocations: 1.837 MB / 0.613 GB, free: 59.37 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002295/1.029, allocations: 65.7 kB / 0.613 GB, free: 59.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005537/1.029, allocations: 1.059 MB / 0.6141 GB, free: 58.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004912/1.03, allocations: 0.6749 MB / 0.6147 GB, free: 57.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007389/1.03, allocations: 463.3 kB / 0.6152 GB, free: 57.11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.379e-05/1.03, allocations: 305.1 kB / 0.6155 GB, free: 56.81 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00179/1.032, allocations: 1.231 MB / 0.6167 GB, free: 55.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002069/1.034, allocations: 1.805 MB / 0.6184 GB, free: 53.53 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003986/1.038, allocations: 3.165 MB / 0.6215 GB, free: 50.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.448e-05/1.038, allocations: 4 kB / 0.6215 GB, free: 50.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006559/1.045, allocations: 4.294 MB / 0.6257 GB, free: 45.99 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/1.045, allocations: 16 kB / 0.6257 GB, free: 45.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.878e-05/1.045, allocations: 16 kB / 0.6258 GB, free: 45.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01259/1.058, allocations: 3.634 MB / 0.6293 GB, free: 42.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/1.059, allocations: 329.4 kB / 0.6296 GB, free: 42.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005819/1.065, allocations: 3.948 MB / 0.6335 GB, free: 38.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002144/1.067, allocations: 103.9 kB / 0.6336 GB, free: 37.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003791/1.067, allocations: 112 kB / 0.6337 GB, free: 37.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002627/1.07, allocations: 1.668 MB / 0.6353 GB, free: 36.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002/1.072, allocations: 1.756 MB / 0.637 GB, free: 34.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004069/1.076, allocations: 3.05 MB / 0.64 GB, free: 30.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.466e-05/1.076, allocations: 8 kB / 0.64 GB, free: 30.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.005885/1.082, allocations: 4.023 MB / 0.6439 GB, free: 27.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/1.082, allocations: 16.06 kB / 0.644 GB, free: 27.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/1.082, allocations: 16 kB / 0.644 GB, free: 27.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008625/1.091, allocations: 2.749 MB / 0.6467 GB, free: 24.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/1.092, allocations: 378.9 kB / 0.647 GB, free: 23.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004961/1.097, allocations: 3.46 MB / 0.6504 GB, free: 20.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002704/1.1, allocations: 95.94 kB / 0.6505 GB, free: 20.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004244/1.1, allocations: 113 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.0009197/1.101, allocations: 320.7 kB / 0.6509 GB, free: 19.97 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008344/1.102, allocations: 225.3 kB / 0.6511 GB, free: 19.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00755/1.11, allocations: 3.948 MB / 0.655 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.589e-05/1.11, allocations: 27.98 kB / 0.655 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.921e-05/1.11, allocations: 0 / 0.655 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005143/1.115, allocations: 3.378 MB / 0.6583 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/1.125, allocations: 6.292 MB / 0.6644 GB, free: 6.008 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/1.125, allocations: 0 / 0.6644 GB, free: 6.008 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001353/1.127, allocations: 316.4 kB / 0.6647 GB, free: 5.715 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003708/1.13, allocations: 1.163 MB / 0.6659 GB, free: 4.535 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002134/1.131, allocations: 75.89 kB / 0.666 GB, free: 4.461 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008964/1.14, allocations: 11.06 MB / 0.6768 GB, free: 8.676 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/1.14, allocations: 0 / 0.6768 GB, free: 8.676 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009282/1.149, allocations: 5.179 MB / 0.6818 GB, free: 3.465 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001632/1.151, allocations: 0.5993 MB / 0.6824 GB, free: 2.844 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005982/1.151, allocations: 51.98 kB / 0.6824 GB, free: 2.793 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001583/1.153, allocations: 79.94 kB / 0.6825 GB, free: 2.715 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004548/1.153, allocations: 172.4 kB / 0.6827 GB, free: 2.551 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002142/1.153, allocations: 83.95 kB / 0.6828 GB, free: 2.469 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002044/1.156, allocations: 1.257 MB / 0.684 GB, free: 1.191 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.156, allocations: 0 / 0.684 GB, free: 1.191 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004789/1.16, 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.002674/1.163, allocations: 1.009 MB / 0.6867 GB, free: 14.53 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01061/1.174, allocations: 5.108 MB / 0.6917 GB, free: 9.523 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/1.174, allocations: 0 / 0.6917 GB, free: 9.523 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003993/1.178, allocations: 2.245 MB / 0.6939 GB, free: 7.25 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004397/1.182, allocations: 1.052 MB / 0.6949 GB, free: 6.203 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009252/1.191, allocations: 5.639 MB / 0.7004 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001623/1.193, allocations: 1.879 MB / 0.7022 GB, free: 14.63 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002671/1.196, allocations: 0.9588 MB / 0.7032 GB, free: 13.67 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006088/1.196, allocations: 191.4 kB / 0.7033 GB, free: 13.48 MB / 494.1 MB Notification: Performance of SimCode: time 6.11e-07/1.196, allocations: 0 / 0.7033 GB, free: 13.48 MB / 494.1 MB Notification: Performance of Templates: time 0.2414/1.438, allocations: 75.02 MB / 0.7766 GB, free: 202 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 gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)