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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 102.1 kB / 16.99 MB, free: 5.941 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.001133/0.001133, allocations: 182 kB / 17.87 MB, free: 5.609 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.331/1.331, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1932/0.1932, allocations: 44.23 MB / 337.1 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003026/0.0003028, allocations: 8 kB / 409.6 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1082, allocations: 61.92 MB / 471.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank): time 0.02294/0.1312, allocations: 14.36 MB / 485.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01415/0.1454, allocations: 6.177 MB / 492.1 MB, free: 9.004 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00129/0.1468, allocations: 27.75 kB / 492.1 MB, free: 8.977 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001575/0.1484, allocations: 330.5 kB / 492.4 MB, free: 8.652 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003533/0.1519, allocations: 0.8257 MB / 493.3 MB, free: 7.824 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005156/0.1571, allocations: 1.528 MB / 494.8 MB, free: 6.309 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002322/0.1595, allocations: 1.247 MB / 496 MB, free: 5.062 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001041/0.1605, allocations: 0.5496 MB / 496.6 MB, free: 4.496 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001374/0.1619, allocations: 0.6661 MB / 497.2 MB, free: 3.828 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00121/0.1631, allocations: 0.5645 MB / 497.8 MB, free: 3.262 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000296/0.1634, allocations: 47.94 kB / 497.9 MB, free: 3.215 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002731/0.1662, allocations: 1.155 MB / 499 MB, free: 2.059 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005421/0.1667, allocations: 271.2 kB / 499.3 MB, free: 1.793 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004081/0.1672, allocations: 189.3 kB / 499.5 MB, free: 1.602 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002341/0.1695, allocations: 1.388 MB / 0.4891 GB, free: 216 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.1695, allocations: 3.938 kB / 0.4891 GB, free: 212 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1695, allocations: 0 / 0.4891 GB, free: 212 kB / 366.1 MB Notification: Performance of Transformations before backend: time 3.283e-05/0.1696, allocations: 0 / 0.4891 GB, free: 212 kB / 366.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.002815/0.1724, allocations: 1.221 MB / 0.4903 GB, free: 14.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.1724, allocations: 8.562 kB / 0.4903 GB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002462/0.1727, allocations: 110.5 kB / 0.4904 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004315/0.1731, allocations: 110.9 kB / 0.4905 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.1743, allocations: 0.605 MB / 0.4911 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/0.1744, allocations: 104.7 kB / 0.4912 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.1746, allocations: 52 kB / 0.4913 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.1762, allocations: 0.9989 MB / 0.4922 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.265e-05/0.1763, allocations: 7.891 kB / 0.4923 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.674e-05/0.1764, allocations: 31.97 kB / 0.4923 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.359e-05/0.1764, allocations: 53.28 kB / 0.4923 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001493/0.1779, allocations: 0.9107 MB / 0.4932 GB, free: 11.84 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.006442/0.1844, allocations: 4.115 MB / 0.4972 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009854/0.1854, allocations: 0.6371 MB / 0.4979 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003533/0.1889, allocations: 2.381 MB / 0.5002 GB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000693/0.1896, allocations: 0.4913 MB / 0.5007 GB, free: 3.723 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.084e-06/0.1897, allocations: 0 / 0.5007 GB, free: 3.723 MB / 382.1 MB Notification: Performance of matching and sorting (n=53): time 0.005102/0.1948, allocations: 2.693 MB / 0.5033 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.1949, allocations: 247.7 kB / 0.5035 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2134/0.4083, allocations: 0.8271 MB / 0.5043 GB, free: 28.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001625/0.4085, allocations: 37.73 kB / 0.5044 GB, free: 28.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003655/0.4089, allocations: 422.7 kB / 0.5048 GB, free: 28.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/0.4091, allocations: 175.5 kB / 0.5049 GB, free: 28.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.495e-05/0.4092, allocations: 17.34 kB / 0.505 GB, free: 28.31 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.055e-05/0.4093, allocations: 338.6 kB / 0.5053 GB, free: 28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006729/0.41, allocations: 363.2 kB / 0.5056 GB, free: 28 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007678/0.4107, allocations: 0.6001 MB / 0.5062 GB, free: 27.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008095/0.4116, allocations: 453.5 kB / 0.5067 GB, free: 27.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/0.4116, allocations: 3.969 kB / 0.5067 GB, free: 27.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.00229/0.4139, allocations: 1.252 MB / 0.5079 GB, free: 27.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004966/0.4144, allocations: 2.568 MB / 0.5104 GB, free: 24.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.443e-05/0.4144, allocations: 7.422 kB / 0.5104 GB, free: 24.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009941/0.4154, allocations: 356.3 kB / 0.5107 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006244/0.4161, allocations: 155.7 kB / 0.5109 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.4173, allocations: 1.451 MB / 0.5123 GB, free: 23.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008363/0.4181, allocations: 47.62 kB / 0.5123 GB, free: 23.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.4182, allocations: 39.53 kB / 0.5124 GB, free: 23.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.4183, allocations: 6.062 kB / 0.5124 GB, free: 23.84 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001916/0.4202, allocations: 1.174 MB / 0.5135 GB, free: 23.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.4202, allocations: 6.5 kB / 0.5135 GB, free: 23.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007663/0.421, allocations: 342.4 kB / 0.5139 GB, free: 23.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005839/0.4216, allocations: 149.9 kB / 0.514 GB, free: 23.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009804/0.4226, allocations: 1.436 MB / 0.5154 GB, free: 22.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007375/0.4233, allocations: 50.47 kB / 0.5155 GB, free: 22.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.008e-05/0.4234, allocations: 37.34 kB / 0.5155 GB, free: 22.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 ($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.0005996/0.424, allocations: 392.6 kB / 0.5159 GB, free: 22.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/0.4242, allocations: 96.03 kB / 0.516 GB, free: 22.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/0.4261, allocations: 1.106 MB / 0.517 GB, free: 22.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.4262, allocations: 5.594 kB / 0.5171 GB, free: 22.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.4262, allocations: 0 / 0.5171 GB, free: 22.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.4262, allocations: 3.203 kB / 0.5171 GB, free: 22.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002874/0.4291, allocations: 1.945 MB / 0.519 GB, free: 21.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.4291, allocations: 0 / 0.519 GB, free: 21.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004667/0.4296, allocations: 81.11 kB / 0.519 GB, free: 21.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008393/0.4304, allocations: 351.1 kB / 0.5194 GB, free: 21.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.219e-05/0.4305, allocations: 16.86 kB / 0.5194 GB, free: 21.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.4315, allocations: 1.442 MB / 0.5208 GB, free: 20.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.4315, allocations: 4.781 kB / 0.5208 GB, free: 20.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002166/0.4337, allocations: 1.568 MB / 0.5223 GB, free: 20.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004832/0.4342, allocations: 267.9 kB / 0.5226 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001807/0.4344, allocations: 12.17 kB / 0.5226 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006112/0.435, allocations: 42.59 kB / 0.5226 GB, free: 20.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.4352, allocations: 49.86 kB / 0.5227 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-05/0.4352, allocations: 27.44 kB / 0.5227 GB, free: 20.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007589/0.436, allocations: 0.5792 MB / 0.5233 GB, free: 20.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.436, allocations: 0 / 0.5233 GB, free: 20.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001627/0.4376, allocations: 0.619 MB / 0.5239 GB, free: 20.36 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.003031/0.4407, allocations: 2.512 MB / 0.5263 GB, free: 19.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00257/0.4433, allocations: 1.562 MB / 0.5279 GB, free: 19.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.4433, allocations: 3.375 kB / 0.5279 GB, free: 19.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008151/0.4441, allocations: 0.4931 MB / 0.5283 GB, free: 19.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/0.4454, allocations: 327.2 kB / 0.5287 GB, free: 19.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004286/0.4497, allocations: 7.103 MB / 0.5356 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005/0.4503, allocations: 1.025 MB / 0.5366 GB, free: 12.99 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001058/0.4513, allocations: 327.9 kB / 0.5369 GB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003272/0.4517, allocations: 305.6 kB / 0.5372 GB, free: 12.92 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4517, allocations: 0 / 0.5372 GB, free: 12.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04427/0.496, allocations: 28.94 MB / 0.5655 GB, free: 4.035 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003582/0.4964, allocations: 265.2 kB / 0.5657 GB, free: 3.676 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.627/3.124, allocations: 0 / 0.5657 GB, free: 3.676 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)