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.001113/0.001113, allocations: 106.8 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 209.8 kB / 18.27 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 55.72 kB / 306.4 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09831/0.09959, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.2123/0.3119, allocations: 31.32 MB / 388.3 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01412/0.3261, allocations: 10.51 MB / 398.8 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002056/0.3282, allocations: 47.94 kB / 398.9 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.3297, allocations: 419.7 kB / 399.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00571/0.3355, allocations: 1.745 MB / 401 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007878/0.3434, allocations: 2.522 MB / 403.5 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006137/0.3495, allocations: 3.699 MB / 407.2 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002271/0.3518, allocations: 1.162 MB / 408.4 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003827/0.3556, allocations: 1.519 MB / 409.9 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002813/0.3585, allocations: 1.469 MB / 411.4 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005794/0.3591, allocations: 156.1 kB / 411.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005545/0.3646, allocations: 2.111 MB / 413.6 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001022/0.3656, allocations: 0.5728 MB / 414.2 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001751/0.3674, allocations: 0.8167 MB / 415 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006263/0.3737, allocations: 3.331 MB / 418.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3737, allocations: 0 / 418.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3737, allocations: 4 kB / 418.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.146e-05/0.3738, allocations: 0 / 418.4 MB, free: 14.66 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.006018/0.3798, allocations: 2.038 MB / 420.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.3799, allocations: 12.02 kB / 420.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006139/0.3805, allocations: 167.5 kB / 420.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001468/0.382, allocations: 0.9018 MB / 421.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002117/0.3822, allocations: 242.4 kB / 421.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000188/0.3824, allocations: 99.98 kB / 421.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002978/0.3854, allocations: 1.794 MB / 423.6 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/0.3854, allocations: 4 kB / 423.6 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001571/0.3856, allocations: 47.92 kB / 423.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001255/0.3857, allocations: 97.98 kB / 423.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002823/0.3885, allocations: 1.776 MB / 425.5 MB, free: 7.297 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.01107/0.3996, allocations: 6.932 MB / 432.5 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002614/0.4022, allocations: 1.486 MB / 433.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001331/0.4036, allocations: 0.8866 MB / 434.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008892/0.4045, allocations: 0.6412 MB / 435.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.4045, allocations: 51.56 kB / 435.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 2.836e-06/0.4046, allocations: 4 kB / 435.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.01742/0.422, allocations: 6.617 MB / 442.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.4221, allocations: 175.5 kB / 442.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.4237, allocations: 1.096 MB / 443.4 MB, free: 4.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001484/0.4239, allocations: 57.64 kB / 443.5 MB, free: 4.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004936/0.4244, allocations: 0.4888 MB / 444 MB, free: 4.227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005008/0.4249, allocations: 437.7 kB / 444.4 MB, free: 3.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005091/0.4254, allocations: 271.5 kB / 444.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.4256, allocations: 357.9 kB / 445 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/0.4269, allocations: 0.8519 MB / 445.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001708/0.4286, allocations: 1.069 MB / 446.9 MB, free: 1.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002907/0.4316, allocations: 1.808 MB / 448.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.4316, allocations: 4 kB / 448.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004835/0.4364, allocations: 2.623 MB / 451.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.4365, allocations: 7.938 kB / 451.4 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.4365, allocations: 8 kB / 451.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003757/0.4403, allocations: 1.307 MB / 452.7 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009919/0.4413, allocations: 219.6 kB / 452.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007569/0.4488, allocations: 6.717 MB / 459.6 MB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.4502, allocations: 83.94 kB / 459.7 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001555/0.4504, allocations: 60.16 kB / 459.8 MB, free: 3.875 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001981/0.4524, allocations: 1.098 MB / 460.9 MB, free: 2.773 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001512/0.4539, allocations: 1.066 MB / 461.9 MB, free: 1.629 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002844/0.4568, allocations: 1.77 MB / 463.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.009e-06/0.4568, allocations: 4 kB / 463.7 MB, free: 15.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004621/0.4614, allocations: 2.506 MB / 466.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.4614, allocations: 7.984 kB / 466.2 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.4615, allocations: 8 kB / 466.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002642/0.4641, allocations: 1.012 MB / 467.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.4652, allocations: 235.6 kB / 467.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00689/0.4721, allocations: 6.461 MB / 473.9 MB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.4735, allocations: 96.03 kB / 474 MB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.4737, allocations: 55.97 kB / 474.1 MB, free: 5.012 MB / 382.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 (hysteresis.y,$PRE.hysteresis.y,lowerTank.inFlow[2],lowerTank.inFlow[1],lowerTank.regularFlow[2],lowerTank.regularFlow[1],upperTank.inFlow[3],upperTank.inFlow[2],upperTank.inFlow[1],upperTank.regularFlow[3],upperTank.regularFlow[2],upperTank.regularFlow[1]) * 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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,3), (4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004925/0.4742, allocations: 263.1 kB / 474.3 MB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003003/0.4745, allocations: 138.3 kB / 474.5 MB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005168/0.4797, allocations: 2.807 MB / 477.3 MB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.749e-05/0.4797, allocations: 12 kB / 477.3 MB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.4797, allocations: 4 kB / 477.3 MB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.597e-05/0.4797, allocations: 11.91 kB / 477.3 MB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00728/0.487, allocations: 4.53 MB / 481.8 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.487, allocations: 0 / 481.8 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007959/0.4878, allocations: 151.8 kB / 482 MB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00319/0.491, allocations: 1.295 MB / 483.3 MB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001245/0.4912, allocations: 39.91 kB / 483.3 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006746/0.4979, allocations: 6.76 MB / 490.1 MB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.498, allocations: 0 / 490.1 MB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006799/0.5048, allocations: 3.944 MB / 494 MB, free: 0.5703 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/0.5059, allocations: 439.1 kB / 494.4 MB, free: 124 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002582/0.5062, allocations: 28 kB / 494.5 MB, free: 96 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.5073, allocations: 87.8 kB / 494.5 MB, free: 8 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004123/0.5077, allocations: 141.1 kB / 494.7 MB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/0.5079, allocations: 47.97 kB / 494.7 MB, free: 15.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001141/0.509, allocations: 0.7532 MB / 495.5 MB, free: 15.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.509, allocations: 0 / 495.5 MB, free: 15.06 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003368/0.5124, allocations: 1.054 MB / 496.5 MB, free: 14.01 MB / 414.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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,4), (4,14), (4,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001765/0.5142, allocations: 0.7392 MB / 497.3 MB, free: 13.26 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.009223/0.5234, allocations: 4.395 MB / 0.4899 GB, free: 8.816 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.423e-06/0.5234, allocations: 3.859 kB / 0.4899 GB, free: 8.812 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003071/0.5265, allocations: 1.438 MB / 0.4913 GB, free: 7.352 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002867/0.5294, allocations: 0.6277 MB / 0.4919 GB, free: 6.738 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006406/0.5358, allocations: 3.589 MB / 0.4954 GB, free: 3.137 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000844/0.5367, allocations: 1.272 MB / 0.4967 GB, free: 1.836 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002019/0.5387, allocations: 0.5726 MB / 0.4972 GB, free: 1.262 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003595/0.5391, allocations: 123.3 kB / 0.4974 GB, free: 1.141 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.5391, allocations: 0 / 0.4974 GB, free: 1.141 MB / 414.1 MB Notification: Performance of Templates: time 0.2185/0.7576, allocations: 46.19 MB / 0.5425 GB, free: 149 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)