Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001116/0.001116, allocations: 98.98 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002834/0.0002836, allocations: 4 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1164, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.2135/0.33, allocations: 27.94 MB / 386.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01913/0.3491, allocations: 14.31 MB / 400.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002161/0.3513, allocations: 63.22 kB / 400.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001421/0.3528, allocations: 0.5021 MB / 401.1 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006158/0.3589, allocations: 2.173 MB / 403.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008467/0.3674, allocations: 2.902 MB / 406.2 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006432/0.3739, allocations: 5.056 MB / 411.3 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001555/0.3754, allocations: 0.9904 MB / 412.2 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002282/0.3777, allocations: 1.414 MB / 413.7 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002274/0.38, allocations: 1.606 MB / 415.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002311/0.3803, allocations: 88 kB / 415.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005538/0.3858, allocations: 2.102 MB / 417.4 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007482/0.3866, allocations: 0.5375 MB / 418 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004436/0.387, allocations: 313 kB / 418.3 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003484/0.3905, allocations: 2.611 MB / 420.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.3905, allocations: 4 kB / 420.9 MB, free: 14.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.427e-06/0.3905, allocations: 4 kB / 420.9 MB, free: 14.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.679e-05/0.3906, allocations: 0 / 420.9 MB, free: 14.01 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.003931/0.3945, allocations: 1.9 MB / 422.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.3945, allocations: 8.031 kB / 422.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002183/0.3948, allocations: 164.5 kB / 423 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004151/0.3952, allocations: 186.1 kB / 423.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.3966, allocations: 0.9723 MB / 424.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.3967, allocations: 179.1 kB / 424.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001642/0.3969, allocations: 95.97 kB / 424.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00255/0.3994, allocations: 1.749 MB / 426.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.522e-05/0.3995, allocations: 4 kB / 426.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001361/0.3996, allocations: 43.97 kB / 426.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000145/0.3998, allocations: 113.9 kB / 426.3 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002714/0.4025, allocations: 1.772 MB / 428.1 MB, free: 6.645 MB / 334.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.0103/0.4128, allocations: 6.736 MB / 434.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001733/0.4146, allocations: 1.234 MB / 436.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001089/0.4157, allocations: 0.7651 MB / 436.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005357/0.421, allocations: 4.291 MB / 441.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.4211, allocations: 43.56 kB / 441.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000674/0.4218, allocations: 210.6 kB / 441.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.495e-06/0.4218, allocations: 0 / 441.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01639/0.4382, allocations: 5.715 MB / 447.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.381e-05/0.4383, allocations: 145.5 kB / 447.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/0.4399, allocations: 1.242 MB / 448.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.44, allocations: 49.7 kB / 448.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004549/0.4405, allocations: 0.6129 MB / 449.1 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003229/0.4408, allocations: 386.4 kB / 449.5 MB, free: 348 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.268e-05/0.4409, allocations: 28 kB / 449.5 MB, free: 320 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.4411, allocations: 369.8 kB / 449.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.4422, allocations: 0.6987 MB / 450.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001321/0.4435, allocations: 1.048 MB / 451.6 MB, free: 14.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.4448, allocations: 0.8066 MB / 452.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.4448, allocations: 4 kB / 452.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003596/0.4484, allocations: 2.234 MB / 454.7 MB, free: 11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002304/0.4487, allocations: 385.6 kB / 455 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.4487, allocations: 8 kB / 455.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006443/0.4551, allocations: 1.278 MB / 456.3 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/0.4564, allocations: 299.5 kB / 456.6 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002356/0.4588, allocations: 1.602 MB / 458.2 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/0.4601, allocations: 87.8 kB / 458.3 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/0.4603, allocations: 72.12 kB / 458.4 MB, free: 7.121 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.4603, allocations: 7.938 kB / 458.4 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003344/0.4636, allocations: 2.019 MB / 460.4 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.4637, allocations: 15.98 kB / 460.4 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005715/0.4694, allocations: 1.128 MB / 461.6 MB, free: 3.945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.4706, allocations: 303.5 kB / 461.9 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002051/0.4727, allocations: 1.45 MB / 463.3 MB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/0.474, allocations: 83.8 kB / 463.4 MB, free: 2.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/0.4742, allocations: 67.97 kB / 463.5 MB, free: 2.023 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.000871/0.4751, allocations: 468.6 kB / 463.9 MB, free: 1.555 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/0.4753, allocations: 146.2 kB / 464.1 MB, free: 1.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003826/0.4792, allocations: 2.078 MB / 466.1 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.4792, allocations: 12 kB / 466.1 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.4792, allocations: 0 / 466.1 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.4792, allocations: 7.969 kB / 466.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005214/0.4844, allocations: 3.582 MB / 469.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.4844, allocations: 0 / 469.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008657/0.4853, allocations: 195.7 kB / 469.9 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003422/0.4888, allocations: 1 MB / 470.9 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.393e-05/0.4889, allocations: 27.98 kB / 470.9 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002071/0.4909, allocations: 1.607 MB / 472.6 MB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.491, allocations: 4 kB / 472.6 MB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004267/0.4952, allocations: 2.903 MB / 475.5 MB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007665/0.496, allocations: 407.1 kB / 475.9 MB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002016/0.4962, allocations: 20 kB / 475.9 MB, free: 5.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009172/0.4971, allocations: 91.78 kB / 476 MB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/0.4974, allocations: 101.1 kB / 476.1 MB, free: 5.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.4975, allocations: 51.97 kB / 476.1 MB, free: 5.199 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001126/0.4986, allocations: 0.8363 MB / 477 MB, free: 4.359 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4986, allocations: 0 / 477 MB, free: 4.359 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002807/0.5014, allocations: 1.16 MB / 478.1 MB, free: 3.199 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.006323/0.5078, allocations: 4.191 MB / 482.3 MB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005577/0.5134, allocations: 2.769 MB / 485.1 MB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.5134, allocations: 0 / 485.1 MB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001697/0.5151, allocations: 0.8755 MB / 486 MB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00307/0.5182, allocations: 0.6318 MB / 486.6 MB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01763/0.5358, allocations: 10.69 MB / 497.3 MB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009744/0.5368, allocations: 1.292 MB / 498.6 MB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002163/0.539, allocations: 0.5939 MB / 499.2 MB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007612/0.5398, allocations: 0.5383 MB / 499.7 MB, free: 13.11 MB / 414.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5398, allocations: 0 / 499.7 MB, free: 13.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2698/0.8096, allocations: 54.32 MB / 0.541 GB, free: 147.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001481/0.8098, allocations: 197.8 kB / 0.5412 GB, free: 147.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.346/4.155, allocations: 0 / 0.5412 GB, free: 147.6 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat