Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.0009931/0.0009934, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001133/0.001133, allocations: 177.3 kB / 15.95 MB, free: 216 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.519/1.519, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.000475/0.0004753, allocations: 10.66 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2613, allocations: 47.58 MB / 326.4 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02937/0.2907, allocations: 25.16 MB / 351.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01993/0.3106, allocations: 13.38 MB / 365 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002084/0.3128, allocations: 59.5 kB / 365 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001619/0.3144, allocations: 0.5206 MB / 365.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005404/0.3198, allocations: 1.889 MB / 367.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007564/0.3274, allocations: 2.919 MB / 370.4 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003994/0.3314, allocations: 2.311 MB / 372.7 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001512/0.3329, allocations: 0.9768 MB / 373.7 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002213/0.3352, allocations: 1.211 MB / 374.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001827/0.337, allocations: 1.09 MB / 376 MB, free: 1.863 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002358/0.3372, allocations: 84 kB / 376 MB, free: 1.781 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005275/0.3425, allocations: 2.216 MB / 378.3 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006869/0.3432, allocations: 0.4909 MB / 378.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000655/0.3439, allocations: 313 kB / 379.1 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00617/0.3501, allocations: 2.623 MB / 381.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.3501, allocations: 0 / 381.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3501, allocations: 0 / 381.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.569e-05/0.3502, allocations: 4 kB / 381.7 MB, free: 12.12 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.005597/0.3558, allocations: 1.9 MB / 383.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.3558, allocations: 8.031 kB / 383.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007041/0.3565, allocations: 178.1 kB / 383.8 MB, free: 9.988 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00192/0.3585, allocations: 0.9722 MB / 384.7 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001726/0.3586, allocations: 183.1 kB / 384.9 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000189/0.3588, allocations: 99.95 kB / 385 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002728/0.3616, allocations: 1.737 MB / 386.8 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.022e-05/0.3616, allocations: 7.938 kB / 386.8 MB, free: 6.879 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001394/0.3618, allocations: 43.97 kB / 386.8 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001509/0.3619, allocations: 117.9 kB / 386.9 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002942/0.3649, allocations: 1.772 MB / 388.7 MB, free: 4.938 MB / 318.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.01222/0.3771, allocations: 6.797 MB / 395.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.3791, allocations: 1.23 MB / 396.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009207/0.3883, allocations: 4.326 MB / 401 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.997e-05/0.3884, allocations: 47.5 kB / 401.1 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000886/0.3893, allocations: 206.6 kB / 401.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=97): time 2.926e-06/0.3893, allocations: 0 / 401.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=112): time 0.01813/0.4075, allocations: 5.731 MB / 407 MB, free: 1.773 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002156/0.4077, allocations: 141.5 kB / 407.2 MB, free: 1.605 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002796/0.4106, allocations: 1.238 MB / 408.4 MB, free: 368 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002637/0.4108, allocations: 49.7 kB / 408.4 MB, free: 312 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008542/0.4117, allocations: 0.6169 MB / 409.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008664/0.4126, allocations: 382.4 kB / 409.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001892/0.4128, allocations: 36 kB / 409.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003317/0.4131, allocations: 357.9 kB / 409.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002219/0.4154, allocations: 0.6949 MB / 410.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002423/0.4178, allocations: 1.04 MB / 411.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002158/0.42, allocations: 0.8105 MB / 412.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.615e-05/0.42, allocations: 4 kB / 412.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.00624/0.4263, allocations: 2.241 MB / 414.6 MB, free: 9.965 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.003126/0.4294, allocations: 3.772 MB / 418.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-05/0.4295, allocations: 8 kB / 418.4 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00935/0.4388, allocations: 1.273 MB / 419.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002123/0.441, allocations: 295.5 kB / 420 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0042/0.4452, allocations: 1.599 MB / 421.6 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002296/0.4476, allocations: 83.89 kB / 421.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004651/0.4481, allocations: 71.95 kB / 421.7 MB, free: 2.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.4481, allocations: 4 kB / 421.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006142/0.4543, allocations: 2.027 MB / 423.7 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.324e-05/0.4543, allocations: 12.19 kB / 423.7 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008055/0.4624, allocations: 1.117 MB / 424.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00202/0.4645, allocations: 303.5 kB / 425.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003151/0.4677, allocations: 1.461 MB / 426.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002096/0.4698, allocations: 87.8 kB / 426.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004118/0.4702, allocations: 71.89 kB / 426.8 MB, free: 13.46 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.001475/0.4717, allocations: 464.5 kB / 427.2 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007221/0.4725, allocations: 142.3 kB / 427.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005972/0.4784, allocations: 2.082 MB / 429.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.835e-05/0.4785, allocations: 16 kB / 429.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.4785, allocations: 4 kB / 429.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.955e-05/0.4785, allocations: 11.97 kB / 429.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006096/0.4846, allocations: 3.579 MB / 433.1 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.4847, allocations: 7.875 kB / 433.1 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009429/0.4856, allocations: 199.7 kB / 433.3 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003627/0.4893, allocations: 1 MB / 434.3 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001416/0.4894, allocations: 31.98 kB / 434.3 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002253/0.4917, allocations: 1.603 MB / 435.9 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.4917, allocations: 4.047 kB / 435.9 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004711/0.4964, allocations: 2.903 MB / 438.8 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/0.4975, allocations: 419 kB / 439.2 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000399/0.4979, allocations: 24 kB / 439.2 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.4991, allocations: 83.84 kB / 439.3 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/0.4994, allocations: 101.1 kB / 439.4 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/0.4995, allocations: 51.95 kB / 439.5 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001481/0.501, allocations: 0.8324 MB / 440.3 MB, free: 15.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.501, allocations: 0 / 440.3 MB, free: 15.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003378/0.5044, allocations: 1.163 MB / 441.5 MB, free: 14.61 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.002228/0.5066, allocations: 0.8263 MB / 442.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006572/0.5132, allocations: 2.777 MB / 445.1 MB, free: 11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/0.5133, allocations: 0 / 445.1 MB, free: 11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002025/0.5153, allocations: 0.8754 MB / 445.9 MB, free: 10.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003423/0.5188, allocations: 0.5938 MB / 446.5 MB, free: 9.535 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006693/0.5255, allocations: 3.566 MB / 450.1 MB, free: 5.945 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001276/0.5268, allocations: 1.319 MB / 451.4 MB, free: 4.602 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00238/0.5292, allocations: 0.59 MB / 452 MB, free: 4.004 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004599/0.5297, allocations: 127.4 kB / 452.1 MB, free: 3.879 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5297, allocations: 0 / 452.1 MB, free: 3.879 MB / 382.1 MB Notification: Performance of Templates: time 0.2138/0.7434, allocations: 40.37 MB / 492.5 MB, free: 87.71 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) Environment - environmentSimulation: