Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001343/0.001343, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001386/0.001386, allocations: 188.4 kB / 16.25 MB, free: 6.637 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.494/1.494, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.001564/0.001564, allocations: 51.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3175, allocations: 46.62 MB / 324.8 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.0208/0.3384, allocations: 16.65 MB / 341.5 MB, free: 3.391 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01136/0.3498, allocations: 6.995 MB / 348.5 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001237/0.3511, allocations: 31.75 kB / 348.5 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.3522, allocations: 294.4 kB / 348.8 MB, free: 12.06 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00284/0.355, allocations: 0.9956 MB / 349.8 MB, free: 11.06 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004255/0.3593, allocations: 1.647 MB / 351.4 MB, free: 9.414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002812/0.3621, allocations: 2.159 MB / 353.6 MB, free: 7.246 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009797/0.3631, allocations: 0.5958 MB / 354.2 MB, free: 6.633 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001446/0.3645, allocations: 0.7941 MB / 355 MB, free: 5.836 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001246/0.3658, allocations: 0.837 MB / 355.8 MB, free: 4.996 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000152/0.366, allocations: 80 kB / 355.9 MB, free: 4.918 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002542/0.3685, allocations: 1.213 MB / 357.1 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003404/0.3689, allocations: 319.2 kB / 357.4 MB, free: 3.391 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005558/0.3694, allocations: 457.9 kB / 357.9 MB, free: 2.941 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002571/0.372, allocations: 1.835 MB / 359.7 MB, free: 1.102 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.372, allocations: 0 / 359.7 MB, free: 1.102 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.372, allocations: 0 / 359.7 MB, free: 1.102 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.3721, allocations: 4 kB / 359.7 MB, free: 1.098 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.003032/0.3751, allocations: 1.258 MB / 361 MB, free: 15.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.3752, allocations: 12.03 kB / 361 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003502/0.3755, allocations: 95.98 kB / 361.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000902/0.3764, allocations: 0.5932 MB / 361.7 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.3766, allocations: 104.7 kB / 361.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.3767, allocations: 59.97 kB / 361.8 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/0.3782, allocations: 0.8962 MB / 362.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.3782, allocations: 0 / 362.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.854e-05/0.3783, allocations: 19.98 kB / 362.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.994e-05/0.3784, allocations: 57.27 kB / 362.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001341/0.3798, allocations: 0.8405 MB / 363.7 MB, free: 13.03 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.005909/0.3857, allocations: 3.454 MB / 367.1 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.3868, allocations: 0.6608 MB / 367.8 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005401/0.3873, allocations: 370.3 kB / 368.1 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003066/0.3904, allocations: 2.043 MB / 370.2 MB, free: 6.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.3905, allocations: 43.12 kB / 370.2 MB, free: 6.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.364e-06/0.3905, allocations: 0 / 370.2 MB, free: 6.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.007306/0.3978, allocations: 2.828 MB / 373 MB, free: 3.172 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.3979, allocations: 93.66 kB / 373.1 MB, free: 3.062 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001113/0.3991, allocations: 0.6759 MB / 373.8 MB, free: 2.379 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.775e-05/0.3991, allocations: 41.7 kB / 373.8 MB, free: 2.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002805/0.3994, allocations: 336.4 kB / 374.2 MB, free: 2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002305/0.3997, allocations: 224.8 kB / 374.4 MB, free: 1.777 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002681/0.3999, allocations: 150.5 kB / 374.5 MB, free: 1.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.4001, allocations: 390.8 kB / 374.9 MB, free: 1.234 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005804/0.4007, allocations: 368.6 kB / 375.3 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007696/0.4015, allocations: 0.5191 MB / 375.8 MB, free: 296 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.4029, allocations: 0.8639 MB / 376.7 MB, free: 15.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.4029, allocations: 8 kB / 376.7 MB, free: 15.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002111/0.405, allocations: 1.153 MB / 377.8 MB, free: 14.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.224e-05/0.4051, allocations: 8.562 kB / 377.8 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.4051, allocations: 4 kB / 377.8 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001354/0.4065, allocations: 460.4 kB / 378.3 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006891/0.4072, allocations: 163.7 kB / 378.5 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001412/0.4086, allocations: 1.021 MB / 379.5 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007355/0.4094, allocations: 43.86 kB / 379.5 MB, free: 12.47 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.926e-05/0.4095, allocations: 31.98 kB / 379.5 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009345/0.4104, allocations: 0.5331 MB / 380.1 MB, free: 11.9 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007568/0.4112, allocations: 0.5121 MB / 380.6 MB, free: 11.33 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001327/0.4125, allocations: 0.849 MB / 381.4 MB, free: 10.42 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.609e-06/0.4125, allocations: 0 / 381.4 MB, free: 10.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002245/0.4148, allocations: 1.098 MB / 382.5 MB, free: 9.312 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.4148, allocations: 4 kB / 382.5 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.4148, allocations: 4 kB / 382.5 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008327/0.4157, allocations: 316.9 kB / 382.9 MB, free: 8.992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006468/0.4163, allocations: 171.7 kB / 383 MB, free: 8.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00109/0.4174, allocations: 0.9114 MB / 383.9 MB, free: 7.887 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006282/0.4181, allocations: 35.98 kB / 384 MB, free: 7.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.501e-05/0.4181, allocations: 31.98 kB / 384 MB, free: 7.82 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 (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.0003654/0.4185, allocations: 228 kB / 384.2 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.4187, allocations: 90.98 kB / 384.3 MB, free: 7.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002035/0.4207, allocations: 1.088 MB / 385.4 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.4208, allocations: 8 kB / 385.4 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.4208, allocations: 0 / 385.4 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.4208, allocations: 3.984 kB / 385.4 MB, free: 6.383 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003342/0.4241, allocations: 2.005 MB / 387.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.4242, allocations: 4 kB / 387.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005759/0.4247, allocations: 119.9 kB / 387.5 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/0.426, allocations: 444.5 kB / 388 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.118e-05/0.426, allocations: 19.98 kB / 388 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.4273, allocations: 1.028 MB / 389 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.4273, allocations: 0 / 389 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002386/0.4297, allocations: 1.599 MB / 390.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004653/0.4301, allocations: 252 kB / 390.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.4303, allocations: 15.94 kB / 390.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005897/0.4309, allocations: 39.91 kB / 390.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.431, allocations: 52.58 kB / 391 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.272e-05/0.4311, allocations: 35.91 kB / 391 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006155/0.4317, allocations: 483 kB / 391.5 MB, free: 192 kB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4318, allocations: 0 / 391.5 MB, free: 192 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.001825/0.4336, allocations: 0.5779 MB / 392.1 MB, free: 15.61 MB / 334.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.001136/0.4347, allocations: 482.7 kB / 392.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003358/0.4381, allocations: 1.565 MB / 394.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.4381, allocations: 0 / 394.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009717/0.4391, allocations: 479.5 kB / 394.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001823/0.4409, allocations: 390.5 kB / 394.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003418/0.4444, allocations: 1.99 MB / 396.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005249/0.4449, allocations: 0.9989 MB / 397.9 MB, free: 9.668 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001056/0.446, allocations: 302.6 kB / 398.2 MB, free: 9.367 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.4462, allocations: 75.42 kB / 398.3 MB, free: 9.293 MB / 334.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4462, allocations: 0 / 398.3 MB, free: 9.293 MB / 334.1 MB Notification: Performance of Templates: time 0.03587/0.482, allocations: 22.8 MB / 421.1 MB, free: 2.457 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)