Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.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) 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 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(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_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_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001243/0.001243, allocations: 113 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001225/0.001225, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2199/0.2199, allocations: 46.11 MB / 345 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 79.88 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3818/0.3831, allocations: 62.43 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank): time 0.02037/0.4036, allocations: 16.81 MB / 0.5481 GB, free: 100 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01138/0.415, allocations: 6.993 MB / 0.5549 GB, free: 9.879 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001195/0.4162, allocations: 23.81 kB / 0.5549 GB, free: 9.855 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.4175, allocations: 381.8 kB / 0.5553 GB, free: 9.48 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003051/0.4205, allocations: 1.046 MB / 0.5563 GB, free: 8.43 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00573/0.4263, allocations: 1.978 MB / 0.5582 GB, free: 6.465 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002895/0.4292, allocations: 2.203 MB / 0.5604 GB, free: 4.25 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000933/0.4301, allocations: 0.6429 MB / 0.561 GB, free: 3.594 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001346/0.4315, allocations: 0.8683 MB / 0.5619 GB, free: 2.723 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001051/0.4325, allocations: 0.8254 MB / 0.5627 GB, free: 1.895 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001332/0.4327, allocations: 84 kB / 0.5627 GB, free: 1.812 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002871/0.4356, allocations: 1.33 MB / 0.564 GB, free: 492 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003544/0.4359, allocations: 339 kB / 0.5644 GB, free: 152 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005727/0.4365, allocations: 489.7 kB / 0.5648 GB, free: 15.67 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003015/0.4395, allocations: 1.999 MB / 0.5668 GB, free: 13.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.4396, allocations: 0 / 0.5668 GB, free: 13.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4396, allocations: 0 / 0.5668 GB, free: 13.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.4396, allocations: 0 / 0.5668 GB, free: 13.66 MB / 430.1 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.002802/0.4424, allocations: 1.392 MB / 0.5681 GB, free: 12.21 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.4425, allocations: 16.03 kB / 0.5682 GB, free: 12.2 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003801/0.4429, allocations: 107.8 kB / 0.5683 GB, free: 12.09 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009922/0.4439, allocations: 0.6557 MB / 0.5689 GB, free: 11.4 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001212/0.444, allocations: 104.7 kB / 0.569 GB, free: 11.28 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.4441, allocations: 59.98 kB / 0.5691 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00155/0.4457, allocations: 1.007 MB / 0.57 GB, free: 10.17 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.4457, allocations: 3.984 kB / 0.57 GB, free: 10.17 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.201e-05/0.4458, allocations: 28 kB / 0.5701 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.236e-05/0.4459, allocations: 57.28 kB / 0.5701 GB, free: 10.09 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.4473, allocations: 0.9146 MB / 0.571 GB, free: 9.168 MB / 430.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.0059/0.4533, allocations: 4.057 MB / 0.575 GB, free: 4.906 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.4543, allocations: 0.6673 MB / 0.5756 GB, free: 4.234 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005851/0.4549, allocations: 406.1 kB / 0.576 GB, free: 3.836 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003069/0.458, allocations: 2.338 MB / 0.5783 GB, free: 1.246 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007427/0.4587, allocations: 0.4924 MB / 0.5788 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of pre-optimization done (n=48): time 2.104e-06/0.4588, allocations: 0 / 0.5788 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of matching and sorting (n=53): time 0.005417/0.4642, allocations: 2.609 MB / 0.5813 GB, free: 14 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/0.4643, allocations: 247.7 kB / 0.5816 GB, free: 13.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/0.4654, allocations: 0.8446 MB / 0.5824 GB, free: 12.85 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.786e-05/0.4655, allocations: 37.7 kB / 0.5824 GB, free: 12.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003314/0.4658, allocations: 419.7 kB / 0.5828 GB, free: 12.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.466, allocations: 177.5 kB / 0.583 GB, free: 12.21 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002921/0.4663, allocations: 166.5 kB / 0.5832 GB, free: 12.04 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.4664, allocations: 338 kB / 0.5835 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005946/0.467, allocations: 376.6 kB / 0.5838 GB, free: 11.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007885/0.4678, allocations: 0.6214 MB / 0.5845 GB, free: 10.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001319/0.4691, allocations: 0.9594 MB / 0.5854 GB, free: 9.543 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.4692, allocations: 4 kB / 0.5854 GB, free: 9.539 MB / 446.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.002102/0.4713, allocations: 1.282 MB / 0.5866 GB, free: 8.242 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.567e-05/0.4713, allocations: 37.7 kB / 0.5867 GB, free: 8.199 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.4713, allocations: 8 kB / 0.5867 GB, free: 8.191 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009665/0.4723, allocations: 357.7 kB / 0.587 GB, free: 7.836 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006265/0.473, allocations: 155.7 kB / 0.5872 GB, free: 7.684 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/0.4743, allocations: 1.456 MB / 0.5886 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006383/0.475, allocations: 35.97 kB / 0.5886 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-05/0.4751, allocations: 36 kB / 0.5887 GB, free: 6.105 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000859/0.4759, allocations: 0.5761 MB / 0.5892 GB, free: 5.523 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007686/0.4767, allocations: 0.6105 MB / 0.5898 GB, free: 4.805 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001279/0.478, allocations: 0.9602 MB / 0.5908 GB, free: 3.738 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.231e-06/0.478, allocations: 4 kB / 0.5908 GB, free: 3.734 MB / 446.1 MB Notification: Performance of matching and sorting (n=97) (initialization_lambda0): time 0.00204/0.4801, allocations: 1.263 MB / 0.592 GB, free: 2.449 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.302e-05/0.4801, allocations: 37.7 kB / 0.592 GB, free: 2.406 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.4801, allocations: 4 kB / 0.592 GB, free: 2.402 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007873/0.4809, allocations: 345.8 kB / 0.5924 GB, free: 2.059 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005792/0.4815, allocations: 151.7 kB / 0.5925 GB, free: 1.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/0.4828, allocations: 1.436 MB / 0.5939 GB, free: 432 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006552/0.4835, allocations: 43.92 kB / 0.594 GB, free: 388 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.55e-05/0.4836, allocations: 40.23 kB / 0.594 GB, free: 348 kB / 446.1 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 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,tank.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1],$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,1), (2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003324/0.4839, allocations: 269.7 kB / 0.5943 GB, free: 64 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.4841, allocations: 99.2 kB / 0.5943 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002035/0.4861, allocations: 1.084 MB / 0.5954 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.4861, allocations: 8 kB / 0.5954 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.4861, allocations: 0 / 0.5954 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.4862, allocations: 3.984 kB / 0.5954 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002811/0.489, allocations: 1.948 MB / 0.5973 GB, free: 12.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.489, allocations: 0 / 0.5973 GB, free: 12.83 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004173/0.4894, allocations: 87.83 kB / 0.5974 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007987/0.4902, allocations: 337.5 kB / 0.5977 GB, free: 12.41 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.354e-05/0.4903, allocations: 16 kB / 0.5977 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.4916, allocations: 1.456 MB / 0.5992 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4916, allocations: 0 / 0.5992 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002272/0.4939, allocations: 1.575 MB / 0.6007 GB, free: 9.285 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003814/0.4943, allocations: 247.9 kB / 0.6009 GB, free: 9.023 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.4944, allocations: 16 kB / 0.601 GB, free: 9.008 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005328/0.4949, allocations: 36.09 kB / 0.601 GB, free: 8.973 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.4951, allocations: 40.38 kB / 0.601 GB, free: 8.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.656e-05/0.4951, allocations: 27.98 kB / 0.6011 GB, free: 8.902 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007277/0.4959, allocations: 0.5849 MB / 0.6016 GB, free: 8.32 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4959, allocations: 0 / 0.6016 GB, free: 8.32 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001649/0.4975, allocations: 0.617 MB / 0.6022 GB, free: 7.703 MB / 462.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,1), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00114/0.4987, allocations: 0.4956 MB / 0.6027 GB, free: 7.207 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003276/0.502, allocations: 1.619 MB / 0.6043 GB, free: 5.566 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.502, allocations: 0 / 0.6043 GB, free: 5.566 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009385/0.5029, allocations: 0.4913 MB / 0.6048 GB, free: 5.066 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00147/0.5044, allocations: 365 kB / 0.6051 GB, free: 4.719 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003282/0.5077, allocations: 1.764 MB / 0.6068 GB, free: 2.922 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006127/0.5083, allocations: 1.013 MB / 0.6078 GB, free: 1.879 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002601/0.5086, allocations: 83.42 kB / 0.6079 GB, free: 1.797 MB / 462.1 MB Notification: Performance of SimCode: time 8.01e-07/0.5086, allocations: 0 / 0.6079 GB, free: 1.797 MB / 462.1 MB Notification: Performance of Templates: time 0.03157/0.5402, allocations: 23.18 MB / 0.6306 GB, free: 10.67 MB / 494.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)