Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00126/0.001261, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.001515/0.001515, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.615/1.615, allocations: 205.4 MB / 223.4 MB, free: 5.547 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.0005513/0.0005517, allocations: 12 kB / 280.1 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3083, allocations: 47.59 MB / 327.7 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01695/0.3253, allocations: 15.25 MB / 343 MB, free: 4.199 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.3355, allocations: 6.556 MB / 349.5 MB, free: 13.64 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001241/0.3368, allocations: 31.75 kB / 349.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001276/0.3381, allocations: 282.2 kB / 349.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003506/0.3416, allocations: 1.022 MB / 350.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003837/0.3455, allocations: 1.379 MB / 352.2 MB, free: 10.92 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003534/0.349, allocations: 2.608 MB / 354.9 MB, free: 8.301 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.3503, allocations: 0.5068 MB / 355.4 MB, free: 7.781 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002093/0.3524, allocations: 0.7045 MB / 356.1 MB, free: 7.074 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001847/0.3543, allocations: 0.7708 MB / 356.8 MB, free: 6.301 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003121/0.3546, allocations: 44 kB / 356.9 MB, free: 6.258 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002882/0.3575, allocations: 1.049 MB / 357.9 MB, free: 5.207 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005366/0.3581, allocations: 271.1 kB / 358.2 MB, free: 4.941 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004774/0.3586, allocations: 169.3 kB / 358.4 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00243/0.361, allocations: 1.282 MB / 359.6 MB, free: 3.484 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.361, allocations: 3.938 kB / 359.6 MB, free: 3.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.361, allocations: 0 / 359.6 MB, free: 3.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.328e-05/0.3611, allocations: 0 / 359.6 MB, free: 3.48 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.002961/0.3641, allocations: 1.11 MB / 360.8 MB, free: 2.316 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.3641, allocations: 8.031 kB / 360.8 MB, free: 2.309 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004872/0.3646, allocations: 99 kB / 360.9 MB, free: 2.211 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001172/0.3658, allocations: 0.5741 MB / 361.4 MB, free: 1.594 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.3659, allocations: 104.7 kB / 361.5 MB, free: 1.48 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/0.3661, allocations: 55.98 kB / 361.6 MB, free: 1.426 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.3678, allocations: 0.8923 MB / 362.5 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.79e-05/0.3678, allocations: 4 kB / 362.5 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.008e-05/0.3679, allocations: 19.98 kB / 362.5 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.647e-05/0.368, allocations: 53.27 kB / 362.6 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001466/0.3695, allocations: 0.8404 MB / 363.4 MB, free: 15.59 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.005961/0.3755, allocations: 3.462 MB / 366.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.3765, allocations: 0.6724 MB / 367.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005532/0.3771, allocations: 362.3 kB / 367.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003039/0.3802, allocations: 2.051 MB / 369.9 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/0.3802, allocations: 43.12 kB / 370 MB, free: 8.605 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.514e-06/0.3802, allocations: 0 / 370 MB, free: 8.605 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006901/0.3871, allocations: 2.863 MB / 372.8 MB, free: 5.672 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.663e-05/0.3872, allocations: 85.67 kB / 372.9 MB, free: 5.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001155/0.3884, allocations: 0.672 MB / 373.6 MB, free: 4.891 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.568e-05/0.3885, allocations: 41.7 kB / 373.6 MB, free: 4.844 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002623/0.3888, allocations: 336.4 kB / 374 MB, free: 4.512 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002106/0.389, allocations: 224.8 kB / 374.2 MB, free: 4.289 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.756e-05/0.389, allocations: 16 kB / 374.2 MB, free: 4.273 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.3892, allocations: 386.8 kB / 374.6 MB, free: 3.887 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007261/0.39, allocations: 357.8 kB / 374.9 MB, free: 3.539 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008556/0.3908, allocations: 0.5152 MB / 375.4 MB, free: 2.961 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006851/0.3915, allocations: 403 kB / 375.8 MB, free: 2.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.3916, allocations: 4 kB / 375.8 MB, free: 2.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002117/0.3937, allocations: 1.145 MB / 377 MB, free: 1.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001745/0.3939, allocations: 211.6 kB / 377.2 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.3939, allocations: 8 kB / 377.2 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001412/0.3953, allocations: 444.4 kB / 377.6 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006779/0.396, allocations: 159.7 kB / 377.8 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001347/0.3974, allocations: 1.028 MB / 378.8 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007273/0.3981, allocations: 51.86 kB / 378.9 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.474e-05/0.3982, allocations: 31.98 kB / 378.9 MB, free: 15.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.3982, allocations: 4 kB / 378.9 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001865/0.4001, allocations: 0.9997 MB / 379.9 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.4001, allocations: 4 kB / 379.9 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007099/0.4008, allocations: 317.2 kB / 380.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000661/0.4015, allocations: 163.7 kB / 380.4 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/0.4027, allocations: 0.8996 MB / 381.3 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007425/0.4034, allocations: 43.92 kB / 381.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.296e-05/0.4035, allocations: 35.98 kB / 381.4 MB, free: 12.91 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.0006921/0.4042, allocations: 340.8 kB / 381.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002375/0.4045, allocations: 75.06 kB / 381.8 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002282/0.4067, allocations: 1.095 MB / 382.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.4068, allocations: 8 kB / 382.9 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.4068, allocations: 3.938 kB / 382.9 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.4068, allocations: 7.984 kB / 382.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003462/0.4103, allocations: 1.994 MB / 384.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.4103, allocations: 0 / 384.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006002/0.4109, allocations: 119.8 kB / 385 MB, free: 9.195 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001315/0.4122, allocations: 456.5 kB / 385.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.934e-05/0.4123, allocations: 16 kB / 385.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.4136, allocations: 1.032 MB / 386.5 MB, free: 7.672 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4136, allocations: 0 / 386.5 MB, free: 7.672 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002527/0.4161, allocations: 1.584 MB / 388.1 MB, free: 6.066 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005299/0.4167, allocations: 256 kB / 388.3 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001865/0.4168, allocations: 15.95 kB / 388.3 MB, free: 5.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006428/0.4175, allocations: 43.88 kB / 388.4 MB, free: 5.738 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.4177, allocations: 60.56 kB / 388.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.026e-05/0.4177, allocations: 27.98 kB / 388.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007019/0.4185, allocations: 471 kB / 388.9 MB, free: 5.195 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4185, allocations: 4 kB / 388.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001938/0.4204, allocations: 0.5857 MB / 389.5 MB, free: 4.605 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.001254/0.4217, allocations: 470.5 kB / 390 MB, free: 4.133 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003004/0.4247, allocations: 1.381 MB / 391.3 MB, free: 2.754 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4247, allocations: 0 / 391.3 MB, free: 2.754 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009492/0.4257, allocations: 467.5 kB / 391.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/0.4276, allocations: 370 kB / 392.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003778/0.4313, allocations: 2.028 MB / 394.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006744/0.432, allocations: 0.9913 MB / 395.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00122/0.4333, allocations: 302.6 kB / 395.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002176/0.4335, allocations: 79.34 kB / 395.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4335, allocations: 4 kB / 395.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of Templates: time 0.03682/0.4703, allocations: 21.16 MB / 416.7 MB, free: 9.281 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)