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.007856/0.007856, allocations: 103.7 kB / 15.74 MB, free: 5.988 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.001134/0.001134, allocations: 190.1 kB / 16.67 MB, free: 5.914 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.523/1.523, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001445/0.001445, allocations: 55.16 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1249, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02497/0.1499, allocations: 15.84 MB / 389 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01268/0.1627, allocations: 6.854 MB / 395.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001468/0.1642, allocations: 19.88 kB / 395.9 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001349/0.1656, allocations: 338 kB / 396.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003884/0.1695, allocations: 1.089 MB / 397.3 MB, free: 9.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006034/0.1756, allocations: 1.792 MB / 399.1 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003494/0.1791, allocations: 2.144 MB / 401.2 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009887/0.1801, allocations: 0.6036 MB / 401.8 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001502/0.1816, allocations: 0.8059 MB / 402.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.1827, allocations: 0.798 MB / 403.4 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001421/0.1829, allocations: 80 kB / 403.5 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002976/0.1859, allocations: 1.213 MB / 404.7 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004299/0.1863, allocations: 315.1 kB / 405 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006705/0.187, allocations: 461.9 kB / 405.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004116/0.1911, allocations: 1.839 MB / 407.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.1911, allocations: 0 / 407.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.456e-06/0.1911, allocations: 0 / 407.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.928e-05/0.1912, allocations: 0 / 407.3 MB, free: 15.02 MB / 350.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.003572/0.1948, allocations: 1.27 MB / 408.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.1948, allocations: 12.03 kB / 408.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000382/0.1952, allocations: 88 kB / 408.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.1963, allocations: 0.6322 MB / 409.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/0.1965, allocations: 112.7 kB / 409.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.1966, allocations: 55.98 kB / 409.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.1981, allocations: 0.8924 MB / 410.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.033e-05/0.1981, allocations: 3.938 kB / 410.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-05/0.1982, allocations: 23.98 kB / 410.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.533e-05/0.1983, allocations: 53.28 kB / 410.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.1999, allocations: 0.8443 MB / 411.3 MB, free: 10.91 MB / 350.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.006152/0.2061, allocations: 3.462 MB / 414.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.2074, allocations: 0.6531 MB / 415.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005903/0.208, allocations: 366.3 kB / 415.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003175/0.2111, allocations: 2.047 MB / 417.8 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.067e-05/0.2112, allocations: 43.06 kB / 417.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.505e-06/0.2112, allocations: 0 / 417.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.008201/0.2194, allocations: 2.828 MB / 420.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.2196, allocations: 89.67 kB / 420.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/0.221, allocations: 0.6836 MB / 421.5 MB, free: 240 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.501e-05/0.2211, allocations: 41.7 kB / 421.5 MB, free: 192 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004518/0.2215, allocations: 328.5 kB / 421.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003382/0.2219, allocations: 224.8 kB / 422 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003833/0.2223, allocations: 150.6 kB / 422.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0005193/0.2228, allocations: 382.8 kB / 422.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007366/0.2236, allocations: 380.6 kB / 422.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009299/0.2245, allocations: 0.5152 MB / 423.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001418/0.2259, allocations: 0.8599 MB / 424.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.226, allocations: 4 kB / 424.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002414/0.2284, allocations: 1.161 MB / 425.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.2284, allocations: 8 kB / 425.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/0.2285, allocations: 7.938 kB / 425.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001432/0.2299, allocations: 460.9 kB / 425.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006854/0.2306, allocations: 159.8 kB / 426.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.232, allocations: 1.013 MB / 427.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006843/0.2327, allocations: 28.03 kB / 427.1 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.436e-05/0.2328, allocations: 39.92 kB / 427.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009319/0.2338, allocations: 0.533 MB / 427.7 MB, free: 9.785 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001073/0.2348, allocations: 0.516 MB / 428.2 MB, free: 9.207 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001633/0.2365, allocations: 0.8489 MB / 429.1 MB, free: 8.293 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.502e-06/0.2365, allocations: 0 / 429.1 MB, free: 8.293 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002341/0.2389, allocations: 1.098 MB / 430.2 MB, free: 7.184 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.2389, allocations: 8 kB / 430.2 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.2389, allocations: 4 kB / 430.2 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001099/0.24, allocations: 321.1 kB / 430.5 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.2411, allocations: 163.8 kB / 430.7 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001652/0.2428, allocations: 0.919 MB / 431.6 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.2438, allocations: 28.03 kB / 431.6 MB, free: 5.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.244, allocations: 31.98 kB / 431.6 MB, free: 5.691 MB / 366.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.0004659/0.2445, allocations: 228.1 kB / 431.9 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003497/0.2448, allocations: 83 kB / 431.9 MB, free: 5.379 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003657/0.2485, allocations: 1.103 MB / 433 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.2485, allocations: 8 kB / 433.1 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.2486, allocations: 0 / 433.1 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.634e-05/0.2486, allocations: 3.984 kB / 433.1 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005724/0.2543, allocations: 2.004 MB / 435.1 MB, free: 2.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.2543, allocations: 0 / 435.1 MB, free: 2.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/0.2554, allocations: 119.8 kB / 435.2 MB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002115/0.2576, allocations: 448.5 kB / 435.6 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001634/0.2578, allocations: 15.98 kB / 435.6 MB, free: 1.613 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002155/0.2599, allocations: 1.032 MB / 436.7 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2599, allocations: 0 / 436.7 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00416/0.2641, allocations: 1.6 MB / 438.3 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008064/0.265, allocations: 244.1 kB / 438.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003453/0.2653, allocations: 12 kB / 438.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.2665, allocations: 39.91 kB / 438.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002624/0.2667, allocations: 52.58 kB / 438.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001505/0.2669, allocations: 27.98 kB / 438.6 MB, free: 14.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001395/0.2683, allocations: 483 kB / 439.1 MB, free: 14.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.2683, allocations: 0 / 439.1 MB, free: 14.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003163/0.2715, allocations: 0.5779 MB / 439.7 MB, free: 13.5 MB / 382.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.002345/0.2739, allocations: 482.8 kB / 440.2 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005232/0.2791, allocations: 1.403 MB / 441.6 MB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.2792, allocations: 5.812 kB / 441.6 MB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001696/0.2809, allocations: 475.3 kB / 442 MB, free: 11.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003409/0.2843, allocations: 378.3 kB / 442.4 MB, free: 10.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005931/0.2903, allocations: 1.724 MB / 444.1 MB, free: 9.023 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/0.2916, allocations: 0.995 MB / 445.1 MB, free: 8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002072/0.2937, allocations: 302.5 kB / 445.4 MB, free: 7.699 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003977/0.2941, allocations: 75.41 kB / 445.5 MB, free: 7.625 MB / 382.1 MB Notification: Performance of SimCode: time 1.814e-06/0.2941, allocations: 4 kB / 445.5 MB, free: 7.621 MB / 382.1 MB Notification: Performance of Templates: time 0.3287/0.6228, allocations: 23.14 MB / 468.6 MB, free: 68.14 MB / 382.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)