Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.01102/0.01102, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.643/1.643, allocations: 205.4 MB / 222.4 MB, free: 5.797 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.0004739/0.0004742, allocations: 14.66 kB / 279.4 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2804, allocations: 47.58 MB / 327 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01819/0.2986, allocations: 16.11 MB / 343.1 MB, free: 3.238 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01141/0.3101, allocations: 7.101 MB / 350.2 MB, free: 12.12 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001419/0.3115, allocations: 31.75 kB / 350.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001052/0.3126, allocations: 286.4 kB / 350.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003022/0.3156, allocations: 1.011 MB / 351.6 MB, free: 10.8 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005176/0.3208, allocations: 1.512 MB / 353.1 MB, free: 9.281 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005558/0.3264, allocations: 3.185 MB / 356.3 MB, free: 6.086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.3274, allocations: 0.5192 MB / 356.8 MB, free: 5.555 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001387/0.3288, allocations: 0.6809 MB / 357.5 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.3301, allocations: 0.7979 MB / 358.3 MB, free: 4.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.3302, allocations: 44 kB / 358.3 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002873/0.3331, allocations: 1.19 MB / 359.5 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000318/0.3334, allocations: 275.2 kB / 359.8 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005376/0.334, allocations: 443.6 kB / 360.2 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003061/0.337, allocations: 1.784 MB / 362 MB, free: 344 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.337, allocations: 0 / 362 MB, free: 344 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3371, allocations: 0 / 362 MB, free: 344 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.3371, allocations: 4 kB / 362 MB, free: 340 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002697/0.3398, allocations: 1.106 MB / 363.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.3398, allocations: 8.031 kB / 363.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003121/0.3402, allocations: 99.94 kB / 363.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009853/0.3412, allocations: 0.597 MB / 363.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.3413, allocations: 104.7 kB / 363.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.3414, allocations: 51.98 kB / 363.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.3429, allocations: 0.8963 MB / 364.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/0.343, allocations: 3.938 kB / 364.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.283e-05/0.343, allocations: 27.98 kB / 364.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.771e-05/0.3431, allocations: 49.28 kB / 364.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.3445, allocations: 0.8443 MB / 365.8 MB, free: 12.41 MB / 302.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.005455/0.35, allocations: 3.47 MB / 369.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/0.351, allocations: 0.6646 MB / 369.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005367/0.3515, allocations: 366.3 kB / 370.3 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002781/0.3543, allocations: 2.055 MB / 372.3 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.3544, allocations: 43.06 kB / 372.4 MB, free: 5.422 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.114e-06/0.3544, allocations: 0 / 372.4 MB, free: 5.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006944/0.3614, allocations: 2.863 MB / 375.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/0.3614, allocations: 89.61 kB / 375.3 MB, free: 2.383 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000873/0.3623, allocations: 0.676 MB / 376 MB, free: 1.699 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.588e-05/0.3624, allocations: 37.7 kB / 376 MB, free: 1.656 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002592/0.3627, allocations: 344.4 kB / 376.4 MB, free: 1.316 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001959/0.3629, allocations: 220.8 kB / 376.6 MB, free: 1.098 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.363, allocations: 69.69 kB / 376.6 MB, free: 1.023 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.3631, allocations: 386.8 kB / 377 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005735/0.3637, allocations: 361.8 kB / 377.4 MB, free: 292 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006971/0.3644, allocations: 0.5191 MB / 377.9 MB, free: 15.7 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001249/0.3657, allocations: 0.8638 MB / 378.7 MB, free: 14.78 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3657, allocations: 0 / 378.7 MB, free: 14.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002004/0.3677, allocations: 1.161 MB / 379.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001549/0.3679, allocations: 219.4 kB / 380.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.3679, allocations: 4 kB / 380.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001318/0.3692, allocations: 456.4 kB / 380.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006671/0.3699, allocations: 163.7 kB / 380.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/0.3712, allocations: 1.017 MB / 381.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006851/0.3719, allocations: 51.86 kB / 381.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.773e-05/0.372, allocations: 35.92 kB / 381.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.372, allocations: 4 kB / 381.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001836/0.3739, allocations: 1.008 MB / 382.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.3739, allocations: 4 kB / 382.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007881/0.3747, allocations: 316.9 kB / 383.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006143/0.3753, allocations: 167.7 kB / 383.3 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001122/0.3764, allocations: 0.9036 MB / 384.2 MB, free: 9.164 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006973/0.3771, allocations: 43.83 kB / 384.3 MB, free: 9.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.064e-05/0.3772, allocations: 35.97 kB / 384.3 MB, free: 9.086 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (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 (84): * Single equations (assignments): 83 * 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0006313/0.3779, allocations: 328.8 kB / 384.6 MB, free: 8.754 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001695/0.3781, allocations: 83.06 kB / 384.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00198/0.38, allocations: 1.092 MB / 385.8 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.3801, allocations: 8 kB / 385.8 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.515e-06/0.3801, allocations: 3.938 kB / 385.8 MB, free: 7.551 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.3801, allocations: 3.984 kB / 385.8 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003013/0.3831, allocations: 2.013 MB / 387.8 MB, free: 5.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.3831, allocations: 3.938 kB / 387.8 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005537/0.3837, allocations: 115.9 kB / 387.9 MB, free: 5.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/0.3849, allocations: 452.5 kB / 388.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.144e-05/0.385, allocations: 23.98 kB / 388.4 MB, free: 4.887 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001147/0.3861, allocations: 1.024 MB / 389.4 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3861, allocations: 0 / 389.4 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.3886, allocations: 1.595 MB / 391 MB, free: 2.223 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004864/0.3891, allocations: 252 kB / 391.3 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.3892, allocations: 12 kB / 391.3 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005632/0.3898, allocations: 43.97 kB / 391.3 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/0.3899, allocations: 60.56 kB / 391.4 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.019e-05/0.39, allocations: 23.98 kB / 391.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008066/0.3908, allocations: 491 kB / 391.9 MB, free: 1.344 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3909, allocations: 3.938 kB / 391.9 MB, free: 1.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001927/0.3928, allocations: 0.5817 MB / 392.5 MB, free: 0.7578 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001085/0.3939, allocations: 478.8 kB / 392.9 MB, free: 284 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002908/0.3968, allocations: 1.389 MB / 394.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.3968, allocations: 0 / 394.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008973/0.3977, allocations: 467.5 kB / 394.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001834/0.3996, allocations: 370.8 kB / 395.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003714/0.4033, allocations: 2.106 MB / 397.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006009/0.4039, allocations: 0.9953 MB / 398.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00108/0.405, allocations: 302.5 kB / 398.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001999/0.4052, allocations: 79.41 kB / 398.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of SimCode: time 1.492e-06/0.4052, allocations: 0 / 398.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of Templates: time 0.03886/0.4441, allocations: 21.73 MB / 420.4 MB, free: 4.773 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)