Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001038/0.001038, allocations: 88.62 kB / 16.31 MB, free: 6.457 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.00121/0.00121, allocations: 183.1 kB / 17.21 MB, free: 6.328 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.65/1.65, allocations: 205.4 MB / 223.4 MB, free: 5.812 MB / 174.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.0005813/0.0005814, allocations: 16 kB / 280.1 MB, free: 13.08 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2564, allocations: 47.58 MB / 327.7 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.08634/0.3428, allocations: 86.53 MB / 414.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03261/0.3754, allocations: 20.54 MB / 434.8 MB, free: 8.227 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004264/0.3797, allocations: 111.1 kB / 434.9 MB, free: 8.117 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00325/0.383, allocations: 0.7725 MB / 435.7 MB, free: 7.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01148/0.3945, allocations: 3.429 MB / 439.1 MB, free: 3.895 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01332/0.4079, allocations: 4.439 MB / 443.5 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01174/0.4196, allocations: 8.706 MB / 452.2 MB, free: 6.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004264/0.4239, allocations: 1.515 MB / 453.8 MB, free: 5.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4829/0.9068, allocations: 126.4 MB / 0.5666 GB, free: 11.76 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.09259/0.9994, allocations: 55.01 MB / 0.6203 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.001229/1.001, allocations: 128 kB / 0.6204 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01729/1.018, allocations: 7.953 MB / 0.6282 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.002622/1.021, allocations: 0.9657 MB / 0.6291 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002206/1.023, allocations: 0.5254 MB / 0.6296 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.2573/1.28, allocations: 3.836 MB / 0.6334 GB, free: 141.6 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/1.28, allocations: 4.562 kB / 0.6334 GB, free: 141.6 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.765e-06/1.28, allocations: 0 / 0.6334 GB, free: 141.6 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001919/1.281, allocations: 1.812 kB / 0.6334 GB, free: 141.6 MB / 0.4981 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.01057/1.291, allocations: 3.022 MB / 0.6363 GB, free: 140.3 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.068e-05/1.291, allocations: 9.125 kB / 0.6363 GB, free: 140.3 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002029/1.293, allocations: 311.8 kB / 0.6366 GB, free: 140.1 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004165/1.297, allocations: 1.521 MB / 0.6381 GB, free: 139.7 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002228/1.298, allocations: 216.2 kB / 0.6383 GB, free: 139.7 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004372/1.298, allocations: 200 kB / 0.6385 GB, free: 139.6 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005547/1.304, allocations: 3.281 MB / 0.6417 GB, free: 139.3 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.005e-05/1.304, allocations: 6.781 kB / 0.6417 GB, free: 139.3 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002467/1.304, allocations: 87.11 kB / 0.6418 GB, free: 139.3 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003174/1.304, allocations: 250 kB / 0.6421 GB, free: 139.3 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005148/1.309, allocations: 3.108 MB / 0.6451 GB, free: 139.3 MB / 0.4981 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.0223/1.332, allocations: 13.79 MB / 0.6586 GB, free: 132.4 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004198/1.336, allocations: 2.227 MB / 0.6607 GB, free: 132.3 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002227/1.338, allocations: 1.352 MB / 0.6621 GB, free: 132.3 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01051/1.349, allocations: 5.883 MB / 0.6678 GB, free: 129.4 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.607e-05/1.349, allocations: 53.56 kB / 0.6678 GB, free: 129.3 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001605/1.35, allocations: 181.9 kB / 0.668 GB, free: 129.2 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=171): time 1.076e-05/1.351, allocations: 0 / 0.668 GB, free: 129.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=197): time 0.02391/1.374, allocations: 9.29 MB / 0.6771 GB, free: 128 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/1.375, allocations: 76.23 kB / 0.6772 GB, free: 128 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003177/1.378, allocations: 1.821 MB / 0.6789 GB, free: 127.7 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003033/1.378, allocations: 62.77 kB / 0.679 GB, free: 127.7 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008171/1.379, allocations: 1.066 MB / 0.68 GB, free: 127.3 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007219/1.38, allocations: 0.6785 MB / 0.6807 GB, free: 126.8 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002591/1.38, allocations: 49.09 kB / 0.6808 GB, free: 126.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001566/1.38, allocations: 394.6 kB / 0.6811 GB, free: 126.5 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002001/1.382, allocations: 1.192 MB / 0.6823 GB, free: 126.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002301/1.384, allocations: 1.774 MB / 0.684 GB, free: 125.8 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002325/1.387, allocations: 1.456 MB / 0.6855 GB, free: 125.6 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.959e-05/1.387, allocations: 6.656 kB / 0.6855 GB, free: 125.6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.006981/1.394, allocations: 4.21 MB / 0.6896 GB, free: 124.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003442/1.394, allocations: 0.6056 MB / 0.6902 GB, free: 124.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.071e-05/1.394, allocations: 16.28 kB / 0.6902 GB, free: 124.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01249/1.407, allocations: 3.669 MB / 0.6938 GB, free: 121.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/1.408, allocations: 328.9 kB / 0.6941 GB, free: 121 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007167/1.415, allocations: 3.941 MB / 0.6979 GB, free: 118.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003105/1.418, allocations: 191.9 kB / 0.6981 GB, free: 118 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00048/1.419, allocations: 116 kB / 0.6982 GB, free: 117.9 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/1.419, allocations: 4 kB / 0.6982 GB, free: 117.9 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006517/1.425, allocations: 3.795 MB / 0.7019 GB, free: 115.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.464e-05/1.426, allocations: 16 kB / 0.7019 GB, free: 115.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008952/1.435, allocations: 2.83 MB / 0.7047 GB, free: 113 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001725/1.436, allocations: 381.1 kB / 0.7051 GB, free: 112.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006903/1.443, allocations: 3.465 MB / 0.7084 GB, free: 110.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003715/1.447, allocations: 189.6 kB / 0.7086 GB, free: 110.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000574/1.448, allocations: 114.5 kB / 0.7087 GB, free: 110 MB / 0.4981 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.002293/1.45, allocations: 0.6981 MB / 0.7094 GB, free: 109.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/1.451, allocations: 232.9 kB / 0.7096 GB, free: 109.3 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01069/1.462, allocations: 3.957 MB / 0.7135 GB, free: 106.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.469e-05/1.462, allocations: 24 kB / 0.7135 GB, free: 106.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.841e-05/1.462, allocations: 4 kB / 0.7135 GB, free: 106.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007513/1.469, allocations: 3.381 MB / 0.7168 GB, free: 104 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01555/1.485, allocations: 6.307 MB / 0.723 GB, free: 99.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.082e-05/1.485, allocations: 1.859 kB / 0.723 GB, free: 99.64 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/1.487, allocations: 322.5 kB / 0.7233 GB, free: 99.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003946/1.491, allocations: 1.225 MB / 0.7245 GB, free: 98.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003245/1.491, allocations: 75.06 kB / 0.7246 GB, free: 98.26 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007748/1.499, allocations: 10.45 MB / 0.7348 GB, free: 88.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.499, allocations: 0 / 0.7348 GB, free: 88.29 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008688/1.507, allocations: 5.191 MB / 0.7398 GB, free: 84.71 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001768/1.509, allocations: 0.6056 MB / 0.7404 GB, free: 84.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000865/1.51, allocations: 53.17 kB / 0.7405 GB, free: 84.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002126/1.512, allocations: 154.1 kB / 0.7406 GB, free: 84.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003817/1.513, allocations: 163.6 kB / 0.7408 GB, free: 83.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002329/1.513, allocations: 82.02 kB / 0.7409 GB, free: 83.87 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001998/1.515, allocations: 1.242 MB / 0.7421 GB, free: 82.94 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.71e-07/1.515, allocations: 4 kB / 0.7421 GB, free: 82.94 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006705/1.522, allocations: 1.734 MB / 0.7438 GB, free: 81.3 MB / 0.4981 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.002708/1.524, allocations: 0.9794 MB / 0.7447 GB, free: 80.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01064/1.535, allocations: 4.957 MB / 0.7496 GB, free: 75.55 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/1.535, allocations: 4.312 kB / 0.7496 GB, free: 75.54 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004158/1.539, allocations: 2.244 MB / 0.7518 GB, free: 73.28 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006505/1.546, allocations: 0.9937 MB / 0.7527 GB, free: 72.28 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/1.557, allocations: 6.598 MB / 0.7592 GB, free: 65.69 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002163/1.56, allocations: 1.871 MB / 0.761 GB, free: 63.78 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004129/1.564, allocations: 0.959 MB / 0.7619 GB, free: 62.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008526/1.565, allocations: 195.4 kB / 0.7621 GB, free: 62.62 MB / 0.4981 GB Notification: Performance of SimCode: time 7.32e-07/1.565, allocations: 0 / 0.7621 GB, free: 62.62 MB / 0.4981 GB Notification: Performance of Templates: time 0.2963/1.861, allocations: 70.14 MB / 0.8306 GB, free: 228.6 MB / 0.4981 GB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)