Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") 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: 103.4 kB / 15.33 MB, free: 0.5078 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.00268/0.00268, allocations: 189.7 kB / 16.25 MB, free: 6.617 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.537/1.537, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.00133/0.00133, allocations: 51.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.294, allocations: 46.62 MB / 324.8 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03158/0.3256, allocations: 30.23 MB / 355.1 MB, free: 5.777 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02244/0.3481, allocations: 15.31 MB / 370.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002621/0.3508, allocations: 63.5 kB / 370.4 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00185/0.3527, allocations: 0.5323 MB / 371 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006374/0.3591, allocations: 2.132 MB / 373.1 MB, free: 3.691 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009498/0.3686, allocations: 3.426 MB / 376.5 MB, free: 264 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006546/0.3751, allocations: 4.166 MB / 380.7 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002111/0.3773, allocations: 1.16 MB / 381.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003297/0.3806, allocations: 1.557 MB / 383.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003122/0.3837, allocations: 1.729 MB / 385.1 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003494/0.3841, allocations: 164 kB / 385.3 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005891/0.39, allocations: 2.414 MB / 387.7 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001352/0.3914, allocations: 0.6155 MB / 388.3 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001896/0.3933, allocations: 0.875 MB / 389.2 MB, free: 3.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008127/0.4014, allocations: 3.702 MB / 392.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.4015, allocations: 0 / 392.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.4015, allocations: 0 / 392.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.385e-05/0.4015, allocations: 0 / 392.9 MB, free: 15.81 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.006146/0.4077, allocations: 2.204 MB / 395.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.4077, allocations: 12.03 kB / 395.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006665/0.4084, allocations: 174.1 kB / 395.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001739/0.4102, allocations: 1.003 MB / 396.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001773/0.4103, allocations: 175.1 kB / 396.5 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/0.4105, allocations: 99.97 kB / 396.6 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003332/0.4139, allocations: 1.753 MB / 398.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.814e-05/0.4139, allocations: 3.938 kB / 398.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001655/0.4141, allocations: 51.95 kB / 398.4 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001683/0.4143, allocations: 113.9 kB / 398.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002847/0.4172, allocations: 1.776 MB / 400.3 MB, free: 8.273 MB / 334.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.01199/0.4292, allocations: 6.703 MB / 407 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001877/0.4311, allocations: 1.234 MB / 408.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.4322, allocations: 0.7688 MB / 409 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005748/0.4379, allocations: 4.275 MB / 413.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/0.438, allocations: 43.56 kB / 413.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000873/0.4388, allocations: 198.7 kB / 413.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.715e-06/0.4389, allocations: 3.938 kB / 413.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.0191/0.458, allocations: 5.684 MB / 419.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.637e-05/0.4581, allocations: 145.5 kB / 419.3 MB, free: 4.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001811/0.4599, allocations: 1.253 MB / 420.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001932/0.4601, allocations: 49.7 kB / 420.6 MB, free: 3.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005526/0.4607, allocations: 0.613 MB / 421.2 MB, free: 2.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000406/0.4611, allocations: 394.3 kB / 421.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004741/0.4616, allocations: 287.4 kB / 421.9 MB, free: 1.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.4617, allocations: 305.1 kB / 422.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.4628, allocations: 0.7231 MB / 422.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001442/0.4643, allocations: 1.064 MB / 424 MB, free: 15.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002437/0.4667, allocations: 1.739 MB / 425.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.4668, allocations: 8 kB / 425.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003996/0.4708, allocations: 2.3 MB / 428 MB, free: 11.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.4708, allocations: 8 kB / 428 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.024e-05/0.4708, allocations: 12 kB / 428 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007248/0.4781, allocations: 1.281 MB / 429.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/0.4796, allocations: 299.5 kB / 429.6 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002708/0.4823, allocations: 1.599 MB / 431.2 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.4839, allocations: 75.86 kB / 431.3 MB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001547/0.4841, allocations: 75.91 kB / 431.4 MB, free: 7.949 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001641/0.4857, allocations: 0.9762 MB / 432.3 MB, free: 6.969 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001366/0.4871, allocations: 1.063 MB / 433.4 MB, free: 5.758 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003323/0.4904, allocations: 1.714 MB / 435.1 MB, free: 3.902 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.42e-05/0.4904, allocations: 7.984 kB / 435.1 MB, free: 3.895 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.005884/0.4963, allocations: 2.195 MB / 437.3 MB, free: 1.688 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.4964, allocations: 15.31 kB / 437.3 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.941e-05/0.4964, allocations: 16 kB / 437.3 MB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00917/0.5056, allocations: 1.097 MB / 438.4 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002189/0.5079, allocations: 311.5 kB / 438.7 MB, free: 260 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003411/0.5113, allocations: 1.454 MB / 440.2 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00255/0.5139, allocations: 83.86 kB / 440.3 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000347/0.5142, allocations: 71.97 kB / 440.3 MB, free: 14.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * 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 {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0007446/0.515, allocations: 263.9 kB / 440.6 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000608/0.5156, allocations: 146.2 kB / 440.7 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006967/0.5226, allocations: 2.098 MB / 442.8 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.988e-05/0.5227, allocations: 12 kB / 442.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.5227, allocations: 0 / 442.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-05/0.5227, allocations: 3.984 kB / 442.9 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/0.5339, allocations: 3.59 MB / 446.4 MB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.5339, allocations: 0 / 446.4 MB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001847/0.5358, allocations: 195.8 kB / 446.6 MB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004316/0.5401, allocations: 0.8596 MB / 447.5 MB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002679/0.5404, allocations: 31.98 kB / 447.5 MB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003947/0.5444, allocations: 1.619 MB / 449.2 MB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.5444, allocations: 4 kB / 449.2 MB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008572/0.553, allocations: 2.911 MB / 452.1 MB, free: 2.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00162/0.5547, allocations: 395 kB / 452.5 MB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004207/0.5551, allocations: 20 kB / 452.5 MB, free: 2.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001921/0.5571, allocations: 83.81 kB / 452.6 MB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003645/0.5574, allocations: 93.3 kB / 452.6 MB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002152/0.5577, allocations: 55.97 kB / 452.7 MB, free: 2.117 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002192/0.5599, allocations: 0.848 MB / 453.5 MB, free: 1.266 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5599, allocations: 3.938 kB / 453.6 MB, free: 1.262 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00618/0.5661, allocations: 1.156 MB / 454.7 MB, free: 108 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.2436/0.8097, allocations: 0.8389 MB / 455.5 MB, free: 118.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00864/0.8184, allocations: 3.294 MB / 458.8 MB, free: 117.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/0.8184, allocations: 3.406 kB / 458.8 MB, free: 117.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001961/0.8204, allocations: 0.8783 MB / 459.7 MB, free: 117.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003378/0.8238, allocations: 0.6573 MB / 460.4 MB, free: 117.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005277/0.8291, allocations: 3.57 MB / 463.9 MB, free: 115.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006165/0.8297, allocations: 1.294 MB / 465.2 MB, free: 114.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002068/0.8318, allocations: 0.5875 MB / 465.8 MB, free: 114.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003828/0.8322, allocations: 123.1 kB / 465.9 MB, free: 114.4 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.8322, allocations: 0 / 465.9 MB, free: 114.4 MB / 382.1 MB Notification: Performance of Templates: time 0.06004/0.8923, allocations: 43.59 MB / 0.4976 GB, free: 72.71 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)