Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001005/0.001005, allocations: 100.8 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001368/0.001368, allocations: 200.5 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.7 MB / 246.4 MB, free: 11.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001967/0.0001967, allocations: 8 kB / 307.1 MB, free: 1.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0853/0.08551, allocations: 51.52 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.1823/0.2678, allocations: 28.95 MB / 387.6 MB, free: 6.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0131/0.281, allocations: 9.866 MB / 397.4 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001271/0.2823, allocations: 43.56 kB / 397.5 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.2834, allocations: 399.7 kB / 397.9 MB, free: 15.18 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:783:36-784:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:781:36-782:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.004114/0.2875, allocations: 1.696 MB / 399.6 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005622/0.2932, allocations: 2.125 MB / 401.7 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004766/0.2979, allocations: 4.325 MB / 406 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001426/0.2994, allocations: 0.9565 MB / 407 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002172/0.3016, allocations: 1.331 MB / 408.3 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00175/0.3033, allocations: 1.371 MB / 409.7 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001712/0.3035, allocations: 78.91 kB / 409.8 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003473/0.307, allocations: 1.748 MB / 411.5 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005194/0.3075, allocations: 498.3 kB / 412 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003748/0.3079, allocations: 283.9 kB / 412.3 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002793/0.3107, allocations: 2.313 MB / 414.6 MB, free: 4.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3107, allocations: 4 kB / 414.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3107, allocations: 0 / 414.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.55e-05/0.3108, allocations: 0 / 414.6 MB, free: 4.445 MB / 318.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.004038/0.3148, allocations: 1.784 MB / 416.4 MB, free: 2.609 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.3148, allocations: 8.031 kB / 416.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004541/0.3153, allocations: 162.3 kB / 416.5 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.3166, allocations: 0.8712 MB / 417.4 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/0.3168, allocations: 246.3 kB / 417.7 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001765/0.317, allocations: 95.98 kB / 417.7 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002795/0.3198, allocations: 1.794 MB / 419.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.3198, allocations: 3.906 kB / 419.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001364/0.32, allocations: 39.98 kB / 419.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001228/0.3201, allocations: 106 kB / 419.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002837/0.3229, allocations: 1.768 MB / 421.5 MB, free: 13.38 MB / 334.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.01097/0.3339, allocations: 6.949 MB / 428.4 MB, free: 6.129 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002525/0.3365, allocations: 1.494 MB / 429.9 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/0.3378, allocations: 0.8851 MB / 430.8 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008285/0.3386, allocations: 0.6607 MB / 431.4 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.3387, allocations: 47.55 kB / 431.5 MB, free: 2.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.076e-06/0.3387, allocations: 4 kB / 431.5 MB, free: 2.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01597/0.3547, allocations: 6.708 MB / 438.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.532e-05/0.3548, allocations: 171.5 kB / 438.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001407/0.3562, allocations: 1.092 MB / 439.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001264/0.3564, allocations: 53.7 kB / 439.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003989/0.3568, allocations: 0.5042 MB / 440 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004031/0.3572, allocations: 425.9 kB / 440.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.3573, allocations: 24 kB / 440.5 MB, free: 9.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3574, allocations: 361.9 kB / 440.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001365/0.3588, allocations: 0.8237 MB / 441.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/0.3603, allocations: 1.061 MB / 442.7 MB, free: 7.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.3617, allocations: 0.8847 MB / 443.6 MB, free: 6.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.3617, allocations: 4 kB / 443.6 MB, free: 6.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004411/0.3661, allocations: 2.588 MB / 446.2 MB, free: 3.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001494/0.3663, allocations: 235.5 kB / 446.4 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.3663, allocations: 8 kB / 446.4 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003472/0.3698, allocations: 1.29 MB / 447.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009909/0.3708, allocations: 219.6 kB / 447.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006441/0.3772, allocations: 6.347 MB / 454.3 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.3785, allocations: 100.1 kB / 454.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/0.3787, allocations: 55.97 kB / 454.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.761e-06/0.3787, allocations: 0 / 454.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004125/0.3828, allocations: 2.35 MB / 456.8 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.3828, allocations: 8 kB / 456.8 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002392/0.3852, allocations: 1.012 MB / 457.8 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.3863, allocations: 231.6 kB / 458 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00607/0.3924, allocations: 6.1 MB / 464.1 MB, free: 1.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.3936, allocations: 95.84 kB / 464.2 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/0.3938, allocations: 59.97 kB / 464.3 MB, free: 1.016 MB / 366.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.0007723/0.3946, allocations: 455.2 kB / 464.7 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002853/0.3949, allocations: 134.3 kB / 464.8 MB, free: 440 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005187/0.4001, allocations: 2.81 MB / 467.6 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.765e-05/0.4001, allocations: 12 kB / 467.7 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.4001, allocations: 4 kB / 467.7 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.4001, allocations: 11.97 kB / 467.7 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007485/0.4076, allocations: 4.514 MB / 472.2 MB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.4077, allocations: 3.953 kB / 472.2 MB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007944/0.4085, allocations: 151.8 kB / 472.3 MB, free: 8.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003292/0.4118, allocations: 1.295 MB / 473.6 MB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001466/0.4119, allocations: 35.98 kB / 473.7 MB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006582/0.4185, allocations: 6.398 MB / 480.1 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-06/0.4185, allocations: 0 / 480.1 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006759/0.4253, allocations: 3.936 MB / 484 MB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009341/0.4263, allocations: 439.1 kB / 484.4 MB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003059/0.4266, allocations: 24 kB / 484.5 MB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.4278, allocations: 99.77 kB / 484.6 MB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003392/0.4281, allocations: 153 kB / 484.7 MB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001563/0.4283, allocations: 55.91 kB / 484.8 MB, free: 12.01 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001158/0.4295, allocations: 0.7376 MB / 485.5 MB, free: 11.26 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4295, allocations: 4 kB / 485.5 MB, free: 11.26 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003062/0.4326, allocations: 1.054 MB / 486.6 MB, free: 10.2 MB / 398.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.001746/0.4343, allocations: 0.7236 MB / 487.3 MB, free: 9.477 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007591/0.4419, allocations: 3.779 MB / 491.1 MB, free: 5.648 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.442, allocations: 0 / 491.1 MB, free: 5.648 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002889/0.4449, allocations: 1.43 MB / 492.5 MB, free: 4.195 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002902/0.4478, allocations: 0.6025 MB / 493.1 MB, free: 3.602 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006524/0.4543, allocations: 3.551 MB / 496.6 MB, free: 24 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009938/0.4553, allocations: 1.268 MB / 497.9 MB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002126/0.4575, allocations: 0.5728 MB / 498.5 MB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004001/0.4579, allocations: 123.3 kB / 498.6 MB, free: 14.04 MB / 414.1 MB Notification: Performance of SimCode: time 6.22e-07/0.4579, allocations: 0 / 498.6 MB, free: 14.04 MB / 414.1 MB Notification: Performance of Templates: time 0.06549/0.5234, allocations: 42.81 MB / 0.5287 GB, free: 3.488 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)