Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002635/0.002641, allocations: 182.6 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.384/2.384, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001798/0.001798, allocations: 104.4 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.6109/0.6109, allocations: 43.55 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006873/0.0006874, allocations: 16 kB / 431.5 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1315, allocations: 58.84 MB / 490.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank): time 0.354/0.4856, allocations: 14.35 MB / 0.4928 GB, free: 35.1 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01404/0.4997, allocations: 6.124 MB / 0.4988 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001452/0.5012, allocations: 26.91 kB / 0.4988 GB, free: 34.71 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.5032, allocations: 338 kB / 0.4992 GB, free: 34.65 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004481/0.5077, allocations: 0.8318 MB / 0.5 GB, free: 34.59 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007315/0.5151, allocations: 1.517 MB / 0.5015 GB, free: 34.24 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003132/0.5182, allocations: 1.241 MB / 0.5027 GB, free: 33.89 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001437/0.5197, allocations: 0.55 MB / 0.5032 GB, free: 33.73 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002267/0.522, allocations: 0.6749 MB / 0.5039 GB, free: 33.5 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001711/0.5238, allocations: 0.5578 MB / 0.5044 GB, free: 33.34 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003286/0.5242, allocations: 43.19 kB / 0.5045 GB, free: 33.34 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004136/0.5283, allocations: 1.156 MB / 0.5056 GB, free: 33.09 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000704/0.5291, allocations: 264.7 kB / 0.5058 GB, free: 33 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005217/0.5296, allocations: 192.7 kB / 0.506 GB, free: 32.89 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003883/0.5335, allocations: 1.392 MB / 0.5074 GB, free: 32.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.5336, allocations: 0 / 0.5074 GB, free: 32.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.5336, allocations: 1.156 kB / 0.5074 GB, free: 32.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.653e-05/0.5337, allocations: 0 / 0.5074 GB, free: 32.66 MB / 378.7 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.004268/0.538, allocations: 1.218 MB / 0.5086 GB, free: 31.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.538, allocations: 12.64 kB / 0.5086 GB, free: 31.82 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003952/0.5384, allocations: 108.9 kB / 0.5087 GB, free: 31.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005924/0.539, allocations: 109.9 kB / 0.5088 GB, free: 31.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001646/0.5407, allocations: 0.5967 MB / 0.5094 GB, free: 31.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001522/0.5409, allocations: 109 kB / 0.5095 GB, free: 31.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001678/0.5411, allocations: 56.78 kB / 0.5095 GB, free: 31.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.5436, allocations: 1.014 MB / 0.5105 GB, free: 30.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.638e-05/0.5437, allocations: 0 / 0.5105 GB, free: 30.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000132/0.5438, allocations: 28.62 kB / 0.5105 GB, free: 30.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001112/0.5439, allocations: 53.09 kB / 0.5106 GB, free: 30.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002348/0.5463, allocations: 0.9151 MB / 0.5115 GB, free: 30.46 MB / 378.7 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.009545/0.5559, allocations: 4.113 MB / 0.5155 GB, free: 27.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.5576, allocations: 0.6422 MB / 0.5161 GB, free: 27.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004836/0.5624, allocations: 2.381 MB / 0.5185 GB, free: 25.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001092/0.5636, allocations: 0.5016 MB / 0.5189 GB, free: 25.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 3.787e-06/0.5636, allocations: 0 / 0.5189 GB, free: 25.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=53): time 0.008668/0.5723, allocations: 2.69 MB / 0.5216 GB, free: 24.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.154e-05/0.5724, allocations: 248.5 kB / 0.5218 GB, free: 23.78 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001475/0.5739, allocations: 0.8321 MB / 0.5226 GB, free: 23.44 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001974/0.5742, allocations: 36.89 kB / 0.5227 GB, free: 23.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000304/0.5745, allocations: 429.1 kB / 0.5231 GB, free: 23.03 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000212/0.5747, allocations: 182.4 kB / 0.5232 GB, free: 22.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.713e-05/0.5748, allocations: 11.22 kB / 0.5233 GB, free: 22.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.873e-05/0.5749, allocations: 346.1 kB / 0.5236 GB, free: 22.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009229/0.5758, allocations: 358.8 kB / 0.5239 GB, free: 22.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/0.5769, allocations: 0.6079 MB / 0.5245 GB, free: 22.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.578, allocations: 449.8 kB / 0.5249 GB, free: 21.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.5781, allocations: 2.938 kB / 0.525 GB, free: 21.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.003214/0.5813, allocations: 1.206 MB / 0.5261 GB, free: 21.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006363/0.582, allocations: 2.558 MB / 0.5286 GB, free: 18.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.582, allocations: 10.59 kB / 0.5286 GB, free: 18.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001472/0.5835, allocations: 358.2 kB / 0.529 GB, free: 18.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.5847, allocations: 152.3 kB / 0.5291 GB, free: 18.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001798/0.5865, allocations: 1.456 MB / 0.5305 GB, free: 17.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/0.588, allocations: 50.3 kB / 0.5306 GB, free: 17.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001378/0.5881, allocations: 38.48 kB / 0.5306 GB, free: 17.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.5882, allocations: 6.469 kB / 0.5306 GB, free: 17.26 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00318/0.5913, allocations: 1.171 MB / 0.5318 GB, free: 16.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/0.5914, allocations: 9.703 kB / 0.5318 GB, free: 16.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/0.5926, allocations: 336.3 kB / 0.5321 GB, free: 16.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/0.5938, allocations: 152.9 kB / 0.5323 GB, free: 16.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001619/0.5954, allocations: 1.428 MB / 0.5337 GB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.5965, allocations: 49.12 kB / 0.5337 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.5966, allocations: 35.97 kB / 0.5337 GB, free: 15.5 MB / 378.7 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.0007667/0.5974, allocations: 395.2 kB / 0.5341 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002751/0.5977, allocations: 87 kB / 0.5342 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003117/0.6008, allocations: 1.094 MB / 0.5353 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.6009, allocations: 6.312 kB / 0.5353 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.6009, allocations: 4.047 kB / 0.5353 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.6009, allocations: 7.406 kB / 0.5353 GB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004914/0.6059, allocations: 1.941 MB / 0.5372 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.779e-06/0.6059, allocations: 0 / 0.5372 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007863/0.6067, allocations: 83.97 kB / 0.5373 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001388/0.6081, allocations: 359 kB / 0.5376 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001299/0.6083, allocations: 20.44 kB / 0.5376 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001802/0.6101, allocations: 1.438 MB / 0.539 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.6102, allocations: 0 / 0.539 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003909/0.6141, allocations: 1.567 MB / 0.5406 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008498/0.615, allocations: 270.3 kB / 0.5408 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002337/0.6152, allocations: 14.19 kB / 0.5408 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.6163, allocations: 42.31 kB / 0.5409 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/0.6166, allocations: 52.86 kB / 0.5409 GB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/0.6167, allocations: 24.58 kB / 0.5409 GB, free: 11.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001267/0.618, allocations: 0.5755 MB / 0.5415 GB, free: 11.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.618, allocations: 0 / 0.5415 GB, free: 11.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002933/0.6209, allocations: 0.6229 MB / 0.5421 GB, free: 11.27 MB / 378.7 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.006278/0.6273, allocations: 2.5 MB / 0.5445 GB, free: 9.965 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005309/0.6326, allocations: 1.559 MB / 0.5461 GB, free: 9.348 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/0.6327, allocations: 1.031 kB / 0.5461 GB, free: 9.348 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001837/0.6345, allocations: 0.5004 MB / 0.5466 GB, free: 9.129 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00313/0.6377, allocations: 328.1 kB / 0.5469 GB, free: 9.035 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00982/0.6476, allocations: 7.141 MB / 0.5538 GB, free: 18.99 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009553/0.6486, allocations: 1.027 MB / 0.5548 GB, free: 18.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008293/0.6495, allocations: 315.3 kB / 0.5551 GB, free: 18.03 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6495, allocations: 1.125 kB / 0.5551 GB, free: 18.03 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.593/4.243, allocations: 26.29 MB / 0.5808 GB, free: 12.43 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)