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.0009139/0.0009139, allocations: 90.98 kB / 15.36 MB, free: 0.7383 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.007962/0.007962, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.569/1.569, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0004857/0.0004857, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3269, allocations: 47.59 MB / 327 MB, free: 1.371 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.0183/0.3452, allocations: 16.11 MB / 343.1 MB, free: 3.172 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01166/0.3569, allocations: 7.097 MB / 350.2 MB, free: 12.06 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001455/0.3584, allocations: 27.75 kB / 350.3 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001064/0.3595, allocations: 298.4 kB / 350.6 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003728/0.3633, allocations: 1.007 MB / 351.6 MB, free: 10.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005298/0.3686, allocations: 1.504 MB / 353.1 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00536/0.374, allocations: 3.181 MB / 356.3 MB, free: 6.031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001107/0.3751, allocations: 0.5269 MB / 356.8 MB, free: 5.492 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001569/0.3767, allocations: 0.6809 MB / 357.5 MB, free: 4.809 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.378, allocations: 0.7979 MB / 358.3 MB, free: 4.008 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.3781, allocations: 40 kB / 358.3 MB, free: 3.969 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002862/0.381, allocations: 1.19 MB / 359.5 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00038/0.3814, allocations: 279.2 kB / 359.8 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006286/0.382, allocations: 447.6 kB / 360.2 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00349/0.3855, allocations: 1.784 MB / 362 MB, free: 276 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3856, allocations: 0 / 362 MB, free: 276 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3856, allocations: 0 / 362 MB, free: 276 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.3856, allocations: 0 / 362 MB, free: 276 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.002743/0.3883, allocations: 1.099 MB / 363.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/0.3884, allocations: 16.03 kB / 363.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003267/0.3887, allocations: 95.98 kB / 363.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009642/0.3897, allocations: 0.597 MB / 363.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000166/0.3899, allocations: 100.7 kB / 363.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.39, allocations: 55.98 kB / 363.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.3916, allocations: 0.8963 MB / 364.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.3917, allocations: 3.938 kB / 364.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.301e-05/0.3918, allocations: 23.98 kB / 364.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.231e-05/0.3919, allocations: 49.27 kB / 364.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001391/0.3933, allocations: 0.8482 MB / 365.8 MB, free: 12.36 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.00605/0.3993, allocations: 3.466 MB / 369.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.4006, allocations: 0.6646 MB / 369.9 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006364/0.4012, allocations: 366.3 kB / 370.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003286/0.4045, allocations: 2.059 MB / 372.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.071e-05/0.4046, allocations: 43.06 kB / 372.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.475e-06/0.4046, allocations: 0 / 372.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.007363/0.412, allocations: 2.859 MB / 375.2 MB, free: 2.434 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.093e-05/0.4121, allocations: 89.61 kB / 375.3 MB, free: 2.328 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009419/0.413, allocations: 0.6799 MB / 376 MB, free: 1.641 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.517e-05/0.4131, allocations: 37.7 kB / 376 MB, free: 1.598 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002604/0.4134, allocations: 340.4 kB / 376.3 MB, free: 1.262 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002215/0.4136, allocations: 224.8 kB / 376.6 MB, free: 1.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/0.4138, allocations: 73.67 kB / 376.6 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002467/0.414, allocations: 382.8 kB / 377 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000651/0.4147, allocations: 369.7 kB / 377.4 MB, free: 224 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007459/0.4154, allocations: 0.5191 MB / 377.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.4167, allocations: 0.8599 MB / 378.7 MB, free: 14.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.4167, allocations: 4 kB / 378.8 MB, free: 14.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002076/0.4188, allocations: 1.161 MB / 379.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002073/0.419, allocations: 219.1 kB / 380.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.4191, allocations: 4 kB / 380.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001386/0.4205, allocations: 444.4 kB / 380.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006443/0.4211, allocations: 171.7 kB / 380.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001283/0.4224, allocations: 1.017 MB / 381.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006986/0.4231, allocations: 51.86 kB / 381.8 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.092e-05/0.4232, allocations: 35.94 kB / 381.8 MB, free: 11.53 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.4232, allocations: 11.98 kB / 381.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001773/0.425, allocations: 1.004 MB / 382.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.4251, allocations: 4 kB / 382.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000712/0.4258, allocations: 308.7 kB / 383.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006507/0.4264, allocations: 171.7 kB / 383.3 MB, free: 10.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.4275, allocations: 0.8959 MB / 384.2 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006999/0.4282, allocations: 51.86 kB / 384.3 MB, free: 9.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.583e-05/0.4283, allocations: 31.98 kB / 384.3 MB, free: 9.027 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.0004957/0.4288, allocations: 332.8 kB / 384.6 MB, free: 8.691 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.4289, allocations: 79.06 kB / 384.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001986/0.4309, allocations: 1.095 MB / 385.8 MB, free: 7.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.4309, allocations: 11.98 kB / 385.8 MB, free: 7.488 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.4309, allocations: 3.938 kB / 385.8 MB, free: 7.484 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.4309, allocations: 0 / 385.8 MB, free: 7.484 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003099/0.434, allocations: 2.001 MB / 387.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.4341, allocations: 11.94 kB / 387.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005786/0.4347, allocations: 119.9 kB / 387.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001264/0.4359, allocations: 452.5 kB / 388.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-05/0.436, allocations: 19.98 kB / 388.4 MB, free: 4.828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001241/0.4373, allocations: 1.024 MB / 389.4 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.4373, allocations: 0 / 389.4 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/0.4398, allocations: 1.591 MB / 391 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004682/0.4403, allocations: 259.9 kB / 391.3 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.4404, allocations: 16 kB / 391.3 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000578/0.441, allocations: 43.97 kB / 391.3 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.4411, allocations: 56.58 kB / 391.4 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.65e-05/0.4412, allocations: 27.97 kB / 391.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006621/0.4419, allocations: 486.9 kB / 391.9 MB, free: 1.281 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4419, allocations: 0 / 391.9 MB, free: 1.281 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001705/0.4436, allocations: 0.5779 MB / 392.5 MB, free: 0.7031 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 (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.001085/0.4447, allocations: 494.7 kB / 393 MB, free: 212 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002983/0.4477, allocations: 1.392 MB / 394.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4477, allocations: 0 / 394.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009622/0.4487, allocations: 463.5 kB / 394.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002004/0.4507, allocations: 358.8 kB / 395.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003487/0.4542, allocations: 2.11 MB / 397.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006278/0.4548, allocations: 0.9953 MB / 398.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001079/0.4559, allocations: 314.5 kB / 398.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.4561, allocations: 67.42 kB / 398.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4562, allocations: 0 / 398.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of Templates: time 0.03705/0.4932, allocations: 21.73 MB / 420.4 MB, free: 4.711 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)