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.001103/0.001103, allocations: 94.06 kB / 16.95 MB, free: 6.043 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.001305/0.001305, allocations: 179.5 kB / 17.84 MB, free: 5.684 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.438/1.438, 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.000466/0.0004661, allocations: 12 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0952/0.09567, allocations: 47.58 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02526/0.121, allocations: 27.89 MB / 356.3 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01872/0.1397, allocations: 14.29 MB / 370.6 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00189/0.1417, allocations: 63.44 kB / 370.7 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001397/0.1431, allocations: 0.5008 MB / 371.2 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005401/0.1485, allocations: 2.169 MB / 373.4 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007462/0.156, allocations: 2.907 MB / 376.3 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2419/0.3979, allocations: 5.038 MB / 381.3 MB, free: 13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002491/0.4004, allocations: 0.9774 MB / 382.3 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003682/0.4041, allocations: 1.414 MB / 383.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003745/0.4079, allocations: 1.605 MB / 385.3 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003554/0.4082, allocations: 86.22 kB / 385.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006107/0.4144, allocations: 2.08 MB / 387.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001048/0.4154, allocations: 0.5291 MB / 388 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008359/0.4163, allocations: 314.9 kB / 388.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005049/0.4213, allocations: 2.613 MB / 390.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.4213, allocations: 0 / 390.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.4214, allocations: 0 / 390.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.65e-05/0.4214, allocations: 1.094 kB / 390.9 MB, free: 12.73 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.005459/0.4269, allocations: 1.908 MB / 392.8 MB, free: 11.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.4269, allocations: 9.75 kB / 392.8 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003294/0.4273, allocations: 168.8 kB / 393 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005274/0.4278, allocations: 173.3 kB / 393.2 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001645/0.4295, allocations: 0.9705 MB / 394.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001792/0.4296, allocations: 173.4 kB / 394.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000196/0.4298, allocations: 102.1 kB / 394.4 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003152/0.433, allocations: 1.747 MB / 396.2 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.962e-05/0.4331, allocations: 1.375 kB / 396.2 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001497/0.4332, allocations: 42.08 kB / 396.2 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000201/0.4334, allocations: 115.2 kB / 396.3 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002763/0.4362, allocations: 1.775 MB / 398.1 MB, free: 10.98 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.01078/0.447, allocations: 6.727 MB / 404.8 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/0.4487, allocations: 1.243 MB / 406.1 MB, free: 8.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/0.4497, allocations: 0.7544 MB / 406.8 MB, free: 8.113 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005102/0.4548, allocations: 4.295 MB / 411.1 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.221e-05/0.4549, allocations: 50.25 kB / 411.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008517/0.4557, allocations: 203.5 kB / 411.4 MB, free: 5.012 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 4.388e-06/0.4557, allocations: 6.25 kB / 411.4 MB, free: 5.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=112): time 0.01643/0.4722, allocations: 5.711 MB / 417.1 MB, free: 3.258 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.592e-05/0.4723, allocations: 144.1 kB / 417.2 MB, free: 3.098 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002101/0.4745, allocations: 1.245 MB / 418.5 MB, free: 2.344 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001573/0.4746, allocations: 49.02 kB / 418.5 MB, free: 2.305 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004847/0.4751, allocations: 0.6073 MB / 419.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003782/0.4755, allocations: 394.1 kB / 419.5 MB, free: 1.609 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.4756, allocations: 26.12 kB / 419.5 MB, free: 1.605 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.4758, allocations: 368.3 kB / 419.9 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001166/0.477, allocations: 0.6946 MB / 420.6 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/0.4784, allocations: 1.043 MB / 421.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/0.4798, allocations: 0.8093 MB / 422.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/0.4799, allocations: 4 kB / 422.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004625/0.4845, allocations: 2.241 MB / 424.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005126/0.485, allocations: 377.7 kB / 425 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.45e-05/0.4851, allocations: 11.95 kB / 425.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00665/0.4918, allocations: 1.275 MB / 426.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/0.4932, allocations: 308.2 kB / 426.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002993/0.4963, allocations: 1.596 MB / 428.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002065/0.4984, allocations: 86.89 kB / 428.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003455/0.4987, allocations: 72.95 kB / 428.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.4988, allocations: 4 kB / 428.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004377/0.5031, allocations: 2.022 MB / 430.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-05/0.5032, allocations: 11.95 kB / 430.4 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005911/0.5091, allocations: 1.117 MB / 431.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/0.5106, allocations: 305.3 kB / 431.8 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002305/0.513, allocations: 1.455 MB / 433.3 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002041/0.515, allocations: 84.45 kB / 433.4 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000372/0.5154, allocations: 76.72 kB / 433.4 MB, free: 6.812 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.001382/0.5168, allocations: 462.6 kB / 433.9 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007225/0.5176, allocations: 142.3 kB / 434 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004939/0.5225, allocations: 2.088 MB / 436.1 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.922e-05/0.5225, allocations: 16 kB / 436.1 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.374e-05/0.5226, allocations: 0 / 436.1 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.782e-05/0.5226, allocations: 11.45 kB / 436.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006927/0.5295, allocations: 3.574 MB / 439.7 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.5296, allocations: 0 / 439.7 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009236/0.5305, allocations: 196 kB / 439.9 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003629/0.5341, allocations: 0.9961 MB / 440.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001377/0.5343, allocations: 35.98 kB / 440.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002481/0.5368, allocations: 1.608 MB / 442.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/0.5368, allocations: 3.984 kB / 442.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005197/0.542, allocations: 2.902 MB / 445.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/0.5432, allocations: 407 kB / 445.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005468/0.5438, allocations: 24 kB / 445.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001503/0.5453, allocations: 87.78 kB / 446 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002314/0.5455, allocations: 101.1 kB / 446.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001748/0.5457, allocations: 47.97 kB / 446.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00169/0.5474, allocations: 0.8362 MB / 447 MB, free: 9.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5474, allocations: 4 kB / 447 MB, free: 9.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.005369/0.5528, allocations: 1.156 MB / 448.1 MB, free: 8.27 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.009245/0.5621, allocations: 4.183 MB / 452.3 MB, free: 4.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007184/0.5693, allocations: 2.776 MB / 455.1 MB, free: 1.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/0.5694, allocations: 8.062 kB / 455.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002116/0.5715, allocations: 0.8673 MB / 455.9 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004423/0.5759, allocations: 0.6317 MB / 456.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02506/0.601, allocations: 10.7 MB / 467.3 MB, free: 4.855 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/0.6023, allocations: 1.296 MB / 468.6 MB, free: 3.527 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002726/0.6051, allocations: 0.5847 MB / 469.2 MB, free: 2.938 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009675/0.6061, allocations: 0.5461 MB / 469.7 MB, free: 2.391 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6061, allocations: 0 / 469.7 MB, free: 2.391 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1033/0.7094, allocations: 54.33 MB / 0.5118 GB, free: 12.14 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002575/0.7097, allocations: 203.7 kB / 0.5119 GB, free: 11.91 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.459/4.168, allocations: 0 / 0.5119 GB, free: 11.91 MB / 430.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