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.001235/0.001235, allocations: 105.2 kB / 17.06 MB, free: 5.785 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.001273/0.001273, allocations: 198.9 kB / 18 MB, free: 4.93 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.539/1.539, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001186/0.001186, allocations: 47.92 kB / 327.8 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1364, 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.3244/0.4609, allocations: 15.85 MB / 390.3 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01053/0.4715, allocations: 6.846 MB / 397.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001409/0.4729, allocations: 25.72 kB / 397.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001247/0.4742, allocations: 332.8 kB / 397.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003962/0.4782, allocations: 1.07 MB / 398.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006574/0.4848, allocations: 1.791 MB / 400.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004665/0.4895, allocations: 2.146 MB / 402.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001135/0.4906, allocations: 0.6019 MB / 403.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001726/0.4924, allocations: 0.8041 MB / 403.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001314/0.4937, allocations: 0.7951 MB / 404.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.4939, allocations: 79.59 kB / 404.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003378/0.4972, allocations: 1.218 MB / 406 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004108/0.4977, allocations: 316.7 kB / 406.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000608/0.4983, allocations: 459.5 kB / 406.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003686/0.502, allocations: 1.838 MB / 408.6 MB, free: 9.652 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.502, allocations: 4 kB / 408.6 MB, free: 9.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.502, allocations: 0 / 408.6 MB, free: 9.648 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.502, allocations: 1.25 kB / 408.6 MB, free: 9.648 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.003292/0.5053, allocations: 1.27 MB / 409.9 MB, free: 8.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.847e-05/0.5054, allocations: 9.531 kB / 409.9 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003956/0.5058, allocations: 91.72 kB / 410 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.5071, allocations: 0.6279 MB / 410.6 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.5072, allocations: 114.2 kB / 410.7 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.5073, allocations: 56.36 kB / 410.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.509, allocations: 0.8934 MB / 411.7 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.273e-05/0.509, allocations: 1.469 kB / 411.7 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001121/0.5091, allocations: 25.72 kB / 411.7 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.175e-05/0.5092, allocations: 52.59 kB / 411.8 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001504/0.5107, allocations: 0.8449 MB / 412.6 MB, free: 6.996 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.006099/0.5168, allocations: 3.442 MB / 416 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.518, allocations: 0.6606 MB / 416.7 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005727/0.5186, allocations: 365.5 kB / 417.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003125/0.5217, allocations: 2.047 MB / 419.1 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.5218, allocations: 46.75 kB / 419.2 MB, free: 1.867 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.154e-06/0.5218, allocations: 0 / 419.2 MB, free: 1.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.006933/0.5287, allocations: 2.829 MB / 422 MB, free: 15.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.5288, allocations: 89.61 kB / 422.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000846/0.5297, allocations: 0.6797 MB / 422.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.222e-05/0.5297, allocations: 45.7 kB / 422.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000253/0.53, allocations: 332.5 kB / 423.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.5302, allocations: 228.7 kB / 423.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002562/0.5305, allocations: 146.6 kB / 423.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.5307, allocations: 386.8 kB / 423.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005969/0.5313, allocations: 368.6 kB / 424.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007/0.532, allocations: 0.5152 MB / 424.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001319/0.5333, allocations: 0.8716 MB / 425.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.5333, allocations: 0 / 425.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002067/0.5354, allocations: 1.165 MB / 426.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.5354, allocations: 4 kB / 426.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.5354, allocations: 4 kB / 426.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/0.5367, allocations: 452.6 kB / 427.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006538/0.5374, allocations: 171.7 kB / 427.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/0.5387, allocations: 1.017 MB / 428.4 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005411/0.5392, allocations: 28.03 kB / 428.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.613e-05/0.5393, allocations: 33.36 kB / 428.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007902/0.5401, allocations: 0.5331 MB / 429 MB, free: 8.289 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006719/0.5408, allocations: 0.5121 MB / 429.5 MB, free: 7.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001217/0.542, allocations: 0.8567 MB / 430.4 MB, free: 6.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.248e-06/0.542, allocations: 7.875 kB / 430.4 MB, free: 6.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.00194/0.544, allocations: 1.098 MB / 431.5 MB, free: 5.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.544, allocations: 4 kB / 431.5 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.544, allocations: 4 kB / 431.5 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000674/0.5447, allocations: 316.9 kB / 431.8 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007308/0.5455, allocations: 167.7 kB / 432 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009767/0.5464, allocations: 0.9074 MB / 432.9 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000524/0.547, allocations: 28.03 kB / 432.9 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.835e-05/0.5471, allocations: 35.98 kB / 432.9 MB, free: 4.195 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.0002673/0.5473, allocations: 228.1 kB / 433.2 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.5475, allocations: 75.06 kB / 433.2 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001948/0.5494, allocations: 1.102 MB / 434.3 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.5495, allocations: 4 kB / 434.3 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.5495, allocations: 7.938 kB / 434.3 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.5495, allocations: 7.984 kB / 434.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/0.5526, allocations: 1.996 MB / 436.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.5526, allocations: 0.875 kB / 436.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005814/0.5532, allocations: 115.9 kB / 436.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001114/0.5543, allocations: 444.5 kB / 436.9 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.834e-05/0.5544, allocations: 23.98 kB / 436.9 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/0.5555, allocations: 1.024 MB / 437.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.5555, allocations: 3.938 kB / 437.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002405/0.5579, allocations: 1.604 MB / 439.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004325/0.5584, allocations: 244.1 kB / 439.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.5585, allocations: 12 kB / 439.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000517/0.559, allocations: 35.97 kB / 439.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.5592, allocations: 56.52 kB / 439.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.139e-05/0.5593, allocations: 27.98 kB / 439.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005454/0.5598, allocations: 479 kB / 440.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5598, allocations: 0 / 440.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001711/0.5616, allocations: 0.5856 MB / 441 MB, free: 12.02 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.001046/0.5626, allocations: 486.8 kB / 441.4 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002765/0.5654, allocations: 1.404 MB / 442.8 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.5654, allocations: 0 / 442.8 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009119/0.5663, allocations: 471.5 kB / 443.3 MB, free: 9.668 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/0.568, allocations: 403.1 kB / 443.7 MB, free: 9.281 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003145/0.5712, allocations: 1.716 MB / 445.4 MB, free: 7.539 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005849/0.5718, allocations: 0.9911 MB / 446.4 MB, free: 6.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008421/0.5726, allocations: 314.5 kB / 446.7 MB, free: 6.207 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.5728, allocations: 75.41 kB / 446.8 MB, free: 6.133 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.5728, allocations: 0 / 446.8 MB, free: 6.133 MB / 366.1 MB Notification: Performance of Templates: time 0.03525/0.6081, allocations: 23.56 MB / 470.3 MB, free: 14.53 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)