Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 87.97 kB / 16.31 MB, free: 6.461 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.001238/0.001238, allocations: 177.6 kB / 17.21 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.556/1.556, allocations: 223.3 MB / 241.2 MB, free: 5.43 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002555/0.0002556, allocations: 7.938 kB / 300.8 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09474/0.09501, allocations: 50.42 MB / 351.2 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02887/0.1239, allocations: 28.83 MB / 380.1 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01382/0.1378, allocations: 9.834 MB / 389.9 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00148/0.1393, allocations: 43.62 kB / 389.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001212/0.1406, allocations: 397.5 kB / 390.3 MB, free: 4.52 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.004253/0.1448, allocations: 1.695 MB / 392 MB, free: 2.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006085/0.1509, allocations: 2.128 MB / 394.1 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005413/0.1564, allocations: 4.305 MB / 398.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001642/0.158, allocations: 0.9491 MB / 399.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00224/0.1603, allocations: 1.327 MB / 400.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001884/0.1622, allocations: 1.363 MB / 402.1 MB, free: 8.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001921/0.1624, allocations: 80 kB / 402.2 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003582/0.166, allocations: 1.731 MB / 403.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005466/0.1665, allocations: 0.4907 MB / 404.4 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003957/0.1669, allocations: 289 kB / 404.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002794/0.1697, allocations: 2.296 MB / 407 MB, free: 3.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1698, allocations: 0 / 407 MB, free: 3.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1698, allocations: 0 / 407 MB, free: 3.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.1698, allocations: 0 / 407 MB, free: 3.82 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.004027/0.1738, allocations: 1.79 MB / 408.8 MB, free: 1.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1739, allocations: 8.031 kB / 408.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004659/0.1743, allocations: 166.2 kB / 408.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.1757, allocations: 0.875 MB / 409.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.1759, allocations: 238.4 kB / 410 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001771/0.1761, allocations: 104 kB / 410.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002768/0.1788, allocations: 1.781 MB / 411.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.597e-05/0.1789, allocations: 0 / 411.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/0.179, allocations: 43.98 kB / 412 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001432/0.1792, allocations: 106 kB / 412.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00286/0.182, allocations: 1.761 MB / 413.8 MB, free: 12.77 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.01099/0.193, allocations: 6.963 MB / 420.8 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.1955, allocations: 1.498 MB / 422.3 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/0.1969, allocations: 0.8835 MB / 423.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008076/0.1977, allocations: 0.6568 MB / 423.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.874e-05/0.1977, allocations: 55.5 kB / 423.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 4.008e-06/0.1977, allocations: 7.984 kB / 423.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.2025/0.4002, allocations: 6.703 MB / 430.6 MB, free: 66.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.391e-05/0.4003, allocations: 170 kB / 430.8 MB, free: 66.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00164/0.402, allocations: 1.087 MB / 431.8 MB, free: 66.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001271/0.4021, allocations: 49.61 kB / 431.9 MB, free: 66.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003903/0.4025, allocations: 0.5028 MB / 432.4 MB, free: 66.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003433/0.4029, allocations: 433.3 kB / 432.8 MB, free: 65.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.888e-05/0.403, allocations: 28.62 kB / 432.9 MB, free: 65.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.4031, allocations: 356.1 kB / 433.2 MB, free: 65.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001354/0.4044, allocations: 0.8305 MB / 434 MB, free: 65.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00148/0.4059, allocations: 1.057 MB / 435.1 MB, free: 65.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001443/0.4074, allocations: 0.8827 MB / 436 MB, free: 65.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.4074, allocations: 2.125 kB / 436 MB, free: 65.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004508/0.4119, allocations: 2.591 MB / 438.6 MB, free: 64.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.412, allocations: 226.4 kB / 438.8 MB, free: 64.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.4121, allocations: 10.97 kB / 438.8 MB, free: 64.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003327/0.4154, allocations: 1.294 MB / 440.1 MB, free: 64.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009203/0.4163, allocations: 215 kB / 440.3 MB, free: 64.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005041/0.4214, allocations: 6.355 MB / 446.7 MB, free: 59.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.4227, allocations: 94.38 kB / 446.7 MB, free: 59.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001328/0.4228, allocations: 59.62 kB / 446.8 MB, free: 59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.644e-06/0.4229, allocations: 6.625 kB / 446.8 MB, free: 59 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003454/0.4263, allocations: 2.337 MB / 449.1 MB, free: 57.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.4263, allocations: 4.406 kB / 449.2 MB, free: 57.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002135/0.4285, allocations: 1.031 MB / 450.2 MB, free: 57.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009299/0.4294, allocations: 225 kB / 450.4 MB, free: 57.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004533/0.434, allocations: 6.106 MB / 456.5 MB, free: 51.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.4353, allocations: 99.53 kB / 456.6 MB, free: 51.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.4355, allocations: 54.84 kB / 456.7 MB, free: 51.73 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 3,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0007129/0.4362, allocations: 452.7 kB / 457.1 MB, free: 51.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/0.4364, allocations: 138 kB / 457.2 MB, free: 51.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004249/0.4407, allocations: 2.805 MB / 460 MB, free: 48.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.84e-05/0.4407, allocations: 16 kB / 460.1 MB, free: 48.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4407, allocations: 0 / 460.1 MB, free: 48.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.4408, allocations: 7.969 kB / 460.1 MB, free: 48.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005932/0.4467, allocations: 4.518 MB / 464.6 MB, free: 43.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.4467, allocations: 0 / 464.6 MB, free: 43.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007432/0.4475, allocations: 160.1 kB / 464.7 MB, free: 43.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002808/0.4503, allocations: 1.294 MB / 466 MB, free: 42.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001306/0.4504, allocations: 39.47 kB / 466.1 MB, free: 42.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004861/0.4553, allocations: 6.388 MB / 472.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4553, allocations: 0 / 472.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005374/0.4607, allocations: 3.936 MB / 476.4 MB, free: 31.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007551/0.4615, allocations: 439.1 kB / 476.8 MB, free: 31.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/0.4618, allocations: 31.94 kB / 476.9 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.463, allocations: 99.78 kB / 477 MB, free: 31.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004165/0.4635, allocations: 149.2 kB / 477.1 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001568/0.4636, allocations: 55.97 kB / 477.2 MB, free: 30.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001125/0.4648, allocations: 0.7376 MB / 477.9 MB, free: 30.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4648, allocations: 0 / 477.9 MB, free: 30.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003513/0.4683, allocations: 1.051 MB / 478.9 MB, free: 29.11 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 4,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.001518/0.4698, allocations: 0.7166 MB / 479.7 MB, free: 28.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005986/0.4758, allocations: 3.778 MB / 483.4 MB, free: 24.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/0.4758, allocations: 7.859 kB / 483.4 MB, free: 24.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002359/0.4782, allocations: 1.432 MB / 484.9 MB, free: 23.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002358/0.4806, allocations: 0.5939 MB / 485.5 MB, free: 22.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004889/0.4855, allocations: 3.555 MB / 489 MB, free: 19.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005695/0.4861, allocations: 1.275 MB / 490.3 MB, free: 17.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001673/0.4877, allocations: 0.5723 MB / 490.9 MB, free: 17.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003236/0.4881, allocations: 119.3 kB / 491 MB, free: 17.07 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4881, allocations: 0 / 491 MB, free: 17.07 MB / 350.1 MB Notification: Performance of Templates: time 0.05766/0.5457, allocations: 42.79 MB / 0.5213 GB, free: 6.602 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)