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.001022/0.001022, allocations: 85.94 kB / 15.06 MB, free: 1.09 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.001198/0.001198, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.516/1.516, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0005002/0.0005004, allocations: 10.81 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2894, allocations: 47.59 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03016/0.3196, allocations: 27.88 MB / 354.4 MB, free: 7.547 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02548/0.3451, allocations: 14.31 MB / 368.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002753/0.3479, allocations: 63.44 kB / 368.7 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002373/0.3503, allocations: 0.4969 MB / 369.2 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008043/0.3583, allocations: 2.161 MB / 371.4 MB, free: 6.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0104/0.3688, allocations: 2.914 MB / 374.3 MB, free: 3.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007981/0.3767, allocations: 5.043 MB / 379.3 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002844/0.3796, allocations: 0.9649 MB / 380.3 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004167/0.3838, allocations: 1.417 MB / 381.7 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003809/0.3876, allocations: 1.604 MB / 383.3 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007927/0.3885, allocations: 92 kB / 383.4 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006171/0.3946, allocations: 2.079 MB / 385.5 MB, free: 8.312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001752/0.3964, allocations: 0.5296 MB / 386 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001428/0.3979, allocations: 312.9 kB / 386.3 MB, free: 7.469 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006474/0.4044, allocations: 2.615 MB / 388.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.4044, allocations: 0 / 388.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4044, allocations: 3.938 kB / 388.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001091/0.4045, allocations: 4 kB / 389 MB, free: 4.84 MB / 318.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.006355/0.4109, allocations: 1.9 MB / 390.9 MB, free: 2.887 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.411, allocations: 11.97 kB / 390.9 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009075/0.4119, allocations: 178.1 kB / 391 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002483/0.4144, allocations: 0.9724 MB / 392 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002163/0.4146, allocations: 171.1 kB / 392.2 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000458/0.4151, allocations: 99.97 kB / 392.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003985/0.4191, allocations: 1.745 MB / 394 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.589e-05/0.4192, allocations: 4 kB / 394 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002058/0.4194, allocations: 39.97 kB / 394.1 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001732/0.4195, allocations: 117.9 kB / 394.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003369/0.4229, allocations: 1.78 MB / 396 MB, free: 13.65 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.01282/0.4358, allocations: 6.727 MB / 402.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002058/0.4378, allocations: 1.226 MB / 403.9 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001296/0.4392, allocations: 0.7689 MB / 404.7 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006754/0.4459, allocations: 4.29 MB / 409 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.253e-05/0.446, allocations: 47.56 kB / 409 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009402/0.447, allocations: 202.7 kB / 409.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 9.758e-06/0.447, allocations: 0 / 409.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01815/0.4652, allocations: 5.723 MB / 414.9 MB, free: 9.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.4653, allocations: 149.5 kB / 415.1 MB, free: 9.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002208/0.4675, allocations: 1.238 MB / 416.3 MB, free: 8.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002021/0.4677, allocations: 49.7 kB / 416.4 MB, free: 8.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006995/0.4684, allocations: 0.613 MB / 417 MB, free: 7.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005345/0.469, allocations: 382.4 kB / 417.4 MB, free: 7.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.4691, allocations: 32 kB / 417.4 MB, free: 7.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.4693, allocations: 369.9 kB / 417.7 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001227/0.4706, allocations: 0.6871 MB / 418.4 MB, free: 6.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/0.4722, allocations: 1.052 MB / 419.5 MB, free: 5.086 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/0.4738, allocations: 0.8144 MB / 420.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.278e-05/0.4738, allocations: 4 kB / 420.3 MB, free: 4.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004459/0.4783, allocations: 2.238 MB / 422.5 MB, free: 2.016 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003064/0.4786, allocations: 375.1 kB / 422.9 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/0.4786, allocations: 15.92 kB / 422.9 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006529/0.4852, allocations: 1.269 MB / 424.2 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/0.4866, allocations: 299.5 kB / 424.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002636/0.4892, allocations: 1.602 MB / 426.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001568/0.4908, allocations: 91.77 kB / 426.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002863/0.4911, allocations: 71.97 kB / 426.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.4911, allocations: 7.281 kB / 426.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003815/0.4949, allocations: 2.015 MB / 428.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.595e-05/0.495, allocations: 12 kB / 428.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005875/0.5009, allocations: 1.117 MB / 429.4 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/0.5023, allocations: 303.5 kB / 429.7 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002315/0.5047, allocations: 1.462 MB / 431.2 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001605/0.5063, allocations: 83.8 kB / 431.2 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002601/0.5066, allocations: 67.97 kB / 431.3 MB, free: 9.055 MB / 366.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 (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 initialization (156): * Single equations (assignments): 155 * 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.000986/0.5076, allocations: 464.7 kB / 431.8 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004974/0.5081, allocations: 146.3 kB / 431.9 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004604/0.5127, allocations: 2.09 MB / 434 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.5e-05/0.5127, allocations: 12 kB / 434 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.5127, allocations: 3.984 kB / 434 MB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.734e-05/0.5128, allocations: 11.91 kB / 434 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006556/0.5193, allocations: 3.575 MB / 437.6 MB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/0.5194, allocations: 3.953 kB / 437.6 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009362/0.5203, allocations: 191.8 kB / 437.8 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00364/0.524, allocations: 1 MB / 438.8 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001673/0.5241, allocations: 31.98 kB / 438.8 MB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002375/0.5265, allocations: 1.607 MB / 440.4 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.5266, allocations: 4 kB / 440.4 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005167/0.5317, allocations: 2.903 MB / 443.3 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/0.5328, allocations: 407.1 kB / 443.7 MB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004031/0.5332, allocations: 24 kB / 443.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.5344, allocations: 83.84 kB / 443.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.5346, allocations: 97.16 kB / 443.9 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/0.5348, allocations: 51.97 kB / 444 MB, free: 12.22 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001473/0.5362, allocations: 0.8363 MB / 444.8 MB, free: 11.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5363, allocations: 0 / 444.8 MB, free: 11.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003761/0.54, allocations: 1.163 MB / 446 MB, free: 10.21 MB / 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 (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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.002759/0.5428, allocations: 0.8339 MB / 446.8 MB, free: 9.367 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006993/0.5498, allocations: 2.78 MB / 449.6 MB, free: 6.594 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.224e-05/0.5499, allocations: 0 / 449.6 MB, free: 6.594 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002179/0.552, allocations: 0.8634 MB / 450.5 MB, free: 5.734 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003792/0.5559, allocations: 0.6185 MB / 451.1 MB, free: 5.113 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008922/0.5648, allocations: 3.566 MB / 454.6 MB, free: 1.527 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001459/0.5663, allocations: 1.3 MB / 455.9 MB, free: 204 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.2281/0.7945, allocations: 0.5766 MB / 456.5 MB, free: 113.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007755/0.7953, allocations: 123.1 kB / 456.6 MB, free: 113.9 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.7953, allocations: 3.188 kB / 456.6 MB, free: 113.9 MB / 382.1 MB Notification: Performance of Templates: time 0.06014/0.8555, allocations: 40.48 MB / 497.1 MB, free: 83.18 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)