Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001032/0.001033, allocations: 98.47 kB / 16.95 MB, free: 6.027 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.001419/0.00142, allocations: 179.7 kB / 17.84 MB, free: 5.672 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.539/1.539, allocations: 205.4 MB / 224 MB, free: 13.14 MB / 190.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.00046/0.00046, allocations: 12 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1208, allocations: 47.59 MB / 328.4 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03541/0.1563, allocations: 28.83 MB / 357.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01835/0.1747, allocations: 9.808 MB / 367 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00209/0.1769, allocations: 47.62 kB / 367 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001999/0.1789, allocations: 389.5 kB / 367.4 MB, free: 12.9 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.006798/0.1857, allocations: 1.71 MB / 369.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008125/0.1939, allocations: 2.12 MB / 371.2 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006729/0.2006, allocations: 4.309 MB / 375.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002641/0.2033, allocations: 0.9566 MB / 376.5 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003792/0.2071, allocations: 1.32 MB / 377.8 MB, free: 2.445 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003219/0.2103, allocations: 1.359 MB / 379.2 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006569/0.211, allocations: 80 kB / 379.3 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2293/0.4403, allocations: 1.726 MB / 381 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001455/0.4418, allocations: 499.5 kB / 381.5 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00133/0.4432, allocations: 284.2 kB / 381.8 MB, free: 15.19 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006153/0.4493, allocations: 2.292 MB / 384.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.4494, allocations: 0 / 384.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4494, allocations: 0 / 384.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001234/0.4495, allocations: 3 kB / 384.1 MB, free: 15.12 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.008446/0.458, allocations: 1.789 MB / 385.8 MB, free: 14.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.458, allocations: 15.02 kB / 385.9 MB, free: 14.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001568/0.4596, allocations: 161.4 kB / 386 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003249/0.4629, allocations: 0.8713 MB / 386.9 MB, free: 13.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000299/0.4632, allocations: 236 kB / 387.1 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007314/0.464, allocations: 97.48 kB / 387.2 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005867/0.4698, allocations: 1.785 MB / 389 MB, free: 13.49 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.757e-05/0.4699, allocations: 13.06 kB / 389 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002055/0.4701, allocations: 45.38 kB / 389.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001788/0.4703, allocations: 99.72 kB / 389.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003552/0.4739, allocations: 1.772 MB / 390.9 MB, free: 13.46 MB / 318.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.01245/0.4863, allocations: 6.948 MB / 397.9 MB, free: 11.17 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002418/0.4888, allocations: 1.493 MB / 399.4 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/0.49, allocations: 0.8819 MB / 400.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007317/0.4907, allocations: 0.6578 MB / 400.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.4908, allocations: 46.81 kB / 401 MB, free: 10.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 4.979e-06/0.4908, allocations: 0 / 401 MB, free: 10.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.01706/0.5078, allocations: 6.717 MB / 407.7 MB, free: 9.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.5079, allocations: 166.7 kB / 407.8 MB, free: 9.312 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001954/0.5099, allocations: 1.087 MB / 408.9 MB, free: 9.156 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001523/0.5101, allocations: 54.2 kB / 409 MB, free: 9.125 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004191/0.5105, allocations: 0.4941 MB / 409.5 MB, free: 8.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004177/0.5109, allocations: 435.9 kB / 409.9 MB, free: 8.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.5111, allocations: 25.06 kB / 409.9 MB, free: 8.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.5112, allocations: 361.8 kB / 410.3 MB, free: 8.355 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/0.5126, allocations: 0.8267 MB / 411.1 MB, free: 8.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/0.5141, allocations: 1.064 MB / 412.2 MB, free: 7.965 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001435/0.5155, allocations: 0.878 MB / 413 MB, free: 7.852 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.5155, allocations: 7.906 kB / 413 MB, free: 7.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004211/0.5198, allocations: 2.586 MB / 415.6 MB, free: 7.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001308/0.5199, allocations: 232.6 kB / 415.9 MB, free: 7.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.5199, allocations: 10.12 kB / 415.9 MB, free: 7.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003368/0.5233, allocations: 1.286 MB / 417.2 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/0.5244, allocations: 218.9 kB / 417.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005697/0.5301, allocations: 6.361 MB / 423.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/0.532, allocations: 92.81 kB / 423.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002487/0.5322, allocations: 59.28 kB / 423.9 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.5322, allocations: 7.953 kB / 423.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004296/0.5365, allocations: 2.34 MB / 426.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.646e-05/0.5366, allocations: 4 kB / 426.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002437/0.539, allocations: 1.023 MB / 427.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009988/0.54, allocations: 228.1 kB / 427.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006434/0.5465, allocations: 6.107 MB / 433.6 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/0.5481, allocations: 91.84 kB / 433.7 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002234/0.5483, allocations: 59.97 kB / 433.7 MB, free: 7.934 MB / 334.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.001086/0.5494, allocations: 448.2 kB / 434.2 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004052/0.5498, allocations: 142.4 kB / 434.3 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005501/0.5553, allocations: 2.797 MB / 437.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.269e-05/0.5554, allocations: 20 kB / 437.1 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.5554, allocations: 3.938 kB / 437.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.5554, allocations: 7.969 kB / 437.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007851/0.5633, allocations: 4.527 MB / 441.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.5633, allocations: 384 / 441.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008022/0.5641, allocations: 162.5 kB / 441.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003344/0.5675, allocations: 1.29 MB / 443.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001356/0.5676, allocations: 43.97 kB / 443.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006985/0.5746, allocations: 6.37 MB / 449.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.5746, allocations: 3.281 kB / 449.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00774/0.5824, allocations: 3.933 MB / 453.5 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/0.5837, allocations: 451.1 kB / 453.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004588/0.5842, allocations: 24 kB / 453.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/0.5856, allocations: 95.97 kB / 454 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003975/0.586, allocations: 157.3 kB / 454.2 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001662/0.5862, allocations: 47.97 kB / 454.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001386/0.5876, allocations: 0.7415 MB / 455 MB, free: 2.324 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5876, allocations: 0 / 455 MB, free: 2.324 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.004399/0.592, allocations: 1.054 MB / 456 MB, free: 1.27 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.002733/0.5948, allocations: 0.7203 MB / 456.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00777/0.6025, allocations: 3.78 MB / 460.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.6026, allocations: 384 / 460.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003085/0.6057, allocations: 1.423 MB / 461.9 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003595/0.6093, allocations: 0.5934 MB / 462.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007163/0.6165, allocations: 3.559 MB / 466.1 MB, free: 7.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001179/0.6177, allocations: 1.272 MB / 467.4 MB, free: 5.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002442/0.6201, allocations: 0.5761 MB / 467.9 MB, free: 5.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004491/0.6206, allocations: 123.4 kB / 468.1 MB, free: 5.234 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6206, allocations: 0 / 468.1 MB, free: 5.234 MB / 366.1 MB Notification: Performance of Templates: time 0.07686/0.6975, allocations: 42.79 MB / 0.4989 GB, free: 10.55 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)