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.0008612/0.0008611, allocations: 175.2 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.217/1.217, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0007577/0.0007577, allocations: 94.39 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003017/0.0003018, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.2058, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02034/0.2262, allocations: 28.92 MB / 404.1 MB, free: 19.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.2376, allocations: 9.832 MB / 413.9 MB, free: 9.867 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001637/0.2393, allocations: 39.69 kB / 414 MB, free: 9.828 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001303/0.2406, allocations: 397.5 kB / 414.4 MB, free: 9.438 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.004173/0.2448, allocations: 1.785 MB / 416.1 MB, free: 7.645 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005059/0.2498, allocations: 2.132 MB / 418.3 MB, free: 5.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003685/0.2535, allocations: 4.326 MB / 422.6 MB, free: 1.184 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001376/0.2549, allocations: 0.9994 MB / 423.6 MB, free: 176 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002403/0.2574, allocations: 1.308 MB / 424.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00192/0.2593, allocations: 1.351 MB / 426.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002097/0.2595, allocations: 76 kB / 426.3 MB, free: 13.43 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003761/0.2633, allocations: 1.903 MB / 428.2 MB, free: 11.52 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005567/0.2639, allocations: 0.4946 MB / 428.7 MB, free: 11.02 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008776/0.2647, allocations: 0.7212 MB / 429.5 MB, free: 10.29 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002893/0.2676, allocations: 2.37 MB / 431.8 MB, free: 7.922 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2677, allocations: 0 / 431.8 MB, free: 7.922 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2677, allocations: 0 / 431.8 MB, free: 7.922 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.2677, allocations: 4 kB / 431.8 MB, free: 7.918 MB / 314.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.004153/0.2719, allocations: 1.769 MB / 433.6 MB, free: 6.098 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2719, allocations: 8.031 kB / 433.6 MB, free: 6.09 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002319/0.2721, allocations: 176.7 kB / 433.8 MB, free: 5.906 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004269/0.2726, allocations: 166.2 kB / 433.9 MB, free: 5.742 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.2739, allocations: 0.894 MB / 434.8 MB, free: 4.805 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001827/0.2741, allocations: 238.5 kB / 435.1 MB, free: 4.539 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001792/0.2743, allocations: 95.98 kB / 435.2 MB, free: 4.445 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0027/0.277, allocations: 1.79 MB / 436.9 MB, free: 2.598 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/0.277, allocations: 0 / 436.9 MB, free: 2.598 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/0.2772, allocations: 51.91 kB / 437 MB, free: 2.547 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001204/0.2773, allocations: 101.9 kB / 437.1 MB, free: 2.445 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002739/0.28, allocations: 1.765 MB / 438.9 MB, free: 0.6719 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.011/0.2911, allocations: 6.948 MB / 445.8 MB, free: 9.418 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002358/0.2934, allocations: 1.493 MB / 447.3 MB, free: 7.918 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/0.2947, allocations: 0.8866 MB / 448.2 MB, free: 7.031 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007725/0.2955, allocations: 0.6607 MB / 448.9 MB, free: 6.242 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.2955, allocations: 47.56 kB / 448.9 MB, free: 6.188 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 3.216e-06/0.2955, allocations: 0 / 448.9 MB, free: 6.188 MB / 330.7 MB Notification: Performance of matching and sorting (n=128): time 0.01513/0.3107, allocations: 6.656 MB / 455.6 MB, free: 15.41 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.135e-05/0.3108, allocations: 179.5 kB / 455.7 MB, free: 15.2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001289/0.3121, allocations: 1.092 MB / 456.8 MB, free: 14.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000103/0.3122, allocations: 49.7 kB / 456.9 MB, free: 14.04 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003786/0.3126, allocations: 0.4966 MB / 457.4 MB, free: 13.53 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000334/0.3129, allocations: 433.8 kB / 457.8 MB, free: 13.1 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.867e-05/0.313, allocations: 24 kB / 457.8 MB, free: 13.08 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3132, allocations: 361.9 kB / 458.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001256/0.3144, allocations: 0.8237 MB / 459 MB, free: 11.89 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/0.3159, allocations: 1.069 MB / 460.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00267/0.3186, allocations: 1.78 MB / 461.8 MB, free: 8.902 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.3186, allocations: 4 kB / 461.8 MB, free: 8.898 MB / 346.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004222/0.3228, allocations: 2.584 MB / 464.4 MB, free: 6.289 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001333/0.3229, allocations: 231.8 kB / 464.7 MB, free: 6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.323, allocations: 8 kB / 464.7 MB, free: 5.992 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003357/0.3263, allocations: 1.3 MB / 466 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008925/0.3272, allocations: 211.7 kB / 466.2 MB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006125/0.3334, allocations: 6.356 MB / 472.5 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001141/0.3345, allocations: 99.89 kB / 472.6 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001415/0.3347, allocations: 55.98 kB / 472.7 MB, free: 13.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.522e-06/0.3347, allocations: 4 kB / 472.7 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003981/0.3387, allocations: 2.342 MB / 475 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.3387, allocations: 4 kB / 475 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002323/0.341, allocations: 1.023 MB / 476.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009189/0.342, allocations: 227.7 kB / 476.3 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005671/0.3477, allocations: 6.111 MB / 482.4 MB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.3488, allocations: 92 kB / 482.5 MB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.3489, allocations: 55.98 kB / 482.5 MB, free: 3.379 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.0006788/0.3496, allocations: 456.6 kB / 483 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002431/0.3499, allocations: 146.2 kB / 483.1 MB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004789/0.3547, allocations: 2.796 MB / 485.9 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/0.3547, allocations: 12 kB / 485.9 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.3547, allocations: 7.938 kB / 485.9 MB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.3547, allocations: 7.969 kB / 485.9 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006933/0.3617, allocations: 4.522 MB / 490.5 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.3617, allocations: 0 / 490.5 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007513/0.3625, allocations: 155.8 kB / 490.6 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003176/0.3656, allocations: 1.3 MB / 491.9 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001225/0.3658, allocations: 39.97 kB / 492 MB, free: 9.828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006043/0.3718, allocations: 6.383 MB / 498.3 MB, free: 3.105 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3718, allocations: 3.938 kB / 498.3 MB, free: 3.102 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1401/0.5119, allocations: 3.928 MB / 0.4905 GB, free: 111.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009302/0.5129, allocations: 443.9 kB / 0.4909 GB, free: 111.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000317/0.5132, allocations: 31.03 kB / 0.491 GB, free: 111.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.5144, allocations: 88.73 kB / 0.491 GB, free: 111.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000373/0.5148, allocations: 149.2 kB / 0.4912 GB, free: 111.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/0.5149, allocations: 49.81 kB / 0.4912 GB, free: 111.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009308/0.5158, allocations: 0.744 MB / 0.492 GB, free: 111.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5159, allocations: 0 / 0.492 GB, free: 111.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002803/0.5187, allocations: 1.051 MB / 0.493 GB, free: 111.5 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.007596/0.5263, allocations: 5.112 MB / 0.498 GB, free: 109.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006421/0.5327, allocations: 3.78 MB / 0.5017 GB, free: 108.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.5327, allocations: 3.812 kB / 0.5017 GB, free: 108.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002302/0.5351, allocations: 1.409 MB / 0.503 GB, free: 107.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002415/0.5375, allocations: 0.5888 MB / 0.5036 GB, free: 107 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01349/0.551, allocations: 10.89 MB / 0.5143 GB, free: 97.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005555/0.5516, allocations: 1.268 MB / 0.5155 GB, free: 96.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006957/0.5523, allocations: 0.5149 MB / 0.516 GB, free: 95.53 MB / 378.7 MB Notification: Performance of SimCode: time 6.52e-07/0.5523, allocations: 3.938 kB / 0.516 GB, free: 95.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.208/6.76, allocations: 54.95 MB / 0.5697 GB, free: 40.46 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)