Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001533/0.001533, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001819/0.001819, allocations: 191.7 kB / 16.14 MB, free: 6.707 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.478/1.478, allocations: 205.1 MB / 222 MB, free: 4.762 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.001143/0.001143, allocations: 47.92 kB / 278 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2891, allocations: 46.63 MB / 324.7 MB, free: 1.914 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.1005/0.3897, allocations: 95.47 MB / 420.1 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03721/0.4269, allocations: 22.6 MB / 442.7 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004536/0.4315, allocations: 115.1 kB / 442.9 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003198/0.4348, allocations: 0.8121 MB / 443.7 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01103/0.4458, allocations: 3.513 MB / 447.2 MB, free: 9.273 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01437/0.4602, allocations: 4.916 MB / 452.1 MB, free: 4.348 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2866/0.7468, allocations: 10.69 MB / 462.8 MB, free: 6.422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003713/0.7506, allocations: 1.591 MB / 464.4 MB, free: 6.359 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1722/0.9228, allocations: 73.39 MB / 0.5252 GB, free: 12.9 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07666/0.9995, allocations: 31.97 MB / 0.5564 GB, free: 1.66 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001538/1.001, allocations: 132 kB / 0.5565 GB, free: 1.531 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01894/1.02, allocations: 5.956 MB / 0.5623 GB, free: 12.15 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002975/1.023, allocations: 0.9791 MB / 0.5633 GB, free: 11.2 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003966/1.027, allocations: 1.38 MB / 0.5646 GB, free: 9.836 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0134/1.041, allocations: 5.364 MB / 0.5699 GB, free: 4.859 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.858e-06/1.041, allocations: 0 / 0.5699 GB, free: 4.859 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.304e-06/1.041, allocations: 0 / 0.5699 GB, free: 4.859 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001193/1.041, allocations: 0 / 0.5699 GB, free: 4.859 MB / 462.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.01248/1.053, allocations: 3.501 MB / 0.5733 GB, free: 1.363 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.849e-05/1.053, allocations: 8.031 kB / 0.5733 GB, free: 1.355 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001309/1.055, allocations: 308.5 kB / 0.5736 GB, free: 1.051 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003499/1.058, allocations: 1.576 MB / 0.5751 GB, free: 15.51 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002289/1.058, allocations: 219 kB / 0.5753 GB, free: 15.3 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004366/1.059, allocations: 197.4 kB / 0.5755 GB, free: 15.11 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006169/1.065, allocations: 3.294 MB / 0.5787 GB, free: 11.73 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.037e-05/1.065, allocations: 11.17 kB / 0.5787 GB, free: 11.73 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002742/1.065, allocations: 85.2 kB / 0.5788 GB, free: 11.66 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000341/1.066, allocations: 250.8 kB / 0.5791 GB, free: 11.41 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005726/1.072, allocations: 3.105 MB / 0.5821 GB, free: 8.332 MB / 478.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.02333/1.095, allocations: 13.77 MB / 0.5955 GB, free: 9.863 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004557/1.1, allocations: 2.222 MB / 0.5977 GB, free: 7.648 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002273/1.102, allocations: 1.359 MB / 0.599 GB, free: 6.289 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009713/1.112, allocations: 5.853 MB / 0.6048 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.204e-05/1.112, allocations: 60.5 kB / 0.6048 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001201/1.113, allocations: 181.9 kB / 0.605 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=171): time 3.747e-06/1.113, allocations: 4 kB / 0.605 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=197): time 0.02422/1.137, allocations: 9.142 MB / 0.6139 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.526e-05/1.137, allocations: 76.39 kB / 0.614 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003164/1.14, allocations: 1.841 MB / 0.6158 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002787/1.141, allocations: 61.7 kB / 0.6158 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001011/1.142, allocations: 1.063 MB / 0.6169 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007908/1.143, allocations: 0.6836 MB / 0.6175 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000793/1.143, allocations: 460.3 kB / 0.618 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001465/1.143, allocations: 302.8 kB / 0.6183 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002436/1.146, allocations: 1.233 MB / 0.6195 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2452/1.391, allocations: 1.801 MB / 0.6212 GB, free: 239.7 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007858/1.399, allocations: 3.16 MB / 0.6243 GB, free: 238.5 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.879e-05/1.399, allocations: 5.281 kB / 0.6243 GB, free: 238.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01067/1.41, allocations: 4.302 MB / 0.6285 GB, free: 237 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.438e-05/1.41, allocations: 11.84 kB / 0.6285 GB, free: 237 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.403e-05/1.41, allocations: 15.78 kB / 0.6286 GB, free: 237 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0206/1.431, allocations: 3.636 MB / 0.6321 GB, free: 236.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001959/1.433, allocations: 329.5 kB / 0.6324 GB, free: 236.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008922/1.442, allocations: 3.951 MB / 0.6363 GB, free: 234.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003453/1.445, allocations: 181.9 kB / 0.6365 GB, free: 234.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003726/1.445, allocations: 113.2 kB / 0.6366 GB, free: 234.1 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003616/1.449, allocations: 1.671 MB / 0.6382 GB, free: 233.1 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00294/1.452, allocations: 1.755 MB / 0.6399 GB, free: 231.8 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005831/1.458, allocations: 3.05 MB / 0.6429 GB, free: 228.6 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.822e-05/1.458, allocations: 9.594 kB / 0.6429 GB, free: 228.6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.009372/1.467, allocations: 4.024 MB / 0.6468 GB, free: 224.7 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/1.467, allocations: 13.34 kB / 0.6468 GB, free: 224.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-05/1.467, allocations: 16 kB / 0.6469 GB, free: 224.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01422/1.482, allocations: 2.752 MB / 0.6495 GB, free: 222 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002599/1.484, allocations: 371.4 kB / 0.6499 GB, free: 221.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00731/1.492, allocations: 3.461 MB / 0.6533 GB, free: 218.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003363/1.495, allocations: 192.5 kB / 0.6535 GB, free: 218 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003093/1.495, allocations: 112 kB / 0.6536 GB, free: 217.9 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.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.0008064/1.496, allocations: 313.6 kB / 0.6539 GB, free: 217.6 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005882/1.497, allocations: 229.9 kB / 0.6541 GB, free: 217.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/1.507, allocations: 3.949 MB / 0.6579 GB, free: 213.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.184e-05/1.507, allocations: 23.98 kB / 0.658 GB, free: 213.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.768e-05/1.507, allocations: 4 kB / 0.658 GB, free: 213.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007532/1.514, allocations: 3.382 MB / 0.6613 GB, free: 210 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01365/1.528, allocations: 6.301 MB / 0.6674 GB, free: 203.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/1.528, allocations: 0 / 0.6674 GB, free: 203.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002194/1.53, allocations: 314.5 kB / 0.6677 GB, free: 203.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006202/1.537, allocations: 1.207 MB / 0.6689 GB, free: 202.2 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005164/1.537, allocations: 71.95 kB / 0.669 GB, free: 202.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009839/1.547, allocations: 10.42 MB / 0.6791 GB, free: 191 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/1.547, allocations: 0 / 0.6791 GB, free: 191 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008889/1.556, allocations: 5.183 MB / 0.6842 GB, free: 185.8 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001861/1.558, allocations: 0.5996 MB / 0.6848 GB, free: 185.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006631/1.559, allocations: 63.92 kB / 0.6849 GB, free: 185.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001969/1.561, allocations: 138.1 kB / 0.685 GB, free: 185 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004091/1.561, allocations: 169.8 kB / 0.6851 GB, free: 184.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000211/1.561, allocations: 79.89 kB / 0.6852 GB, free: 184.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001996/1.563, allocations: 1.264 MB / 0.6865 GB, free: 183.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.563, allocations: 0 / 0.6865 GB, free: 183.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005623/1.569, allocations: 1.74 MB / 0.6882 GB, free: 181.9 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 (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.002925/1.572, allocations: 1.006 MB / 0.6891 GB, free: 181.1 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01086/1.583, allocations: 5.062 MB / 0.6941 GB, free: 176 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/1.583, allocations: 4 kB / 0.6941 GB, free: 176 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004154/1.587, allocations: 2.246 MB / 0.6963 GB, free: 173.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005642/1.593, allocations: 0.9933 MB / 0.6973 GB, free: 172.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/1.603, allocations: 6.642 MB / 0.7037 GB, free: 166.1 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00185/1.605, allocations: 1.879 MB / 0.7056 GB, free: 164.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003575/1.609, allocations: 0.9525 MB / 0.7065 GB, free: 163.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008708/1.61, allocations: 187.4 kB / 0.7067 GB, free: 163 MB / 0.4981 GB Notification: Performance of SimCode: time 2.374e-06/1.61, allocations: 4 kB / 0.7067 GB, free: 163 MB / 0.4981 GB Notification: Performance of Templates: time 0.0961/1.706, allocations: 72.03 MB / 0.777 GB, free: 90.91 MB / 0.4981 GB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)