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.001282/0.001282, allocations: 108.1 kB / 17.06 MB, free: 5.82 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.00126/0.00126, allocations: 195.9 kB / 18 MB, free: 4.965 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.472/1.472, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001138/0.001138, allocations: 55.92 kB / 327.9 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.112, allocations: 46.62 MB / 374.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2879/0.4, allocations: 15.84 MB / 390.3 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0118/0.4119, allocations: 6.841 MB / 397.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001515/0.4134, allocations: 25.56 kB / 397.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.4148, allocations: 336.4 kB / 397.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003818/0.4186, allocations: 1.074 MB / 398.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007341/0.426, allocations: 1.786 MB / 400.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005764/0.4318, allocations: 2.144 MB / 402.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00135/0.4331, allocations: 0.6014 MB / 403.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002109/0.4353, allocations: 0.7952 MB / 403.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001549/0.4368, allocations: 0.7924 MB / 404.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002346/0.4371, allocations: 79.94 kB / 404.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004295/0.4414, allocations: 1.218 MB / 406 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006322/0.442, allocations: 317 kB / 406.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008699/0.4429, allocations: 466.4 kB / 406.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004656/0.4476, allocations: 1.845 MB / 408.6 MB, free: 9.652 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.4476, allocations: 1.156 kB / 408.6 MB, free: 9.652 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.4476, allocations: 0 / 408.6 MB, free: 9.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.4476, allocations: 0 / 408.6 MB, free: 9.652 MB / 334.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.003269/0.4509, allocations: 1.3 MB / 409.9 MB, free: 8.637 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.451, allocations: 9.312 kB / 409.9 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003738/0.4514, allocations: 102.5 kB / 410 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001189/0.4526, allocations: 0.6379 MB / 410.7 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001356/0.4527, allocations: 101.7 kB / 410.8 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/0.4528, allocations: 59.44 kB / 410.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001926/0.4548, allocations: 0.8971 MB / 411.7 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.581e-05/0.4548, allocations: 0 / 411.7 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.815e-05/0.4549, allocations: 26.83 kB / 411.7 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000117/0.455, allocations: 56.86 kB / 411.8 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.4567, allocations: 0.8373 MB / 412.6 MB, free: 6.957 MB / 334.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.006057/0.4628, allocations: 3.456 MB / 416.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.4639, allocations: 0.6568 MB / 416.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006866/0.4646, allocations: 365.4 kB / 417.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003354/0.468, allocations: 2.044 MB / 419.2 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.702e-05/0.468, allocations: 49.8 kB / 419.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.245e-06/0.468, allocations: 1.375 kB / 419.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.007062/0.4751, allocations: 2.839 MB / 422 MB, free: 15.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.893e-05/0.4752, allocations: 89.67 kB / 422.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008856/0.4761, allocations: 0.6835 MB / 422.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.468e-05/0.4762, allocations: 41.7 kB / 422.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002722/0.4765, allocations: 341 kB / 423.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002078/0.4767, allocations: 234 kB / 423.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002792/0.477, allocations: 150.6 kB / 423.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.4772, allocations: 382.8 kB / 423.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006466/0.4778, allocations: 384.5 kB / 424.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007635/0.4786, allocations: 0.5152 MB / 424.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.48, allocations: 0.8599 MB / 425.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.87e-06/0.48, allocations: 4 kB / 425.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002253/0.4823, allocations: 1.161 MB / 426.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.4823, allocations: 8 kB / 426.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.4823, allocations: 6.375 kB / 426.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001329/0.4837, allocations: 464.9 kB / 427.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006434/0.4843, allocations: 151.8 kB / 427.5 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.4857, allocations: 1.025 MB / 428.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007143/0.4864, allocations: 27.98 kB / 428.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.037e-05/0.4865, allocations: 31.98 kB / 428.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008942/0.4874, allocations: 0.5292 MB / 429.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007462/0.4882, allocations: 0.5237 MB / 429.6 MB, free: 7.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001344/0.4895, allocations: 0.8451 MB / 430.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.316e-06/0.4895, allocations: 0 / 430.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002234/0.4918, allocations: 1.102 MB / 431.6 MB, free: 5.625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.4918, allocations: 8 kB / 431.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.4918, allocations: 4 kB / 431.6 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007396/0.4926, allocations: 321.1 kB / 431.9 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006393/0.4932, allocations: 163.8 kB / 432 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/0.4943, allocations: 0.9113 MB / 432.9 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006995/0.495, allocations: 32.02 kB / 433 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.58e-05/0.4951, allocations: 31.98 kB / 433 MB, free: 4.137 MB / 350.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.0003465/0.4954, allocations: 228.1 kB / 433.2 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.4956, allocations: 87.42 kB / 433.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002064/0.4977, allocations: 1.099 MB / 434.4 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/0.4977, allocations: 8 kB / 434.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.4977, allocations: 0 / 434.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.4977, allocations: 3.984 kB / 434.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00351/0.5012, allocations: 1.993 MB / 436.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.5013, allocations: 0 / 436.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005799/0.5018, allocations: 116.5 kB / 436.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001258/0.5031, allocations: 456.4 kB / 437 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.558e-05/0.5032, allocations: 16 kB / 437 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/0.5044, allocations: 1.028 MB / 438 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.5044, allocations: 0.75 kB / 438 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002494/0.5069, allocations: 1.601 MB / 439.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004585/0.5074, allocations: 248.5 kB / 439.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001213/0.5075, allocations: 16 kB / 439.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005337/0.5081, allocations: 35.91 kB / 439.9 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.5082, allocations: 52.58 kB / 440 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.706e-05/0.5083, allocations: 39.97 kB / 440 MB, free: 12.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006235/0.5089, allocations: 479 kB / 440.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5089, allocations: 0 / 440.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001868/0.5108, allocations: 0.5849 MB / 441.1 MB, free: 11.94 MB / 366.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.001143/0.512, allocations: 0.49 MB / 441.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002899/0.5149, allocations: 1.411 MB / 443 MB, free: 10.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.5149, allocations: 5.938 kB / 443 MB, free: 10.03 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009216/0.5158, allocations: 467.5 kB / 443.4 MB, free: 9.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/0.5175, allocations: 384.7 kB / 443.8 MB, free: 9.203 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003716/0.5212, allocations: 1.749 MB / 445.6 MB, free: 7.426 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006699/0.5219, allocations: 0.995 MB / 446.5 MB, free: 6.402 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001044/0.523, allocations: 302.6 kB / 446.8 MB, free: 6.102 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000202/0.5232, allocations: 75.36 kB / 446.9 MB, free: 6.027 MB / 366.1 MB Notification: Performance of SimCode: time 1.302e-06/0.5232, allocations: 4 kB / 446.9 MB, free: 6.023 MB / 366.1 MB Notification: Performance of Templates: time 0.04102/0.5642, allocations: 23.13 MB / 470 MB, free: 14.85 MB / 398.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)