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.001604/0.001604, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002014/0.002014, allocations: 199.3 kB / 16.14 MB, free: 6.664 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.631/1.631, allocations: 205.1 MB / 222 MB, free: 4.73 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.001293/0.001293, allocations: 51.92 kB / 278 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2995, allocations: 46.62 MB / 324.7 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01913/0.3187, allocations: 16.67 MB / 341.3 MB, free: 3.445 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.3302, allocations: 7.206 MB / 348.5 MB, free: 12.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001551/0.3318, allocations: 35.69 kB / 348.6 MB, free: 12.19 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001252/0.3331, allocations: 290.5 kB / 348.9 MB, free: 11.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003096/0.3362, allocations: 1.015 MB / 349.9 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004522/0.3408, allocations: 1.504 MB / 351.4 MB, free: 9.379 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003919/0.3447, allocations: 3.181 MB / 354.6 MB, free: 6.188 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009613/0.3457, allocations: 0.5307 MB / 355.1 MB, free: 5.645 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001613/0.3473, allocations: 0.6888 MB / 355.8 MB, free: 4.953 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001079/0.3484, allocations: 0.8057 MB / 356.6 MB, free: 4.145 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.3485, allocations: 44 kB / 356.6 MB, free: 4.102 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002504/0.351, allocations: 1.197 MB / 357.8 MB, free: 2.902 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003646/0.3514, allocations: 275.2 kB / 358.1 MB, free: 2.633 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005254/0.352, allocations: 425.9 kB / 358.5 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003122/0.3551, allocations: 1.8 MB / 360.3 MB, free: 420 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3551, allocations: 4 kB / 360.3 MB, free: 416 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3551, allocations: 0 / 360.3 MB, free: 416 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.864e-05/0.3552, allocations: 0 / 360.3 MB, free: 416 kB / 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.003103/0.3583, allocations: 1.262 MB / 361.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.3583, allocations: 8.031 kB / 361.6 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003377/0.3587, allocations: 92 kB / 361.7 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009272/0.3596, allocations: 0.5972 MB / 362.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/0.3597, allocations: 108.7 kB / 362.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.751e-05/0.3598, allocations: 51.98 kB / 362.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.3614, allocations: 0.8962 MB / 363.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.3614, allocations: 3.938 kB / 363.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.509e-05/0.3615, allocations: 27.98 kB / 363.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-05/0.3616, allocations: 53.28 kB / 363.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001363/0.3629, allocations: 0.8405 MB / 364.3 MB, free: 12.34 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.005868/0.3688, allocations: 3.458 MB / 367.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.3699, allocations: 0.6685 MB / 368.4 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005578/0.3705, allocations: 366.3 kB / 368.7 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003016/0.3735, allocations: 2.035 MB / 370.8 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.3736, allocations: 43.12 kB / 370.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.625e-06/0.3736, allocations: 0 / 370.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.007544/0.3811, allocations: 2.836 MB / 373.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.848e-05/0.3812, allocations: 81.67 kB / 373.7 MB, free: 2.367 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001091/0.3823, allocations: 0.6837 MB / 374.4 MB, free: 1.676 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.241e-05/0.3824, allocations: 37.7 kB / 374.5 MB, free: 1.633 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002811/0.3827, allocations: 332.4 kB / 374.8 MB, free: 1.305 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.383, allocations: 232.7 kB / 375 MB, free: 1.074 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000269/0.3832, allocations: 146.6 kB / 375.1 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002021/0.3834, allocations: 386.8 kB / 375.5 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006231/0.3841, allocations: 372.6 kB / 375.9 MB, free: 172 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007728/0.3849, allocations: 0.523 MB / 376.4 MB, free: 15.58 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/0.3862, allocations: 0.8599 MB / 377.3 MB, free: 14.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.3862, allocations: 4 kB / 377.3 MB, free: 14.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002164/0.3884, allocations: 1.157 MB / 378.4 MB, free: 13.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.3884, allocations: 4 kB / 378.4 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.3885, allocations: 4 kB / 378.4 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001332/0.3898, allocations: 464.4 kB / 378.9 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006721/0.3905, allocations: 163.7 kB / 379.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.3918, allocations: 1.017 MB / 380.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007009/0.3925, allocations: 43.83 kB / 380.1 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.923e-05/0.3926, allocations: 35.98 kB / 380.1 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009/0.3935, allocations: 0.5331 MB / 380.7 MB, free: 11.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007372/0.3943, allocations: 0.5082 MB / 381.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001338/0.3956, allocations: 0.8451 MB / 382 MB, free: 9.734 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.288e-06/0.3956, allocations: 4 kB / 382 MB, free: 9.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001993/0.3976, allocations: 1.102 MB / 383.1 MB, free: 8.617 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.3977, allocations: 8 kB / 383.1 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.3977, allocations: 7.938 kB / 383.2 MB, free: 8.602 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007459/0.3984, allocations: 308.9 kB / 383.5 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006587/0.3991, allocations: 167.7 kB / 383.6 MB, free: 8.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001088/0.4002, allocations: 0.9035 MB / 384.5 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006988/0.4009, allocations: 43.92 kB / 384.6 MB, free: 7.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.533e-05/0.401, allocations: 35.98 kB / 384.6 MB, free: 7.125 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.0002954/0.4013, allocations: 224 kB / 384.8 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002183/0.4015, allocations: 87 kB / 384.9 MB, free: 6.812 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002309/0.4039, allocations: 1.095 MB / 386 MB, free: 5.699 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.477e-06/0.4039, allocations: 8 kB / 386 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.4039, allocations: 0 / 386 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.4039, allocations: 3.984 kB / 386 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003485/0.4074, allocations: 2.009 MB / 388 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.4074, allocations: 7.922 kB / 388 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005994/0.408, allocations: 115.9 kB / 388.1 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001297/0.4093, allocations: 456.5 kB / 388.6 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.515e-05/0.4094, allocations: 12 kB / 388.6 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001282/0.4107, allocations: 1.04 MB / 389.6 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4107, allocations: 0 / 389.6 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002574/0.4133, allocations: 1.591 MB / 391.2 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004889/0.4138, allocations: 244.1 kB / 391.5 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001761/0.414, allocations: 12 kB / 391.5 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006829/0.4147, allocations: 51.89 kB / 391.5 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001704/0.4149, allocations: 56.59 kB / 391.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.706e-05/0.415, allocations: 23.98 kB / 391.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006715/0.4156, allocations: 483 kB / 392.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4156, allocations: 4 kB / 392.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001913/0.4176, allocations: 0.5778 MB / 392.7 MB, free: 14.9 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.001404/0.419, allocations: 486.4 kB / 393.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003398/0.4224, allocations: 1.396 MB / 394.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.4224, allocations: 0 / 394.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.4236, allocations: 465.1 kB / 395 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002317/0.4259, allocations: 358.8 kB / 395.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003799/0.4297, allocations: 1.992 MB / 397.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005874/0.4303, allocations: 0.9992 MB / 398.3 MB, free: 9.176 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001153/0.4315, allocations: 310.5 kB / 398.6 MB, free: 8.867 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002258/0.4317, allocations: 67.42 kB / 398.7 MB, free: 8.801 MB / 334.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4317, allocations: 4 kB / 398.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of Templates: time 0.03755/0.4693, allocations: 21.92 MB / 420.6 MB, free: 2.844 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)