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.001268/0.001268, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001865/0.001865, allocations: 172.7 kB / 15.95 MB, free: 208 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.62/1.62, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0004778/0.0004778, allocations: 10.66 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2701, allocations: 47.59 MB / 326.5 MB, free: 1.223 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01816/0.2883, allocations: 15.27 MB / 341.7 MB, free: 4.066 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01303/0.3014, allocations: 6.544 MB / 348.3 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001713/0.3032, allocations: 27.75 kB / 348.3 MB, free: 13.49 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.3047, allocations: 290.2 kB / 348.6 MB, free: 13.2 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004081/0.3088, allocations: 1.018 MB / 349.6 MB, free: 12.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005251/0.3141, allocations: 1.379 MB / 351 MB, free: 10.8 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004362/0.3185, allocations: 2.619 MB / 353.6 MB, free: 8.168 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001442/0.3199, allocations: 0.4952 MB / 354.1 MB, free: 7.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002231/0.3222, allocations: 0.7162 MB / 354.8 MB, free: 6.941 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001787/0.324, allocations: 0.763 MB / 355.6 MB, free: 6.176 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003385/0.3243, allocations: 40 kB / 355.6 MB, free: 6.137 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00345/0.3278, allocations: 1.045 MB / 356.7 MB, free: 5.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006479/0.3285, allocations: 275.1 kB / 356.9 MB, free: 4.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000609/0.3291, allocations: 173.3 kB / 357.1 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002718/0.3318, allocations: 1.29 MB / 358.4 MB, free: 3.352 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3318, allocations: 0 / 358.4 MB, free: 3.352 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3318, allocations: 0 / 358.4 MB, free: 3.352 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.063e-05/0.3319, allocations: 0 / 358.4 MB, free: 3.352 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.003072/0.335, allocations: 1.106 MB / 359.5 MB, free: 2.191 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.335, allocations: 8.031 kB / 359.5 MB, free: 2.184 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005311/0.3355, allocations: 99.02 kB / 359.6 MB, free: 2.086 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001357/0.3369, allocations: 0.5779 MB / 360.2 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/0.3371, allocations: 104.7 kB / 360.3 MB, free: 1.352 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001991/0.3373, allocations: 55.98 kB / 360.3 MB, free: 1.297 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001819/0.3391, allocations: 0.8884 MB / 361.2 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.61e-05/0.3392, allocations: 0 / 361.2 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.527e-05/0.3393, allocations: 27.98 kB / 361.3 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.758e-05/0.3394, allocations: 49.28 kB / 361.3 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.341, allocations: 0.8443 MB / 362.1 MB, free: 15.46 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.006056/0.3471, allocations: 3.462 MB / 365.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.3482, allocations: 0.6607 MB / 366.3 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005832/0.3488, allocations: 374.2 kB / 366.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003383/0.3522, allocations: 2.047 MB / 368.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.427e-05/0.3523, allocations: 43.12 kB / 368.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.635e-06/0.3523, allocations: 0 / 368.7 MB, free: 8.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.007259/0.3596, allocations: 2.859 MB / 371.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.3597, allocations: 85.67 kB / 371.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/0.3608, allocations: 0.676 MB / 372.3 MB, free: 4.766 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.449e-05/0.3609, allocations: 41.64 kB / 372.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003114/0.3612, allocations: 340.4 kB / 372.7 MB, free: 4.383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002466/0.3615, allocations: 220.8 kB / 372.9 MB, free: 4.164 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.947e-05/0.3615, allocations: 16 kB / 372.9 MB, free: 4.148 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002319/0.3618, allocations: 386.8 kB / 373.3 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006605/0.3625, allocations: 357.8 kB / 373.7 MB, free: 3.414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007557/0.3632, allocations: 0.5035 MB / 374.2 MB, free: 2.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008229/0.3641, allocations: 423 kB / 374.6 MB, free: 2.438 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.992e-06/0.3641, allocations: 0 / 374.6 MB, free: 2.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002198/0.3663, allocations: 1.145 MB / 375.7 MB, free: 1.281 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001912/0.3665, allocations: 215.2 kB / 375.9 MB, free: 1.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.3665, allocations: 7.984 kB / 376 MB, free: 1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001463/0.368, allocations: 440.4 kB / 376.4 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006707/0.3687, allocations: 163.7 kB / 376.5 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/0.3699, allocations: 1.021 MB / 377.6 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007412/0.3707, allocations: 43.88 kB / 377.6 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.327e-05/0.3708, allocations: 39.98 kB / 377.6 MB, free: 15.28 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/0.3708, allocations: 4 kB / 377.6 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001937/0.3728, allocations: 1 MB / 378.7 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.3728, allocations: 4 kB / 378.7 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006781/0.3735, allocations: 312.8 kB / 379 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006294/0.3741, allocations: 171.7 kB / 379.1 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001026/0.3752, allocations: 0.9034 MB / 380 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006651/0.3759, allocations: 43.94 kB / 380.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.987e-05/0.3759, allocations: 35.98 kB / 380.1 MB, free: 12.78 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.0004915/0.3764, allocations: 328.8 kB / 380.4 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001959/0.3766, allocations: 79.06 kB / 380.5 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002134/0.3788, allocations: 1.095 MB / 381.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.3788, allocations: 8 kB / 381.6 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.3788, allocations: 0 / 381.6 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/0.3788, allocations: 3.984 kB / 381.6 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003616/0.3825, allocations: 1.99 MB / 383.6 MB, free: 9.199 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.3825, allocations: 4 kB / 383.6 MB, free: 9.195 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005771/0.3831, allocations: 115.9 kB / 383.7 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001263/0.3844, allocations: 452.5 kB / 384.2 MB, free: 8.637 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.616e-05/0.3844, allocations: 19.98 kB / 384.2 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001274/0.3857, allocations: 1.036 MB / 385.2 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.3857, allocations: 0 / 385.2 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002577/0.3883, allocations: 1.584 MB / 386.8 MB, free: 5.949 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004817/0.3888, allocations: 248 kB / 387 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001881/0.389, allocations: 23.94 kB / 387.1 MB, free: 5.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006095/0.3896, allocations: 51.81 kB / 387.1 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.3898, allocations: 52.58 kB / 387.2 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.532e-05/0.3899, allocations: 31.97 kB / 387.2 MB, free: 5.531 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007995/0.3907, allocations: 475 kB / 387.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3907, allocations: 3.938 kB / 387.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001819/0.3925, allocations: 0.5896 MB / 388.3 MB, free: 4.477 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.001291/0.3938, allocations: 470.7 kB / 388.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003005/0.3968, allocations: 1.373 MB / 390.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.3968, allocations: 4 kB / 390.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.3978, allocations: 467.4 kB / 390.6 MB, free: 2.176 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002001/0.3999, allocations: 363.4 kB / 390.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004092/0.404, allocations: 2.032 MB / 392.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008616/0.4048, allocations: 0.9913 MB / 393.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001218/0.4061, allocations: 314.5 kB / 394.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002101/0.4063, allocations: 71.42 kB / 394.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4063, allocations: 0 / 394.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of Templates: time 0.03696/0.4433, allocations: 21.16 MB / 415.5 MB, free: 9.16 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (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)