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.0008688/0.0008687, allocations: 98.7 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001017, allocations: 197.7 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2012/0.2012, allocations: 45.92 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000267/0.0002671, allocations: 12 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1229, allocations: 63.46 MB / 481.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank): time 0.01485/0.1378, allocations: 14.42 MB / 495.9 MB, free: 6.805 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009837/0.1477, allocations: 6.192 MB / 0.4904 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000795/0.1485, allocations: 31.69 kB / 0.4904 GB, free: 0.5781 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.1496, allocations: 334.5 kB / 0.4907 GB, free: 256 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002222/0.1518, allocations: 0.8452 MB / 0.4915 GB, free: 15.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004037/0.1559, allocations: 1.526 MB / 0.493 GB, free: 13.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002046/0.1579, allocations: 1.239 MB / 0.4942 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008873/0.1588, allocations: 0.5419 MB / 0.4948 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001154/0.16, allocations: 0.6777 MB / 0.4954 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008521/0.1608, allocations: 0.5568 MB / 0.496 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.161, allocations: 40 kB / 0.496 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002489/0.1635, allocations: 1.17 MB / 0.4972 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003106/0.1638, allocations: 275.2 kB / 0.4974 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002277/0.164, allocations: 185.3 kB / 0.4976 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001873/0.1659, allocations: 1.399 MB / 0.499 GB, free: 7.785 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1659, allocations: 0 / 0.499 GB, free: 7.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1659, allocations: 0 / 0.499 GB, free: 7.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.166, allocations: 4 kB / 0.499 GB, free: 7.781 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.002665/0.1686, allocations: 1.221 MB / 0.5002 GB, free: 6.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.919e-05/0.1687, allocations: 15.97 kB / 0.5002 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001703/0.1689, allocations: 114.5 kB / 0.5003 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003614/0.1692, allocations: 106.9 kB / 0.5004 GB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.1703, allocations: 0.5973 MB / 0.501 GB, free: 5.617 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.1704, allocations: 112.6 kB / 0.5011 GB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.1705, allocations: 55.98 kB / 0.5011 GB, free: 5.441 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.172, allocations: 1.003 MB / 0.5021 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.172, allocations: 8 kB / 0.5021 GB, free: 4.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.157e-05/0.1721, allocations: 24 kB / 0.5021 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.181e-05/0.1722, allocations: 49.28 kB / 0.5022 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.1736, allocations: 0.9146 MB / 0.5031 GB, free: 3.398 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.2345/0.4081, allocations: 4.093 MB / 0.5071 GB, free: 40.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.4095, allocations: 0.645 MB / 0.5077 GB, free: 40.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003629/0.4131, allocations: 2.376 MB / 0.51 GB, free: 39.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007759/0.4139, allocations: 0.4916 MB / 0.5105 GB, free: 39.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.003e-06/0.4139, allocations: 0 / 0.5105 GB, free: 39.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=53): time 0.00545/0.4194, allocations: 2.692 MB / 0.5131 GB, free: 37.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.262e-05/0.4195, allocations: 241.3 kB / 0.5134 GB, free: 37.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/0.4206, allocations: 0.8382 MB / 0.5142 GB, free: 37.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.478e-05/0.4207, allocations: 37.2 kB / 0.5142 GB, free: 37.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002695/0.421, allocations: 420.8 kB / 0.5146 GB, free: 36.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.4211, allocations: 179.5 kB / 0.5148 GB, free: 36.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.661e-05/0.4212, allocations: 16.5 kB / 0.5148 GB, free: 36.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.386e-05/0.4213, allocations: 343.1 kB / 0.5151 GB, free: 36.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005483/0.4218, allocations: 364.1 kB / 0.5155 GB, free: 36.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006718/0.4225, allocations: 0.6095 MB / 0.5161 GB, free: 35.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006512/0.4232, allocations: 449.8 kB / 0.5165 GB, free: 35.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4232, allocations: 3.125 kB / 0.5165 GB, free: 35.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.002289/0.4255, allocations: 1.255 MB / 0.5177 GB, free: 35.22 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005222/0.426, allocations: 2.558 MB / 0.5202 GB, free: 32.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.426, allocations: 6.75 kB / 0.5202 GB, free: 32.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001051/0.4271, allocations: 366 kB / 0.5206 GB, free: 32.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006246/0.4277, allocations: 149.2 kB / 0.5207 GB, free: 32.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.4289, allocations: 1.452 MB / 0.5222 GB, free: 31.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007969/0.4297, allocations: 43.23 kB / 0.5222 GB, free: 31.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.39e-05/0.4298, allocations: 47.12 kB / 0.5222 GB, free: 31.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.748e-06/0.4299, allocations: 4.125 kB / 0.5222 GB, free: 31.2 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002123/0.432, allocations: 1.165 MB / 0.5234 GB, free: 30.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.432, allocations: 7.438 kB / 0.5234 GB, free: 30.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008248/0.4328, allocations: 346 kB / 0.5237 GB, free: 30.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006336/0.4335, allocations: 152.8 kB / 0.5239 GB, free: 30.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/0.4347, allocations: 1.434 MB / 0.5253 GB, free: 29.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009895/0.4357, allocations: 49.05 kB / 0.5253 GB, free: 29.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.4358, allocations: 42.94 kB / 0.5254 GB, free: 29.45 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 ($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.0009384/0.4368, allocations: 396.3 kB / 0.5257 GB, free: 29.15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002466/0.437, allocations: 92.92 kB / 0.5258 GB, free: 29.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002337/0.4394, allocations: 1.098 MB / 0.5269 GB, free: 28.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.4394, allocations: 5.125 kB / 0.5269 GB, free: 28.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.4394, allocations: 0.6094 kB / 0.5269 GB, free: 28.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.4394, allocations: 2.531 kB / 0.5269 GB, free: 28.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003833/0.4433, allocations: 1.95 MB / 0.5288 GB, free: 27.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.4433, allocations: 1.969 kB / 0.5288 GB, free: 27.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004592/0.4438, allocations: 81.83 kB / 0.5289 GB, free: 27.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009319/0.4447, allocations: 355.2 kB / 0.5292 GB, free: 27.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.999e-05/0.4448, allocations: 21.89 kB / 0.5292 GB, free: 27.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/0.446, allocations: 1.442 MB / 0.5307 GB, free: 26.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.446, allocations: 5.062 kB / 0.5307 GB, free: 26.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.4485, allocations: 1.568 MB / 0.5322 GB, free: 25.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006853/0.4492, allocations: 258 kB / 0.5324 GB, free: 25.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000278/0.4495, allocations: 17.8 kB / 0.5325 GB, free: 25.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007199/0.4502, allocations: 48.09 kB / 0.5325 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.4504, allocations: 51.08 kB / 0.5325 GB, free: 25.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.536e-05/0.4504, allocations: 26.48 kB / 0.5326 GB, free: 25.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009862/0.4514, allocations: 0.5777 MB / 0.5331 GB, free: 25.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4514, allocations: 1.312 kB / 0.5331 GB, free: 25.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002435/0.4539, allocations: 0.6252 MB / 0.5337 GB, free: 25.07 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 (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.003335/0.4572, allocations: 2.501 MB / 0.5362 GB, free: 23.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002762/0.46, allocations: 1.567 MB / 0.5377 GB, free: 22.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.46, allocations: 0 / 0.5377 GB, free: 22.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009332/0.461, allocations: 0.4992 MB / 0.5382 GB, free: 22.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001804/0.4628, allocations: 327.5 kB / 0.5385 GB, free: 22.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005174/0.468, allocations: 7.109 MB / 0.5455 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004085/0.4684, allocations: 1.025 MB / 0.5465 GB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001089/0.4695, allocations: 321.2 kB / 0.5468 GB, free: 13.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003527/0.4699, allocations: 311.2 kB / 0.5471 GB, free: 13.51 MB / 382.1 MB Notification: Performance of SimCode: time 6.72e-07/0.4699, allocations: 0 / 0.5471 GB, free: 13.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0565/0.5264, allocations: 29.01 MB / 0.5754 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.5266, allocations: 260.1 kB / 0.5756 GB, free: 416 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.657/3.184, allocations: 0 / 0.5756 GB, free: 416 kB / 398.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/linux/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)