Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001996/0.001996, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.842/1.842, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007424/0.0007424, allocations: 89.36 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000301/0.0003011, allocations: 12 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.2149, allocations: 47.58 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.07189/0.2868, allocations: 86.73 MB / 461.8 MB, free: 9.781 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02955/0.3164, allocations: 20.56 MB / 482.4 MB, free: 5.188 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002956/0.3194, allocations: 111.1 kB / 482.5 MB, free: 5.078 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002941/0.3224, allocations: 0.7765 MB / 483.3 MB, free: 4.297 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01045/0.3328, allocations: 3.628 MB / 486.9 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01102/0.3439, allocations: 4.456 MB / 491.3 MB, free: 12.2 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01043/0.3543, allocations: 8.739 MB / 0.4884 GB, free: 3.434 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003082/0.3574, allocations: 1.557 MB / 0.4899 GB, free: 1.855 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3851/0.7426, allocations: 126.1 MB / 0.6131 GB, free: 5.738 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07988/0.8225, allocations: 54.97 MB / 0.6668 GB, free: 3.797 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0008939/0.8235, allocations: 124 kB / 0.6669 GB, free: 3.676 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2436/1.067, allocations: 8.209 MB / 0.6749 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.002269/1.069, allocations: 0.9628 MB / 0.6758 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.002365/1.072, allocations: 1.326 MB / 0.6771 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0072/1.079, allocations: 3.95 MB / 0.681 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.852e-06/1.079, allocations: 0.9062 kB / 0.681 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.715e-06/1.079, allocations: 0 / 0.681 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001144/1.079, allocations: 0 / 0.681 GB, free: 137.6 MB / 0.4948 GB 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.008698/1.088, allocations: 2.995 MB / 0.6839 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/1.088, allocations: 7.969 kB / 0.6839 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001377/1.089, allocations: 307.9 kB / 0.6842 GB, free: 136.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003448/1.093, allocations: 1.574 MB / 0.6857 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002223/1.093, allocations: 214.5 kB / 0.6859 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004982/1.094, allocations: 203.8 kB / 0.6861 GB, free: 135.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005688/1.099, allocations: 3.284 MB / 0.6894 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.767e-05/1.099, allocations: 4.781 kB / 0.6894 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002293/1.1, allocations: 84.91 kB / 0.6894 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002955/1.1, allocations: 251.9 kB / 0.6897 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004918/1.105, allocations: 3.1 MB / 0.6927 GB, free: 135.2 MB / 0.4948 GB 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.01821/1.123, allocations: 13.81 MB / 0.7062 GB, free: 128.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003732/1.127, allocations: 2.218 MB / 0.7084 GB, free: 128.2 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001991/1.129, allocations: 1.355 MB / 0.7097 GB, free: 128.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008157/1.137, allocations: 5.872 MB / 0.7154 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/1.137, allocations: 54.31 kB / 0.7155 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001056/1.138, allocations: 178.7 kB / 0.7156 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=171): time 5.601e-06/1.138, allocations: 0 / 0.7156 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=197): time 0.02078/1.159, allocations: 9.213 MB / 0.7246 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/1.159, allocations: 71.81 kB / 0.7247 GB, free: 122.6 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002394/1.161, allocations: 1.829 MB / 0.7265 GB, free: 122 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002571/1.162, allocations: 62.58 kB / 0.7265 GB, free: 122 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006014/1.162, allocations: 1.061 MB / 0.7276 GB, free: 121.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004946/1.163, allocations: 0.6802 MB / 0.7282 GB, free: 121 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/1.163, allocations: 49.97 kB / 0.7283 GB, free: 121 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001138/1.163, allocations: 400.5 kB / 0.7287 GB, free: 120.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001647/1.165, allocations: 1.193 MB / 0.7298 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001934/1.167, allocations: 1.781 MB / 0.7316 GB, free: 119.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003799/1.17, allocations: 3.1 MB / 0.7346 GB, free: 117 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/1.17, allocations: 4 kB / 0.7346 GB, free: 117 MB / 0.4948 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006176/1.177, allocations: 4.213 MB / 0.7387 GB, free: 114.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002906/1.177, allocations: 0.6097 MB / 0.7393 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.924e-05/1.177, allocations: 16 kB / 0.7393 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01269/1.19, allocations: 3.662 MB / 0.7429 GB, free: 110.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/1.191, allocations: 332.3 kB / 0.7432 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00613/1.197, allocations: 3.946 MB / 0.7471 GB, free: 107 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002693/1.2, allocations: 187.7 kB / 0.7473 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002471/1.2, allocations: 115.6 kB / 0.7474 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/1.2, allocations: 4 kB / 0.7474 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005461/1.206, allocations: 3.797 MB / 0.7511 GB, free: 104.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.758e-05/1.206, allocations: 17.2 kB / 0.7511 GB, free: 104.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00894/1.215, allocations: 2.84 MB / 0.7539 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/1.216, allocations: 373.2 kB / 0.7542 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005046/1.221, allocations: 3.465 MB / 0.7576 GB, free: 99.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002515/1.224, allocations: 185.6 kB / 0.7578 GB, free: 98.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004119/1.224, allocations: 110.3 kB / 0.7579 GB, free: 98.84 MB / 0.4948 GB 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.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 initialization (175): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.001622/1.226, allocations: 0.7015 MB / 0.7586 GB, free: 98.36 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006265/1.227, allocations: 229.2 kB / 0.7588 GB, free: 98.13 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007245/1.234, allocations: 3.955 MB / 0.7627 GB, free: 95.4 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.621e-05/1.234, allocations: 27.98 kB / 0.7627 GB, free: 95.37 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-05/1.234, allocations: 4 kB / 0.7627 GB, free: 95.37 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005072/1.239, allocations: 3.376 MB / 0.766 GB, free: 92.89 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/1.25, allocations: 6.315 MB / 0.7722 GB, free: 88.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/1.25, allocations: 1.531 kB / 0.7722 GB, free: 88.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/1.251, allocations: 314.9 kB / 0.7725 GB, free: 88.22 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003949/1.255, allocations: 1.233 MB / 0.7737 GB, free: 87.16 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003207/1.255, allocations: 71.14 kB / 0.7737 GB, free: 87.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00728/1.263, allocations: 10.45 MB / 0.7839 GB, free: 77.15 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/1.263, allocations: 2.531 kB / 0.7839 GB, free: 77.15 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009178/1.272, allocations: 5.194 MB / 0.789 GB, free: 73.57 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001701/1.273, allocations: 0.6037 MB / 0.7896 GB, free: 72.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009519/1.274, allocations: 51.98 kB / 0.7896 GB, free: 72.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002246/1.277, allocations: 151.6 kB / 0.7898 GB, free: 72.76 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004295/1.277, allocations: 169.7 kB / 0.79 GB, free: 72.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000276/1.277, allocations: 83.95 kB / 0.79 GB, free: 72.52 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001885/1.279, allocations: 1.237 MB / 0.7912 GB, free: 71.26 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.9e-07/1.279, allocations: 0 / 0.7912 GB, free: 71.26 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006819/1.286, allocations: 1.734 MB / 0.7929 GB, free: 69.52 MB / 0.4948 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.002797/1.289, allocations: 1.01 MB / 0.7939 GB, free: 68.59 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009395/1.298, allocations: 4.968 MB / 0.7988 GB, free: 63.73 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/1.298, allocations: 0 / 0.7988 GB, free: 63.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003589/1.302, allocations: 2.231 MB / 0.801 GB, free: 61.46 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004798/1.307, allocations: 0.9783 MB / 0.8019 GB, free: 60.49 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00881/1.316, allocations: 6.682 MB / 0.8084 GB, free: 53.82 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/1.317, allocations: 1.844 MB / 0.8102 GB, free: 51.94 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007533/1.318, allocations: 203.4 kB / 0.8104 GB, free: 51.75 MB / 0.4948 GB Notification: Performance of SimCode: time 8.82e-07/1.318, allocations: 0 / 0.8104 GB, free: 51.75 MB / 0.4948 GB Notification: Performance of Templates: time 0.2551/1.573, allocations: 88.38 MB / 0.8967 GB, free: 206.7 MB / 0.4948 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)