Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 99.97 kB / 16.94 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 185.1 kB / 17.83 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.562/1.562, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005228/0.0005233, allocations: 12 kB / 280.8 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1147, allocations: 47.57 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03297/0.1477, allocations: 25.17 MB / 353.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02477/0.1725, allocations: 13.38 MB / 367 MB, free: 13.35 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003832/0.1764, allocations: 55.5 kB / 367 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003726/0.1801, allocations: 0.5246 MB / 367.5 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009711/0.1899, allocations: 1.885 MB / 369.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01065/0.2006, allocations: 2.912 MB / 372.3 MB, free: 7.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006302/0.2069, allocations: 2.318 MB / 374.7 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00298/0.2099, allocations: 0.9728 MB / 375.6 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003504/0.2134, allocations: 1.219 MB / 376.8 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002752/0.2162, allocations: 1.09 MB / 377.9 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007356/0.217, allocations: 88 kB / 378 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006575/0.2236, allocations: 2.208 MB / 380.2 MB, free: 32 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2452/0.4688, allocations: 493.9 kB / 380.7 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.4699, allocations: 311.5 kB / 381 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008248/0.4781, allocations: 2.622 MB / 383.6 MB, free: 13.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.4782, allocations: 0 / 383.6 MB, free: 13.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.4782, allocations: 1.531 kB / 383.6 MB, free: 13.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.907e-05/0.4782, allocations: 3.094 kB / 383.6 MB, free: 13.88 MB / 318.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.005818/0.484, allocations: 1.902 MB / 385.5 MB, free: 12.85 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.4841, allocations: 10.41 kB / 385.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003282/0.4844, allocations: 170 kB / 385.7 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005886/0.485, allocations: 173.8 kB / 385.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001896/0.4869, allocations: 0.9694 MB / 386.9 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001883/0.4871, allocations: 176.6 kB / 387 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002325/0.4874, allocations: 100.1 kB / 387.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004158/0.4915, allocations: 1.742 MB / 388.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.7e-05/0.4916, allocations: 1 kB / 388.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001938/0.4918, allocations: 44.95 kB / 388.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002682/0.4921, allocations: 114.9 kB / 389 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003471/0.4956, allocations: 1.776 MB / 390.8 MB, free: 12.14 MB / 318.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.0124/0.508, allocations: 6.8 MB / 397.6 MB, free: 9.852 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001993/0.51, allocations: 1.231 MB / 398.8 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005767/0.5158, allocations: 4.325 MB / 403.2 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.5158, allocations: 46.25 kB / 403.2 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008775/0.5167, allocations: 216.2 kB / 403.4 MB, free: 7.359 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.246e-06/0.5167, allocations: 0 / 403.4 MB, free: 7.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=112): time 0.01742/0.5341, allocations: 5.714 MB / 409.1 MB, free: 6.512 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.509e-05/0.5343, allocations: 148.6 kB / 409.3 MB, free: 6.348 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001962/0.5362, allocations: 1.246 MB / 410.5 MB, free: 5.988 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001254/0.5364, allocations: 52.8 kB / 410.6 MB, free: 5.953 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004319/0.5368, allocations: 0.6073 MB / 411.2 MB, free: 5.656 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000353/0.5372, allocations: 392.7 kB / 411.6 MB, free: 5.379 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.465e-05/0.5373, allocations: 27.88 kB / 411.6 MB, free: 5.379 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.5374, allocations: 361.6 kB / 411.9 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.5385, allocations: 0.6924 MB / 412.6 MB, free: 4.941 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001332/0.5398, allocations: 1.043 MB / 413.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/0.541, allocations: 0.8112 MB / 414.5 MB, free: 4.309 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.5411, allocations: 3.969 kB / 414.5 MB, free: 4.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.00351/0.5446, allocations: 2.241 MB / 416.7 MB, free: 3.879 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001045/0.5456, allocations: 3.776 MB / 420.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.35e-05/0.5457, allocations: 14.53 kB / 420.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006848/0.5525, allocations: 1.269 MB / 421.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/0.5541, allocations: 298.8 kB / 422.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002681/0.5568, allocations: 1.599 MB / 423.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/0.5589, allocations: 90.17 kB / 423.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003354/0.5593, allocations: 68.59 kB / 423.8 MB, free: 13.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.5593, allocations: 4 kB / 423.8 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004153/0.5635, allocations: 2.025 MB / 425.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-05/0.5635, allocations: 10.62 kB / 425.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006078/0.5696, allocations: 1.113 MB / 427 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.571, allocations: 304.8 kB / 427.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002234/0.5733, allocations: 1.459 MB / 428.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/0.5751, allocations: 88.52 kB / 428.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002688/0.5754, allocations: 65.72 kB / 428.9 MB, free: 10.06 MB / 334.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.001196/0.5766, allocations: 464.7 kB / 429.4 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005179/0.5771, allocations: 150.2 kB / 429.5 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004467/0.5816, allocations: 2.09 MB / 431.6 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/0.5816, allocations: 12 kB / 431.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.5816, allocations: 0 / 431.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.95e-05/0.5816, allocations: 11.92 kB / 431.6 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007148/0.5888, allocations: 3.588 MB / 435.2 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.5888, allocations: 1.062 kB / 435.2 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009671/0.5898, allocations: 192.3 kB / 435.4 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00377/0.5936, allocations: 0.998 MB / 436.4 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/0.5937, allocations: 37.78 kB / 436.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.5961, allocations: 1.599 MB / 438 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.5961, allocations: 2.719 kB / 438 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005192/0.6013, allocations: 2.899 MB / 440.9 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/0.6029, allocations: 420.3 kB / 441.3 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005985/0.6035, allocations: 27.94 kB / 441.4 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00166/0.6052, allocations: 87.8 kB / 441.5 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002616/0.6055, allocations: 100.5 kB / 441.6 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001572/0.6056, allocations: 47.97 kB / 441.6 MB, free: 236 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001784/0.6074, allocations: 0.8362 MB / 442.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6074, allocations: 0 / 442.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.005307/0.6127, allocations: 1.163 MB / 443.6 MB, free: 14.23 MB / 350.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.007807/0.6206, allocations: 4.182 MB / 447.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006124/0.6267, allocations: 2.776 MB / 450.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.6267, allocations: 0 / 450.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001874/0.6286, allocations: 0.8702 MB / 451.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003449/0.6321, allocations: 0.594 MB / 452 MB, free: 5.949 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01227/0.6444, allocations: 11.23 MB / 463.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009201/0.6453, allocations: 1.327 MB / 464.6 MB, free: 9.133 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002359/0.6477, allocations: 0.5811 MB / 465.2 MB, free: 8.547 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008177/0.6485, allocations: 0.5383 MB / 465.7 MB, free: 8.008 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.6485, allocations: 0 / 465.7 MB, free: 8.008 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09256/0.7411, allocations: 53.44 MB / 0.507 GB, free: 2.66 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001856/0.7413, allocations: 196.5 kB / 0.5072 GB, free: 2.422 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.313/4.055, allocations: 0 / 0.5072 GB, free: 2.422 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat