Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 226.5 MB / 243.4 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007717/0.0007717, allocations: 94.86 kB / 295.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2987/0.2987, allocations: 44.81 MB / 392.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002842/0.0002842, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3274, allocations: 62.96 MB / 0.5159 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank): time 0.0115/0.339, allocations: 15.88 MB / 0.5314 GB, free: 25.61 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.007397/0.3464, allocations: 6.607 MB / 0.5378 GB, free: 20.97 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008137/0.3473, allocations: 27.22 kB / 0.5379 GB, free: 20.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008135/0.3481, allocations: 328.2 kB / 0.5382 GB, free: 20.8 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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.002082/0.3502, allocations: 0.9917 MB / 0.5391 GB, free: 20.29 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003741/0.3539, allocations: 1.561 MB / 0.5407 GB, free: 19.59 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00246/0.3564, allocations: 2.56 MB / 0.5432 GB, free: 18.63 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008608/0.3573, allocations: 0.5611 MB / 0.5437 GB, free: 18.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001205/0.3585, allocations: 0.7476 MB / 0.5445 GB, free: 18.18 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00103/0.3595, allocations: 0.7787 MB / 0.5452 GB, free: 17.93 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001305/0.3597, allocations: 43.47 kB / 0.5453 GB, free: 17.93 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002444/0.3621, allocations: 1.231 MB / 0.5465 GB, free: 17.6 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003871/0.3625, allocations: 294.9 kB / 0.5467 GB, free: 17.5 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005637/0.3631, allocations: 458.7 kB / 0.5472 GB, free: 17.25 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002115/0.3652, allocations: 1.412 MB / 0.5486 GB, free: 16.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3653, allocations: 0 / 0.5486 GB, free: 16.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3653, allocations: 0 / 0.5486 GB, free: 16.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.325e-05/0.3653, allocations: 1.156 kB / 0.5486 GB, free: 16.93 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.002602/0.3679, allocations: 1.209 MB / 0.5497 GB, free: 16.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.3679, allocations: 9.906 kB / 0.5497 GB, free: 16.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003845/0.3683, allocations: 109.6 kB / 0.5498 GB, free: 16.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.3694, allocations: 0.6276 MB / 0.5505 GB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/0.3695, allocations: 106.7 kB / 0.5506 GB, free: 15.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.3696, allocations: 53.12 kB / 0.5506 GB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/0.3714, allocations: 1.003 MB / 0.5516 GB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.3714, allocations: 3.938 kB / 0.5516 GB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.276e-05/0.3715, allocations: 32.3 kB / 0.5516 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.157e-05/0.3716, allocations: 53.86 kB / 0.5517 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.3731, allocations: 0.9156 MB / 0.5526 GB, free: 14.75 MB / 378.7 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.005651/0.3787, allocations: 4.081 MB / 0.5566 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009751/0.3797, allocations: 0.6425 MB / 0.5572 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005554/0.3803, allocations: 401.6 kB / 0.5576 GB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00291/0.3832, allocations: 2.365 MB / 0.5599 GB, free: 8.797 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006931/0.3839, allocations: 0.4898 MB / 0.5604 GB, free: 8.457 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 2.535e-06/0.3839, allocations: 1.125 kB / 0.5604 GB, free: 8.457 MB / 378.7 MB Notification: Performance of matching and sorting (n=53): time 0.005216/0.3892, allocations: 2.618 MB / 0.5629 GB, free: 6.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/0.3893, allocations: 248.8 kB / 0.5632 GB, free: 6.547 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/0.3904, allocations: 0.8338 MB / 0.564 GB, free: 6.074 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.27e-05/0.3904, allocations: 38.14 kB / 0.564 GB, free: 6.035 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.3907, allocations: 417.7 kB / 0.5644 GB, free: 5.672 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.3908, allocations: 178.1 kB / 0.5646 GB, free: 5.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/0.3909, allocations: 15.44 kB / 0.5646 GB, free: 5.508 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.795e-05/0.391, allocations: 339 kB / 0.5649 GB, free: 5.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005552/0.3915, allocations: 361.7 kB / 0.5653 GB, free: 5.004 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006731/0.3922, allocations: 0.61 MB / 0.5658 GB, free: 4.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.3934, allocations: 0.9606 MB / 0.5668 GB, free: 3.812 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3934, allocations: 1.281 kB / 0.5668 GB, free: 3.812 MB / 378.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.002042/0.3954, allocations: 1.259 MB / 0.568 GB, free: 2.938 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001358/0.3956, allocations: 313.2 kB / 0.5683 GB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.3956, allocations: 8 kB / 0.5683 GB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008845/0.3965, allocations: 349.4 kB / 0.5687 GB, free: 2.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005506/0.3971, allocations: 159.7 kB / 0.5688 GB, free: 2.023 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/0.3981, allocations: 1.452 MB / 0.5702 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008365/0.399, allocations: 48.02 kB / 0.5703 GB, free: 484 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.566e-05/0.399, allocations: 35.98 kB / 0.5703 GB, free: 448 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.895e-06/0.3991, allocations: 4 kB / 0.5703 GB, free: 444 kB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001843/0.4009, allocations: 1.172 MB / 0.5715 GB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.4009, allocations: 8.547 kB / 0.5715 GB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007458/0.4017, allocations: 349.4 kB / 0.5718 GB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005754/0.4023, allocations: 151.7 kB / 0.5719 GB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/0.4035, allocations: 1.444 MB / 0.5734 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007869/0.4043, allocations: 52 kB / 0.5734 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.896e-05/0.4044, allocations: 39.98 kB / 0.5734 GB, free: 13.16 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0006302/0.405, allocations: 386.6 kB / 0.5738 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.4052, allocations: 86.97 kB / 0.5739 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002046/0.4072, allocations: 1.097 MB / 0.575 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.4073, allocations: 4 kB / 0.575 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.4073, allocations: 4 kB / 0.575 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.4073, allocations: 3.984 kB / 0.575 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002966/0.4103, allocations: 1.937 MB / 0.5769 GB, free: 9.551 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.4103, allocations: 0 / 0.5769 GB, free: 9.551 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00042/0.4107, allocations: 83.89 kB / 0.5769 GB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008497/0.4116, allocations: 357.4 kB / 0.5773 GB, free: 9.113 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.435e-05/0.4116, allocations: 23.92 kB / 0.5773 GB, free: 9.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001281/0.4129, allocations: 1.436 MB / 0.5787 GB, free: 7.602 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.4129, allocations: 8.016 kB / 0.5787 GB, free: 7.594 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/0.4152, allocations: 1.562 MB / 0.5802 GB, free: 5.992 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004729/0.4157, allocations: 267.8 kB / 0.5805 GB, free: 5.711 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.4159, allocations: 16.12 kB / 0.5805 GB, free: 5.695 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000598/0.4165, allocations: 39.97 kB / 0.5806 GB, free: 5.656 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.4166, allocations: 44.36 kB / 0.5806 GB, free: 5.613 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.491e-05/0.4167, allocations: 27.98 kB / 0.5806 GB, free: 5.586 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007672/0.4175, allocations: 0.5771 MB / 0.5812 GB, free: 5.016 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4175, allocations: 0 / 0.5812 GB, free: 5.016 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002018/0.4195, allocations: 0.6248 MB / 0.5818 GB, free: 4.391 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.level,tank.medium.T) * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001317/0.4208, allocations: 0.5111 MB / 0.5823 GB, free: 3.883 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002923/0.4237, allocations: 1.561 MB / 0.5838 GB, free: 2.309 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.174e-06/0.4238, allocations: 8.062 kB / 0.5838 GB, free: 2.301 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009478/0.4247, allocations: 497.8 kB / 0.5843 GB, free: 1.801 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001739/0.4265, allocations: 340 kB / 0.5846 GB, free: 1.473 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/0.4298, allocations: 2.044 MB / 0.5866 GB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005315/0.4303, allocations: 1.006 MB / 0.5876 GB, free: 14.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002736/0.4306, allocations: 79.41 kB / 0.5877 GB, free: 14.28 MB / 410.7 MB Notification: Performance of SimCode: time 7.61e-07/0.4306, allocations: 0 / 0.5877 GB, free: 14.28 MB / 410.7 MB Notification: Performance of Templates: time 0.02931/0.4599, allocations: 22.98 MB / 0.6101 GB, free: 7.359 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)