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.001695/0.001695, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001915/0.001916, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.103/2.103, allocations: 227.4 MB / 246.9 MB, free: 9.027 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3688/0.3688, allocations: 46.11 MB / 344.3 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002311/0.002311, allocations: 80.92 kB / 417.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1699/0.1723, allocations: 62.45 MB / 479.9 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank): time 0.03041/0.2027, allocations: 17.33 MB / 497.3 MB, free: 4.273 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01654/0.2193, allocations: 7.329 MB / 0.4928 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001728/0.2211, allocations: 31.75 kB / 0.4928 GB, free: 12.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001832/0.2231, allocations: 330.4 kB / 0.4931 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00438/0.2275, allocations: 0.9647 MB / 0.4941 GB, free: 11.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007808/0.2353, allocations: 1.666 MB / 0.4957 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005196/0.2405, allocations: 3.073 MB / 0.4987 GB, free: 6.867 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001707/0.2423, allocations: 0.5708 MB / 0.4992 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002679/0.245, allocations: 0.7473 MB / 0.5 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002133/0.2472, allocations: 0.8331 MB / 0.5008 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004497/0.2477, allocations: 47.94 kB / 0.5008 GB, free: 4.648 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004468/0.2521, allocations: 1.303 MB / 0.5021 GB, free: 3.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008328/0.253, allocations: 303.1 kB / 0.5024 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00131/0.2544, allocations: 461.6 kB / 0.5028 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003621/0.258, allocations: 1.427 MB / 0.5042 GB, free: 1.164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.2581, allocations: 0 / 0.5042 GB, free: 1.164 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2581, allocations: 0 / 0.5042 GB, free: 1.164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.041e-05/0.2581, allocations: 0 / 0.5042 GB, free: 1.164 MB / 382.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.345/0.6031, allocations: 1.387 MB / 0.5056 GB, free: 43.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.465e-05/0.6032, allocations: 9.656 kB / 0.5056 GB, free: 43.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009751/0.6042, allocations: 109.1 kB / 0.5057 GB, free: 43.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001884/0.6061, allocations: 0.6263 MB / 0.5063 GB, free: 42.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001701/0.6063, allocations: 111.8 kB / 0.5064 GB, free: 42.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002511/0.6065, allocations: 54.16 kB / 0.5065 GB, free: 42.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003097/0.6096, allocations: 1.011 MB / 0.5075 GB, free: 42.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.779e-05/0.6097, allocations: 6.531 kB / 0.5075 GB, free: 42.63 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001598/0.6099, allocations: 24.86 kB / 0.5075 GB, free: 42.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001272/0.61, allocations: 50.98 kB / 0.5075 GB, free: 42.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002453/0.6125, allocations: 0.9204 MB / 0.5084 GB, free: 42.3 MB / 382.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.01023/0.6227, allocations: 4.058 MB / 0.5124 GB, free: 39.72 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/0.6245, allocations: 0.6452 MB / 0.513 GB, free: 39.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009296/0.6255, allocations: 408.9 kB / 0.5134 GB, free: 39.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005488/0.631, allocations: 2.342 MB / 0.5157 GB, free: 37.51 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001275/0.6323, allocations: 0.4943 MB / 0.5162 GB, free: 37.28 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 5.14e-06/0.6323, allocations: 0 / 0.5162 GB, free: 37.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=53): time 0.008714/0.641, allocations: 2.619 MB / 0.5187 GB, free: 35.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.936e-05/0.6412, allocations: 241.4 kB / 0.519 GB, free: 35.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0022/0.6434, allocations: 0.8389 MB / 0.5198 GB, free: 35.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001579/0.6436, allocations: 37.7 kB / 0.5198 GB, free: 35.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004692/0.6441, allocations: 423.5 kB / 0.5202 GB, free: 34.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003109/0.6444, allocations: 174 kB / 0.5204 GB, free: 34.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005908/0.645, allocations: 168.5 kB / 0.5206 GB, free: 34.76 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.6451, allocations: 336.2 kB / 0.5209 GB, free: 34.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.6462, allocations: 375.9 kB / 0.5212 GB, free: 34.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001232/0.6474, allocations: 0.6189 MB / 0.5218 GB, free: 33.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00204/0.6495, allocations: 0.9675 MB / 0.5228 GB, free: 33.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/0.6495, allocations: 2.219 kB / 0.5228 GB, free: 33.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.003659/0.6532, allocations: 1.279 MB / 0.524 GB, free: 32.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.58e-05/0.6532, allocations: 43.62 kB / 0.5241 GB, free: 32.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.527e-05/0.6533, allocations: 6.781 kB / 0.5241 GB, free: 32.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001428/0.6547, allocations: 358.7 kB / 0.5244 GB, free: 32.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.6557, allocations: 156.8 kB / 0.5246 GB, free: 32.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001842/0.6576, allocations: 1.453 MB / 0.526 GB, free: 31.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/0.659, allocations: 44.33 kB / 0.526 GB, free: 31.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001638/0.6591, allocations: 39.58 kB / 0.5261 GB, free: 31.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001495/0.6607, allocations: 0.5701 MB / 0.5266 GB, free: 31.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001184/0.6619, allocations: 0.621 MB / 0.5272 GB, free: 30.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001934/0.6638, allocations: 0.9565 MB / 0.5282 GB, free: 29.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.332e-05/0.6638, allocations: 5.531 kB / 0.5282 GB, free: 29.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=97) (initialization_lambda0): time 0.003404/0.6673, allocations: 1.264 MB / 0.5294 GB, free: 29.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.059e-05/0.6674, allocations: 43.38 kB / 0.5295 GB, free: 29.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.6674, allocations: 11.53 kB / 0.5295 GB, free: 29.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.6686, allocations: 340.9 kB / 0.5298 GB, free: 29.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009132/0.6695, allocations: 160 kB / 0.5299 GB, free: 28.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001545/0.6711, allocations: 1.43 MB / 0.5313 GB, free: 27.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/0.6726, allocations: 54.22 kB / 0.5314 GB, free: 27.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001779/0.6728, allocations: 40.8 kB / 0.5314 GB, free: 27.68 MB / 382.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.0005679/0.6734, allocations: 270.9 kB / 0.5317 GB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000413/0.6738, allocations: 87.94 kB / 0.5318 GB, free: 27.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00307/0.6769, allocations: 1.089 MB / 0.5328 GB, free: 26.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.677, allocations: 3.906 kB / 0.5328 GB, free: 26.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.677, allocations: 0 / 0.5328 GB, free: 26.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.677, allocations: 7.922 kB / 0.5328 GB, free: 26.78 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004118/0.6811, allocations: 1.947 MB / 0.5347 GB, free: 25.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.6812, allocations: 2.25 kB / 0.5348 GB, free: 25.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005932/0.6818, allocations: 82.83 kB / 0.5348 GB, free: 25.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00113/0.6829, allocations: 358 kB / 0.5352 GB, free: 25.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.104e-05/0.683, allocations: 19.83 kB / 0.5352 GB, free: 25.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001489/0.6845, allocations: 1.442 MB / 0.5366 GB, free: 23.99 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.6845, allocations: 4.078 kB / 0.5366 GB, free: 23.99 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003223/0.6878, allocations: 1.574 MB / 0.5381 GB, free: 22.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007283/0.6885, allocations: 247.9 kB / 0.5384 GB, free: 22.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003591/0.6889, allocations: 12 kB / 0.5384 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.69, allocations: 40.09 kB / 0.5384 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/0.6902, allocations: 52.3 kB / 0.5385 GB, free: 22.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.6904, allocations: 27.98 kB / 0.5385 GB, free: 22 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001151/0.6915, allocations: 0.581 MB / 0.5391 GB, free: 21.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.6915, allocations: 0 / 0.5391 GB, free: 21.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002981/0.6945, allocations: 0.6294 MB / 0.5397 GB, free: 20.84 MB / 382.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), (3,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002018/0.6966, allocations: 0.5063 MB / 0.5402 GB, free: 20.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004559/0.7012, allocations: 1.604 MB / 0.5417 GB, free: 18.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/0.7012, allocations: 0 / 0.5417 GB, free: 18.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001376/0.7026, allocations: 0.4927 MB / 0.5422 GB, free: 18.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002946/0.7056, allocations: 349.2 kB / 0.5426 GB, free: 17.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004962/0.7105, allocations: 2.028 MB / 0.5445 GB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006151/0.7112, allocations: 1.01 MB / 0.5455 GB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000472/0.7117, allocations: 83.41 kB / 0.5456 GB, free: 14.78 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.7117, allocations: 0 / 0.5456 GB, free: 14.78 MB / 382.1 MB Notification: Performance of Templates: time 0.04441/0.7561, allocations: 23.11 MB / 0.5682 GB, free: 7.734 MB / 398.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)