Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001151/0.001151, allocations: 99.7 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.001166/0.001166, 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.49/1.49, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0004978/0.0004979, allocations: 8 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2867, allocations: 47.58 MB / 326.4 MB, free: 1.637 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01497/0.3017, allocations: 13.87 MB / 340.3 MB, free: 5.773 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009927/0.3117, allocations: 6.144 MB / 346.5 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001092/0.3128, allocations: 31.75 kB / 346.5 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000975/0.3138, allocations: 302.4 kB / 346.8 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002734/0.3166, allocations: 0.8763 MB / 347.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004026/0.3206, allocations: 1.376 MB / 349 MB, free: 13.04 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002373/0.323, allocations: 1.218 MB / 350.3 MB, free: 11.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008526/0.3239, allocations: 0.4954 MB / 350.7 MB, free: 11.31 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001161/0.325, allocations: 0.6192 MB / 351.4 MB, free: 10.69 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008226/0.3259, allocations: 0.5177 MB / 351.9 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.326, allocations: 40 kB / 351.9 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002641/0.3286, allocations: 1.084 MB / 353 MB, free: 9.043 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003123/0.329, allocations: 255.3 kB / 353.3 MB, free: 8.793 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002574/0.3292, allocations: 177.3 kB / 353.4 MB, free: 8.613 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002064/0.3313, allocations: 1.286 MB / 354.7 MB, free: 7.324 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.3313, allocations: 0 / 354.7 MB, free: 7.324 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3313, allocations: 0 / 354.7 MB, free: 7.324 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.3314, allocations: 0 / 354.7 MB, free: 7.324 MB / 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.002512/0.3339, allocations: 1.106 MB / 355.8 MB, free: 6.164 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.3339, allocations: 8.031 kB / 355.8 MB, free: 6.156 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002952/0.3342, allocations: 107 kB / 355.9 MB, free: 6.051 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.3353, allocations: 0.5701 MB / 356.5 MB, free: 5.438 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001264/0.3354, allocations: 104.7 kB / 356.6 MB, free: 5.324 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.3355, allocations: 51.98 kB / 356.7 MB, free: 5.273 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.337, allocations: 0.8884 MB / 357.5 MB, free: 4.359 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/0.337, allocations: 4 kB / 357.5 MB, free: 4.355 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.7e-05/0.3371, allocations: 23.98 kB / 357.6 MB, free: 4.332 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.316e-05/0.3372, allocations: 57.27 kB / 357.6 MB, free: 4.273 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001438/0.3387, allocations: 0.8365 MB / 358.5 MB, free: 3.438 MB / 286.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.006119/0.3448, allocations: 3.47 MB / 361.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009906/0.3458, allocations: 0.6646 MB / 362.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002879/0.3487, allocations: 2.055 MB / 364.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.578e-05/0.3488, allocations: 47.06 kB / 364.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.354e-06/0.3488, allocations: 0 / 364.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.00664/0.3554, allocations: 2.852 MB / 367.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.297e-05/0.3555, allocations: 85.67 kB / 367.6 MB, free: 9.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008363/0.3563, allocations: 0.6759 MB / 368.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.622e-05/0.3564, allocations: 37.7 kB / 368.3 MB, free: 9.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002512/0.3567, allocations: 340.4 kB / 368.7 MB, free: 8.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.3569, allocations: 224.8 kB / 368.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-05/0.3569, allocations: 16 kB / 368.9 MB, free: 8.477 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.3571, allocations: 386.8 kB / 369.3 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005676/0.3577, allocations: 353.8 kB / 369.6 MB, free: 7.746 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006646/0.3584, allocations: 0.5112 MB / 370.2 MB, free: 7.172 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000624/0.359, allocations: 411 kB / 370.6 MB, free: 6.773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.359, allocations: 4 kB / 370.6 MB, free: 6.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001876/0.3609, allocations: 1.145 MB / 371.7 MB, free: 5.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006929/0.3616, allocations: 1.658 MB / 373.4 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.3616, allocations: 4 kB / 373.4 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001258/0.3629, allocations: 440.4 kB / 373.8 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006641/0.3636, allocations: 171.7 kB / 374 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/0.3648, allocations: 1.02 MB / 375 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006873/0.3655, allocations: 51.86 kB / 375 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.781e-05/0.3656, allocations: 35.98 kB / 375.1 MB, free: 2.086 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.3656, allocations: 4 kB / 375.1 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001739/0.3673, allocations: 0.9958 MB / 376.1 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3674, allocations: 4 kB / 376.1 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006589/0.368, allocations: 309.2 kB / 376.4 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006276/0.3687, allocations: 171.7 kB / 376.5 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009516/0.3696, allocations: 0.9035 MB / 377.4 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005815/0.3702, allocations: 47.92 kB / 377.5 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.459e-05/0.3703, allocations: 31.98 kB / 377.5 MB, free: 15.59 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 (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 initialization (84): * Single equations (assignments): 83 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005/0.3708, allocations: 332.8 kB / 377.8 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/0.371, allocations: 83.02 kB / 377.9 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.3728, allocations: 1.095 MB / 379 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.3728, allocations: 8 kB / 379 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.3729, allocations: 0 / 379 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.3729, allocations: 3.984 kB / 379 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003097/0.376, allocations: 1.994 MB / 381 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/0.376, allocations: 0 / 381 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005615/0.3766, allocations: 127.7 kB / 381.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001165/0.3778, allocations: 448.5 kB / 381.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.14e-05/0.3778, allocations: 19.98 kB / 381.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/0.379, allocations: 1.028 MB / 382.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.379, allocations: 7.938 kB / 382.6 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002431/0.3815, allocations: 1.584 MB / 384.2 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004273/0.3819, allocations: 260 kB / 384.5 MB, free: 8.473 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.382, allocations: 12 kB / 384.5 MB, free: 8.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000557/0.3826, allocations: 55.88 kB / 384.6 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.3828, allocations: 52.56 kB / 384.6 MB, free: 8.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.579e-05/0.3828, allocations: 31.98 kB / 384.6 MB, free: 8.324 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005858/0.3834, allocations: 471 kB / 385.1 MB, free: 7.867 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3834, allocations: 0 / 385.1 MB, free: 7.867 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001617/0.3851, allocations: 0.5857 MB / 385.7 MB, free: 7.281 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 (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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001057/0.3861, allocations: 474.5 kB / 386.1 MB, free: 6.805 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00267/0.3888, allocations: 1.377 MB / 387.5 MB, free: 5.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.3888, allocations: 0 / 387.5 MB, free: 5.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000882/0.3897, allocations: 460 kB / 388 MB, free: 4.984 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001549/0.3913, allocations: 358.9 kB / 388.3 MB, free: 4.637 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003573/0.3948, allocations: 2.017 MB / 390.3 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000729/0.3956, allocations: 1.011 MB / 391.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001114/0.3967, allocations: 306.5 kB / 391.6 MB, free: 1.25 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001996/0.3969, allocations: 75.41 kB / 391.7 MB, free: 1.176 MB / 318.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3969, allocations: 3.938 kB / 391.7 MB, free: 1.172 MB / 318.1 MB Notification: Performance of Templates: time 0.03476/0.4317, allocations: 21.15 MB / 412.9 MB, free: 11.99 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) Environment - environmentSimulation: