Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009535/0.0009535, allocations: 191.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 226.5 MB / 244.7 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007248/0.0007248, allocations: 93.34 kB / 296.7 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002031/0.0002031, allocations: 8 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2007, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.01812/0.2189, allocations: 28.97 MB / 437.1 MB, free: 14.66 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01269/0.2316, allocations: 9.846 MB / 446.9 MB, free: 4.793 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001185/0.2328, allocations: 43.62 kB / 447 MB, free: 4.75 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001306/0.2341, allocations: 397.5 kB / 447.4 MB, free: 4.359 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.004399/0.2386, allocations: 1.796 MB / 449.2 MB, free: 2.555 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005116/0.2437, allocations: 2.128 MB / 451.3 MB, free: 444 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00422/0.2479, allocations: 4.332 MB / 455.6 MB, free: 12.08 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001558/0.2495, allocations: 1.004 MB / 456.6 MB, free: 11.06 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002412/0.2519, allocations: 1.319 MB / 458 MB, free: 9.738 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002033/0.254, allocations: 1.347 MB / 459.3 MB, free: 8.387 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004584/0.2544, allocations: 80 kB / 459.4 MB, free: 8.309 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003886/0.2583, allocations: 1.919 MB / 461.3 MB, free: 6.387 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007771/0.2591, allocations: 0.4986 MB / 461.8 MB, free: 5.887 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00113/0.2603, allocations: 0.7173 MB / 462.5 MB, free: 5.16 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003137/0.2634, allocations: 2.379 MB / 464.9 MB, free: 2.781 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.2634, allocations: 0 / 464.9 MB, free: 2.781 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2634, allocations: 0 / 464.9 MB, free: 2.781 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.107e-05/0.2635, allocations: 0 / 464.9 MB, free: 2.781 MB / 330.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.004272/0.2678, allocations: 1.78 MB / 466.7 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.2678, allocations: 12.03 kB / 466.7 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003313/0.2681, allocations: 168.7 kB / 466.8 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000458/0.2686, allocations: 162.2 kB / 467 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001339/0.2699, allocations: 0.898 MB / 467.9 MB, free: 15.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/0.2701, allocations: 238.5 kB / 468.1 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001834/0.2703, allocations: 99.97 kB / 468.2 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002613/0.2729, allocations: 1.786 MB / 470 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.273, allocations: 0 / 470 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.2731, allocations: 43.98 kB / 470.1 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001196/0.2732, allocations: 110 kB / 470.2 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002655/0.2759, allocations: 1.765 MB / 471.9 MB, free: 11.52 MB / 346.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.01023/0.2861, allocations: 6.959 MB / 478.9 MB, free: 4.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002327/0.2885, allocations: 1.497 MB / 480.4 MB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001189/0.2897, allocations: 0.8812 MB / 481.3 MB, free: 1.883 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007434/0.2904, allocations: 0.6607 MB / 481.9 MB, free: 1.094 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.2905, allocations: 47.56 kB / 482 MB, free: 1.039 MB / 346.7 MB Notification: Performance of pre-optimization done (n=116): time 2.314e-06/0.2905, allocations: 0 / 482 MB, free: 1.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=128): time 0.01443/0.3049, allocations: 6.661 MB / 488.6 MB, free: 10.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.836e-05/0.305, allocations: 171.5 kB / 488.8 MB, free: 10.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.3062, allocations: 1.095 MB / 489.9 MB, free: 8.941 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/0.3063, allocations: 53.64 kB / 490 MB, free: 8.883 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003518/0.3067, allocations: 0.4966 MB / 490.5 MB, free: 8.379 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003312/0.307, allocations: 433.8 kB / 490.9 MB, free: 7.949 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.3072, allocations: 32 kB / 490.9 MB, free: 7.918 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.3073, allocations: 353.9 kB / 491.3 MB, free: 7.566 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.3085, allocations: 0.8276 MB / 492.1 MB, free: 6.738 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001354/0.3099, allocations: 1.065 MB / 493.1 MB, free: 5.598 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002464/0.3124, allocations: 1.792 MB / 494.9 MB, free: 3.742 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3124, allocations: 0 / 494.9 MB, free: 3.742 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004044/0.3164, allocations: 2.588 MB / 497.5 MB, free: 1.129 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/0.3166, allocations: 235.8 kB / 497.8 MB, free: 0.832 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.3166, allocations: 4 kB / 497.8 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003241/0.3198, allocations: 1.28 MB / 499 MB, free: 15.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008864/0.3207, allocations: 215.6 kB / 499.3 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005876/0.3266, allocations: 6.358 MB / 0.4938 GB, free: 8.621 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/0.3278, allocations: 99.84 kB / 0.4939 GB, free: 8.523 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001523/0.328, allocations: 55.97 kB / 0.4939 GB, free: 8.469 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.342e-06/0.328, allocations: 8 kB / 0.4939 GB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00388/0.3319, allocations: 2.342 MB / 0.4962 GB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.3319, allocations: 4 kB / 0.4962 GB, free: 6.098 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002267/0.3342, allocations: 1.019 MB / 0.4972 GB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009011/0.3351, allocations: 231.6 kB / 0.4974 GB, free: 4.836 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1449/0.48, allocations: 6.094 MB / 0.5034 GB, free: 93.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.4814, allocations: 89.56 kB / 0.5035 GB, free: 93.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001531/0.4816, allocations: 57.58 kB / 0.5035 GB, free: 93.87 MB / 378.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.0006786/0.4823, allocations: 456.7 kB / 0.5039 GB, free: 93.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002195/0.4825, allocations: 137.9 kB / 0.5041 GB, free: 93.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004697/0.4872, allocations: 2.797 MB / 0.5068 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.418e-05/0.4872, allocations: 19.86 kB / 0.5068 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.4872, allocations: 3.938 kB / 0.5068 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.4872, allocations: 7.312 kB / 0.5068 GB, free: 93.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006245/0.4935, allocations: 4.513 MB / 0.5112 GB, free: 91.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.373e-06/0.4935, allocations: 0 / 0.5112 GB, free: 91.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007132/0.4943, allocations: 161.7 kB / 0.5114 GB, free: 91.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002728/0.497, allocations: 1.301 MB / 0.5127 GB, free: 91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001286/0.4971, allocations: 38.38 kB / 0.5127 GB, free: 90.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004498/0.5016, allocations: 6.391 MB / 0.519 GB, free: 85.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.5017, allocations: 0 / 0.519 GB, free: 85.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004826/0.5065, allocations: 3.933 MB / 0.5228 GB, free: 82.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000616/0.5071, allocations: 443.2 kB / 0.5232 GB, free: 82.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001714/0.5073, allocations: 24 kB / 0.5232 GB, free: 82.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009513/0.5083, allocations: 103.4 kB / 0.5233 GB, free: 82.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003384/0.5086, allocations: 150.8 kB / 0.5235 GB, free: 82.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.5087, allocations: 47.97 kB / 0.5235 GB, free: 82.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006931/0.5094, allocations: 0.7376 MB / 0.5242 GB, free: 81.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5094, allocations: 5.281 kB / 0.5243 GB, free: 81.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002149/0.5116, allocations: 1.057 MB / 0.5253 GB, free: 80.35 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.006271/0.5179, allocations: 5.123 MB / 0.5303 GB, free: 75.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005762/0.5236, allocations: 3.772 MB / 0.534 GB, free: 71.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.5237, allocations: 0 / 0.534 GB, free: 71.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00225/0.5259, allocations: 1.423 MB / 0.5354 GB, free: 70.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00247/0.5284, allocations: 0.5918 MB / 0.5359 GB, free: 69.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/0.542, allocations: 10.89 MB / 0.5466 GB, free: 58.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/0.5426, allocations: 1.26 MB / 0.5478 GB, free: 57.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006616/0.5432, allocations: 0.5187 MB / 0.5483 GB, free: 56.58 MB / 378.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5433, allocations: 0 / 0.5483 GB, free: 56.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.171/6.714, allocations: 55.16 MB / 0.6022 GB, free: 1.344 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)