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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007894/0.0007894, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009701/0.0009701, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.7 MB / 246.8 MB, free: 9.555 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2034/0.2034, allocations: 46.18 MB / 345.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002411/0.0002412, allocations: 8 kB / 419.6 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1088, allocations: 63.57 MB / 483.2 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank): time 0.01717/0.126, allocations: 16.77 MB / 500 MB, free: 3.191 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01064/0.1367, allocations: 7.209 MB / 0.4953 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000842/0.1376, allocations: 27.75 kB / 0.4953 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001007/0.1386, allocations: 338.4 kB / 0.4956 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002363/0.141, allocations: 0.9646 MB / 0.4966 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004213/0.1452, allocations: 1.662 MB / 0.4982 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003175/0.1484, allocations: 3.076 MB / 0.5012 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009697/0.1494, allocations: 0.5667 MB / 0.5017 GB, free: 5.324 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001456/0.1508, allocations: 0.7317 MB / 0.5025 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001302/0.1522, allocations: 0.8253 MB / 0.5033 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002056/0.1524, allocations: 44 kB / 0.5033 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002366/0.1547, allocations: 1.295 MB / 0.5046 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004278/0.1552, allocations: 303.1 kB / 0.5049 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006903/0.1559, allocations: 483.3 kB / 0.5053 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2182/0.3741, allocations: 1.924 MB / 0.5072 GB, free: 16.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3742, allocations: 0.9688 kB / 0.5072 GB, free: 16.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3742, allocations: 0 / 0.5072 GB, free: 16.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.323e-05/0.3743, allocations: 0 / 0.5072 GB, free: 16.89 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.002913/0.3772, allocations: 1.206 MB / 0.5084 GB, free: 16.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3772, allocations: 10 kB / 0.5084 GB, free: 16.22 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001637/0.3774, allocations: 113.7 kB / 0.5085 GB, free: 16.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003643/0.3778, allocations: 111.5 kB / 0.5086 GB, free: 16.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009069/0.3787, allocations: 0.627 MB / 0.5092 GB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.822e-05/0.3788, allocations: 106.1 kB / 0.5093 GB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.3789, allocations: 61.38 kB / 0.5094 GB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001668/0.3806, allocations: 1.012 MB / 0.5104 GB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.3806, allocations: 1.984 kB / 0.5104 GB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.939e-05/0.3807, allocations: 26.89 kB / 0.5104 GB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.333e-05/0.3808, allocations: 53.3 kB / 0.5104 GB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.3822, allocations: 0.9168 MB / 0.5113 GB, free: 15.64 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.005561/0.3878, allocations: 4.067 MB / 0.5153 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.3888, allocations: 0.6473 MB / 0.5159 GB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005634/0.3894, allocations: 405.6 kB / 0.5163 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00284/0.3922, allocations: 2.362 MB / 0.5186 GB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007295/0.393, allocations: 0.5051 MB / 0.5191 GB, free: 12.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 1.964e-06/0.393, allocations: 1.969 kB / 0.5191 GB, free: 12.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=53): time 0.005388/0.3984, allocations: 2.618 MB / 0.5217 GB, free: 11.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.3984, allocations: 242.6 kB / 0.5219 GB, free: 11.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001/0.3995, allocations: 0.8407 MB / 0.5227 GB, free: 11.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.595e-05/0.3995, allocations: 37.2 kB / 0.5228 GB, free: 11.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002484/0.3998, allocations: 426.8 kB / 0.5232 GB, free: 10.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.3999, allocations: 170.4 kB / 0.5233 GB, free: 10.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.4, allocations: 72.34 kB / 0.5234 GB, free: 10.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.852e-05/0.4001, allocations: 333.3 kB / 0.5237 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000552/0.4007, allocations: 374.8 kB / 0.5241 GB, free: 10.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000697/0.4014, allocations: 0.6193 MB / 0.5247 GB, free: 10.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.4026, allocations: 0.9613 MB / 0.5256 GB, free: 9.805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.4026, allocations: 6.688 kB / 0.5256 GB, free: 9.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.002074/0.4047, allocations: 1.271 MB / 0.5269 GB, free: 9.656 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001282/0.4048, allocations: 317.5 kB / 0.5272 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.4048, allocations: 10.12 kB / 0.5272 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009214/0.4058, allocations: 359 kB / 0.5275 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006093/0.4064, allocations: 155.2 kB / 0.5277 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.4075, allocations: 1.454 MB / 0.5291 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007626/0.4082, allocations: 52.86 kB / 0.5292 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.588e-05/0.4083, allocations: 35.91 kB / 0.5292 GB, free: 8.223 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.863e-06/0.4083, allocations: 8.219 kB / 0.5292 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00188/0.4102, allocations: 1.179 MB / 0.5303 GB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.4103, allocations: 9.594 kB / 0.5304 GB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006869/0.411, allocations: 347.3 kB / 0.5307 GB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005579/0.4115, allocations: 151.7 kB / 0.5308 GB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009367/0.4125, allocations: 1.435 MB / 0.5322 GB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006467/0.4131, allocations: 47.95 kB / 0.5323 GB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.738e-05/0.4132, allocations: 41.27 kB / 0.5323 GB, free: 6.852 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.0004662/0.4137, allocations: 392.9 kB / 0.5327 GB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.4138, allocations: 91.5 kB / 0.5328 GB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001911/0.4157, allocations: 1.087 MB / 0.5338 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.355e-06/0.4158, allocations: 13.11 kB / 0.5339 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.4158, allocations: 0.5469 kB / 0.5339 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.832e-06/0.4158, allocations: 0 / 0.5339 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002509/0.4183, allocations: 1.956 MB / 0.5358 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4183, allocations: 0 / 0.5358 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003764/0.4187, allocations: 84.91 kB / 0.5358 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007069/0.4194, allocations: 356.8 kB / 0.5362 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.403e-05/0.4195, allocations: 13.62 kB / 0.5362 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00095/0.4204, allocations: 1.447 MB / 0.5376 GB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4204, allocations: 0 / 0.5376 GB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001972/0.4224, allocations: 1.572 MB / 0.5391 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003266/0.4228, allocations: 259.6 kB / 0.5394 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.4229, allocations: 16.59 kB / 0.5394 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005545/0.4234, allocations: 49.78 kB / 0.5395 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.4236, allocations: 46.62 kB / 0.5395 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.612e-05/0.4236, allocations: 26.05 kB / 0.5395 GB, free: 2.996 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006052/0.4243, allocations: 0.5832 MB / 0.5401 GB, free: 2.762 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4243, allocations: 0 / 0.5401 GB, free: 2.762 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001668/0.4259, allocations: 0.6264 MB / 0.5407 GB, free: 2.656 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.00308/0.429, allocations: 2.526 MB / 0.5432 GB, free: 1.359 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002547/0.4316, allocations: 1.577 MB / 0.5447 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4316, allocations: 3.094 kB / 0.5447 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008397/0.4324, allocations: 0.5023 MB / 0.5452 GB, free: 372 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/0.4341, allocations: 335.5 kB / 0.5455 GB, free: 208 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01275/0.4468, allocations: 9.08 MB / 0.5544 GB, free: 7.031 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005814/0.4474, allocations: 1.013 MB / 0.5554 GB, free: 5.988 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001111/0.4486, allocations: 321.7 kB / 0.5557 GB, free: 5.676 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004136/0.449, allocations: 299.3 kB / 0.556 GB, free: 5.383 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.449, allocations: 4 kB / 0.556 GB, free: 5.379 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05166/0.5007, allocations: 29.79 MB / 0.5851 GB, free: 7.945 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002148/0.5009, allocations: 291.6 kB / 0.5853 GB, free: 7.562 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.711/3.212, allocations: 0 / 0.5853 GB, free: 7.562 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)