Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009775/0.0009774, allocations: 98.47 kB / 18.01 MB, free: 5.734 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.001216/0.001216, allocations: 176.1 kB / 18.91 MB, free: 4.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 223.3 MB / 243 MB, free: 200 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2053/0.2053, allocations: 44.25 MB / 338.3 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003136, allocations: 11.94 kB / 411 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1206, allocations: 61.92 MB / 472.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank): time 0.01735/0.138, allocations: 16.65 MB / 489.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01064/0.1487, allocations: 7.173 MB / 496.7 MB, free: 5.406 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001168/0.1499, allocations: 27.75 kB / 496.8 MB, free: 5.379 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001062/0.151, allocations: 342.3 kB / 497.1 MB, free: 5.043 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002609/0.1536, allocations: 0.9491 MB / 498.1 MB, free: 4.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004547/0.1582, allocations: 1.668 MB / 499.7 MB, free: 2.434 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003493/0.1617, allocations: 3.069 MB / 0.491 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008943/0.1626, allocations: 0.5689 MB / 0.4916 GB, free: 14.78 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001251/0.1638, allocations: 0.7317 MB / 0.4923 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.1649, allocations: 0.8215 MB / 0.4931 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001107/0.1651, allocations: 43.94 kB / 0.4931 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002527/0.1676, allocations: 1.275 MB / 0.4944 GB, free: 11.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00034/0.1679, allocations: 307 kB / 0.4947 GB, free: 11.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000528/0.1685, allocations: 475.4 kB / 0.4951 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002072/0.1706, allocations: 1.407 MB / 0.4965 GB, free: 9.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1706, allocations: 0 / 0.4965 GB, free: 9.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1706, allocations: 0 / 0.4965 GB, free: 9.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.1706, allocations: 4 kB / 0.4965 GB, free: 9.715 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.00259/0.1732, allocations: 1.213 MB / 0.4977 GB, free: 8.445 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.1733, allocations: 11.97 kB / 0.4977 GB, free: 8.434 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003688/0.1736, allocations: 107.8 kB / 0.4978 GB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009155/0.1746, allocations: 0.6282 MB / 0.4984 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/0.1747, allocations: 100.7 kB / 0.4985 GB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.1748, allocations: 63.97 kB / 0.4986 GB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.1763, allocations: 1.011 MB / 0.4995 GB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.1764, allocations: 3.938 kB / 0.4995 GB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.809e-05/0.1765, allocations: 23.98 kB / 0.4996 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.337e-05/0.1766, allocations: 53.28 kB / 0.4996 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001428/0.178, allocations: 0.9185 MB / 0.5005 GB, free: 5.43 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.006004/0.184, allocations: 4.084 MB / 0.5045 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.1851, allocations: 0.6488 MB / 0.5051 GB, free: 488 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005861/0.1857, allocations: 402.2 kB / 0.5055 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.234/0.4197, allocations: 2.352 MB / 0.5078 GB, free: 48.81 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009417/0.4207, allocations: 0.4914 MB / 0.5083 GB, free: 48.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 3.626e-06/0.4207, allocations: 1.031 kB / 0.5083 GB, free: 48.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=53): time 0.006516/0.4272, allocations: 2.635 MB / 0.5109 GB, free: 47.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.671e-05/0.4274, allocations: 241.7 kB / 0.5111 GB, free: 47.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001458/0.4288, allocations: 0.8385 MB / 0.5119 GB, free: 47.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.559e-05/0.4289, allocations: 38.48 kB / 0.512 GB, free: 47.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003284/0.4293, allocations: 417.8 kB / 0.5124 GB, free: 46.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/0.4294, allocations: 178.7 kB / 0.5125 GB, free: 46.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.4296, allocations: 69.58 kB / 0.5126 GB, free: 46.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.833e-05/0.4297, allocations: 340 kB / 0.5129 GB, free: 46.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000705/0.4304, allocations: 371.4 kB / 0.5133 GB, free: 46.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008593/0.4312, allocations: 0.6146 MB / 0.5139 GB, free: 45.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.4327, allocations: 0.9644 MB / 0.5148 GB, free: 45.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.165e-05/0.4327, allocations: 2.094 kB / 0.5148 GB, free: 45.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.00251/0.4352, allocations: 1.269 MB / 0.5161 GB, free: 44.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001788/0.4354, allocations: 315.2 kB / 0.5164 GB, free: 44.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.4354, allocations: 5.438 kB / 0.5164 GB, free: 44.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.4365, allocations: 372.1 kB / 0.5167 GB, free: 44.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006506/0.4372, allocations: 152.1 kB / 0.5169 GB, free: 44.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.4385, allocations: 1.455 MB / 0.5183 GB, free: 43.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.4397, allocations: 43.86 kB / 0.5183 GB, free: 43.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.4398, allocations: 36.06 kB / 0.5184 GB, free: 43.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.4398, allocations: 4.125 kB / 0.5184 GB, free: 43.02 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003122/0.443, allocations: 1.178 MB / 0.5195 GB, free: 42.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.987e-05/0.443, allocations: 6.469 kB / 0.5195 GB, free: 42.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.4441, allocations: 347.4 kB / 0.5199 GB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006575/0.4448, allocations: 152.2 kB / 0.52 GB, free: 42.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/0.446, allocations: 1.433 MB / 0.5214 GB, free: 41.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009181/0.447, allocations: 54.11 kB / 0.5214 GB, free: 41.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001355/0.4471, allocations: 38.97 kB / 0.5215 GB, free: 41.27 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.0007844/0.4479, allocations: 401.2 kB / 0.5219 GB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002788/0.4482, allocations: 90.52 kB / 0.522 GB, free: 40.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0024/0.4506, allocations: 1.09 MB / 0.523 GB, free: 40.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.4506, allocations: 11.22 kB / 0.523 GB, free: 40.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.4506, allocations: 1.25 kB / 0.523 GB, free: 40.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.4507, allocations: 3.047 kB / 0.523 GB, free: 40.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003348/0.454, allocations: 1.956 MB / 0.5249 GB, free: 39.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.454, allocations: 2.25 kB / 0.5249 GB, free: 39.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004307/0.4545, allocations: 85.73 kB / 0.525 GB, free: 39.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008749/0.4554, allocations: 354.5 kB / 0.5254 GB, free: 39.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.879e-05/0.4554, allocations: 14.62 kB / 0.5254 GB, free: 39.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/0.4566, allocations: 1.445 MB / 0.5268 GB, free: 38.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4566, allocations: 4.062 kB / 0.5268 GB, free: 38.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002379/0.459, allocations: 1.569 MB / 0.5283 GB, free: 37.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004853/0.4595, allocations: 255 kB / 0.5286 GB, free: 37.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002156/0.4597, allocations: 19.72 kB / 0.5286 GB, free: 37.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006671/0.4604, allocations: 48.44 kB / 0.5286 GB, free: 37.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.4605, allocations: 44.11 kB / 0.5287 GB, free: 37.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.384e-05/0.4606, allocations: 31.3 kB / 0.5287 GB, free: 37.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007539/0.4614, allocations: 0.5811 MB / 0.5293 GB, free: 36.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4614, allocations: 0 / 0.5293 GB, free: 36.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001991/0.4634, allocations: 0.6198 MB / 0.5299 GB, free: 36.77 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.00141/0.4648, allocations: 0.4944 MB / 0.5304 GB, free: 36.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002869/0.4677, allocations: 1.578 MB / 0.5319 GB, free: 35.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.4677, allocations: 0.6562 kB / 0.5319 GB, free: 35.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009302/0.4686, allocations: 0.4954 MB / 0.5324 GB, free: 35.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001776/0.4704, allocations: 342.7 kB / 0.5327 GB, free: 35.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002987/0.4734, allocations: 2.128 MB / 0.5348 GB, free: 33.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.4738, allocations: 1.006 MB / 0.5358 GB, free: 32.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/0.4741, allocations: 83.36 kB / 0.5359 GB, free: 31.95 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4741, allocations: 4 kB / 0.5359 GB, free: 31.94 MB / 382.1 MB Notification: Performance of Templates: time 0.02657/0.5007, allocations: 22.87 MB / 0.5582 GB, free: 9.148 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)