Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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) 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(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",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.002491/0.002496, allocations: 182.8 kB / 16.4 MB, free: 5.75 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.091/2.091, 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.001091/0.001091, allocations: 105.7 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003858/0.000386, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3472, allocations: 47.58 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03151/0.3788, allocations: 21.2 MB / 395.8 MB, free: 27.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01888/0.3977, allocations: 9.936 MB / 405.8 MB, free: 17.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001862/0.3996, allocations: 43.62 kB / 405.8 MB, free: 17.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001995/0.4017, allocations: 409.9 kB / 406.2 MB, free: 17.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006225/0.4079, allocations: 1.503 MB / 407.7 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00814/0.4161, allocations: 2.12 MB / 409.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004177/0.4203, allocations: 2.073 MB / 411.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002012/0.4224, allocations: 0.9568 MB / 412.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003285/0.4257, allocations: 1.145 MB / 414 MB, free: 9.395 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002354/0.4281, allocations: 0.958 MB / 415 MB, free: 8.434 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005352/0.4287, allocations: 80 kB / 415 MB, free: 8.355 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005544/0.4343, allocations: 1.775 MB / 416.8 MB, free: 6.578 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001022/0.4353, allocations: 478.7 kB / 417.3 MB, free: 6.109 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005923/0.436, allocations: 281 kB / 417.6 MB, free: 5.828 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005152/0.4411, allocations: 2.276 MB / 419.8 MB, free: 3.547 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4412, allocations: 0 / 419.8 MB, free: 3.547 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.43e-06/0.4412, allocations: 0 / 419.8 MB, free: 3.547 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.737e-05/0.4413, allocations: 4 kB / 419.8 MB, free: 3.543 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.007035/0.4483, allocations: 1.776 MB / 421.6 MB, free: 1.715 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.4484, allocations: 8.031 kB / 421.6 MB, free: 1.707 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006042/0.449, allocations: 176.7 kB / 421.8 MB, free: 1.523 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007389/0.4497, allocations: 166.2 kB / 422 MB, free: 1.359 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002402/0.4522, allocations: 0.8751 MB / 422.8 MB, free: 452 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002145/0.4524, allocations: 234.5 kB / 423.1 MB, free: 184 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004295/0.4529, allocations: 95.98 kB / 423.2 MB, free: 88 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005711/0.4586, allocations: 1.779 MB / 424.9 MB, free: 14.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.55e-05/0.4587, allocations: 0 / 424.9 MB, free: 14.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002423/0.459, allocations: 47.94 kB / 425 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002436/0.4592, allocations: 102 kB / 425.1 MB, free: 14.1 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006176/0.4654, allocations: 1.765 MB / 426.8 MB, free: 12.33 MB / 314.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.02328/0.4887, allocations: 6.956 MB / 433.8 MB, free: 5.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005234/0.494, allocations: 1.501 MB / 435.3 MB, free: 3.555 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001482/0.4956, allocations: 0.6529 MB / 436 MB, free: 2.773 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.074e-05/0.4957, allocations: 51.56 kB / 436 MB, free: 2.715 MB / 314.7 MB Notification: Performance of pre-optimization done (n=116): time 4.589e-06/0.4957, allocations: 0 / 436 MB, free: 2.715 MB / 314.7 MB Notification: Performance of matching and sorting (n=128): time 0.03166/0.5274, allocations: 6.651 MB / 442.7 MB, free: 11.94 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/0.5276, allocations: 171.5 kB / 442.8 MB, free: 11.74 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002363/0.5299, allocations: 1.096 MB / 443.9 MB, free: 10.62 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004533/0.5304, allocations: 53.64 kB / 444 MB, free: 10.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005552/0.531, allocations: 490.9 kB / 444.5 MB, free: 10.08 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008269/0.5319, allocations: 437.8 kB / 444.9 MB, free: 9.648 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001852/0.5321, allocations: 24 kB / 444.9 MB, free: 9.625 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.5323, allocations: 370.7 kB / 445.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003033/0.5353, allocations: 0.8237 MB / 446.1 MB, free: 8.43 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003175/0.5386, allocations: 1.061 MB / 447.2 MB, free: 7.293 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002986/0.5416, allocations: 0.8847 MB / 448 MB, free: 6.406 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.886e-06/0.5417, allocations: 0 / 448 MB, free: 6.406 MB / 330.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.009379/0.551, allocations: 2.515 MB / 450.6 MB, free: 3.867 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009531/0.5521, allocations: 1.838 MB / 452.4 MB, free: 1.887 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.712e-05/0.5521, allocations: 4 kB / 452.4 MB, free: 1.883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006556/0.5587, allocations: 1.292 MB / 453.7 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002076/0.5608, allocations: 215.6 kB / 453.9 MB, free: 376 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/0.5723, allocations: 6.4 MB / 460.3 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002561/0.5749, allocations: 99.84 kB / 460.4 MB, free: 9.527 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000516/0.5755, allocations: 59.91 kB / 460.5 MB, free: 9.469 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.5755, allocations: 4.938 kB / 460.5 MB, free: 9.465 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008844/0.5844, allocations: 2.342 MB / 462.8 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.44e-05/0.5845, allocations: 12.06 kB / 462.8 MB, free: 7.094 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004414/0.5889, allocations: 1.003 MB / 463.8 MB, free: 6.074 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0022/0.5912, allocations: 231.6 kB / 464 MB, free: 5.848 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.602, allocations: 6.131 MB / 470.2 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002084/0.6041, allocations: 95.91 kB / 470.3 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003482/0.6045, allocations: 47.98 kB / 470.3 MB, free: 15.23 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 3,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.001376/0.6059, allocations: 464.5 kB / 470.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005303/0.6065, allocations: 138.4 kB / 470.9 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009765/0.6162, allocations: 2.804 MB / 473.7 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.995e-05/0.6163, allocations: 12 kB / 473.7 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-05/0.6163, allocations: 8 kB / 473.7 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.879e-05/0.6164, allocations: 11.97 kB / 473.7 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01481/0.6312, allocations: 4.541 MB / 478.3 MB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.809e-05/0.6313, allocations: 0 / 478.3 MB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001703/0.633, allocations: 155.7 kB / 478.4 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006244/0.6393, allocations: 1.298 MB / 479.7 MB, free: 5.695 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004146/0.6398, allocations: 35.97 kB / 479.8 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01147/0.6513, allocations: 6.422 MB / 486.2 MB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.6513, allocations: 0 / 486.2 MB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0127/0.664, allocations: 3.936 MB / 490.1 MB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001651/0.6657, allocations: 451.1 kB / 490.6 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005327/0.6663, allocations: 31.94 kB / 490.6 MB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002186/0.6685, allocations: 95.83 kB / 490.7 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006891/0.6692, allocations: 145.1 kB / 490.8 MB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002507/0.6695, allocations: 55.95 kB / 490.9 MB, free: 10.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001759/0.6713, allocations: 0.7376 MB / 491.6 MB, free: 9.395 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.6713, allocations: 3.938 kB / 491.6 MB, free: 9.391 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00514/0.6765, allocations: 1.054 MB / 492.7 MB, free: 8.336 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 4,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.01557/0.6921, allocations: 5.11 MB / 497.8 MB, free: 3.188 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.281/0.9731, allocations: 3.797 MB / 0.4898 GB, free: 112 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/0.9732, allocations: 8.203 kB / 0.4898 GB, free: 112 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005245/0.9785, allocations: 1.409 MB / 0.4912 GB, free: 111.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004946/0.9835, allocations: 0.5607 MB / 0.4918 GB, free: 111.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01466/0.9982, allocations: 7.809 MB / 0.4994 GB, free: 106.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/0.9993, allocations: 1.287 MB / 0.5006 GB, free: 106.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001455/1.001, allocations: 0.5179 MB / 0.5011 GB, free: 105.7 MB / 378.7 MB Notification: Performance of SimCode: time 9.71e-07/1.001, allocations: 3.625 kB / 0.5012 GB, free: 105.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.895/4.895, allocations: 57.08 MB / 0.5569 GB, free: 54.16 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)