Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",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.002419/0.002419, allocations: 187.1 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.415/2.415, allocations: 205.4 MB / 222.5 MB, free: 13.75 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.001175/0.001175, allocations: 98.84 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004164/0.0004167, allocations: 8 kB / 327 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1271, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.3594/0.4866, allocations: 25.16 MB / 399.8 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02746/0.5141, allocations: 13.38 MB / 413.2 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002961/0.5171, allocations: 56.91 kB / 413.2 MB, free: 0.668 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002747/0.5199, allocations: 0.5198 MB / 413.7 MB, free: 384 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009294/0.5293, allocations: 1.88 MB / 415.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01405/0.5433, allocations: 2.919 MB / 418.5 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006513/0.5499, allocations: 2.325 MB / 420.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002965/0.553, allocations: 0.9783 MB / 421.8 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004586/0.5576, allocations: 1.215 MB / 423.1 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003731/0.5614, allocations: 1.091 MB / 424.2 MB, free: 9.859 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007916/0.5623, allocations: 86.22 kB / 424.2 MB, free: 9.859 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008101/0.5704, allocations: 2.204 MB / 426.4 MB, free: 8.793 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001545/0.572, allocations: 0.4985 MB / 426.9 MB, free: 8.469 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001054/0.5731, allocations: 308.6 kB / 427.2 MB, free: 8.312 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008158/0.5813, allocations: 2.628 MB / 429.9 MB, free: 5.773 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.5813, allocations: 3.938 kB / 429.9 MB, free: 5.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.5813, allocations: 0 / 429.9 MB, free: 5.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.19e-05/0.5814, allocations: 0 / 429.9 MB, free: 5.77 MB / 298.7 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.008494/0.5899, allocations: 1.908 MB / 431.8 MB, free: 3.809 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.203e-05/0.59, allocations: 8.031 kB / 431.8 MB, free: 3.801 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007449/0.5908, allocations: 164.5 kB / 432 MB, free: 3.633 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009535/0.5918, allocations: 178.1 kB / 432.1 MB, free: 3.457 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003161/0.5949, allocations: 0.9645 MB / 433.1 MB, free: 2.449 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002747/0.5953, allocations: 175.1 kB / 433.3 MB, free: 2.258 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004856/0.5958, allocations: 95.97 kB / 433.4 MB, free: 2.164 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005579/0.6014, allocations: 1.741 MB / 435.1 MB, free: 380 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.846e-05/0.6015, allocations: 0 / 435.1 MB, free: 380 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002585/0.6017, allocations: 47.95 kB / 435.1 MB, free: 332 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002935/0.602, allocations: 113.9 kB / 435.3 MB, free: 216 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00635/0.6084, allocations: 1.784 MB / 437 MB, free: 14.42 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.02315/0.6316, allocations: 6.791 MB / 443.8 MB, free: 7.289 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003748/0.6354, allocations: 1.242 MB / 445.1 MB, free: 6.047 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01083/0.6463, allocations: 4.31 MB / 449.4 MB, free: 1.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.689e-05/0.6464, allocations: 50.5 kB / 449.4 MB, free: 1.266 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001495/0.6479, allocations: 210.6 kB / 449.6 MB, free: 1.059 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 4.459e-06/0.648, allocations: 3.938 kB / 449.6 MB, free: 1.055 MB / 314.7 MB Notification: Performance of matching and sorting (n=112): time 0.03604/0.684, allocations: 5.72 MB / 455.4 MB, free: 11.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.6842, allocations: 145.5 kB / 455.5 MB, free: 11.1 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002766/0.687, allocations: 1.242 MB / 456.7 MB, free: 9.848 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003994/0.6874, allocations: 53.7 kB / 456.8 MB, free: 9.789 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006489/0.6881, allocations: 0.5836 MB / 457.4 MB, free: 9.199 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006904/0.6888, allocations: 386.5 kB / 457.8 MB, free: 8.816 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.6889, allocations: 32 kB / 457.8 MB, free: 8.785 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002474/0.6892, allocations: 366.8 kB / 458.1 MB, free: 8.418 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002261/0.6915, allocations: 0.6871 MB / 458.8 MB, free: 7.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002861/0.6944, allocations: 1.048 MB / 459.9 MB, free: 6.543 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002682/0.6971, allocations: 0.8105 MB / 460.7 MB, free: 5.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.825e-05/0.6972, allocations: 7.953 kB / 460.7 MB, free: 5.723 MB / 330.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.007687/0.7049, allocations: 2.157 MB / 462.9 MB, free: 3.555 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002193/0.7071, allocations: 3.75 MB / 466.6 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-05/0.7072, allocations: 15.95 kB / 466.6 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01409/0.7213, allocations: 1.27 MB / 467.9 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002619/0.724, allocations: 295.6 kB / 468.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004473/0.7285, allocations: 1.602 MB / 469.8 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002633/0.7312, allocations: 83.8 kB / 469.9 MB, free: 12.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004645/0.7317, allocations: 71.97 kB / 469.9 MB, free: 12.15 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.7318, allocations: 3.938 kB / 469.9 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007207/0.739, allocations: 2.023 MB / 472 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.182e-05/0.7391, allocations: 15.95 kB / 472 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01259/0.7517, allocations: 1.094 MB / 473.1 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00269/0.7545, allocations: 303.5 kB / 473.4 MB, free: 8.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003919/0.7584, allocations: 1.438 MB / 474.8 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002051/0.7606, allocations: 83.8 kB / 474.9 MB, free: 7.164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003821/0.761, allocations: 67.97 kB / 475 MB, free: 7.098 MB / 346.7 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.001539/0.7625, allocations: 473.3 kB / 475.4 MB, free: 6.625 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006066/0.7632, allocations: 142.3 kB / 475.6 MB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008385/0.7716, allocations: 2.106 MB / 477.7 MB, free: 4.367 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.081e-05/0.7717, allocations: 12 kB / 477.7 MB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.7717, allocations: 0 / 477.7 MB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.244e-05/0.7717, allocations: 3.984 kB / 477.7 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01201/0.7838, allocations: 3.583 MB / 481.3 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.199e-05/0.7838, allocations: 4 kB / 481.3 MB, free: 0.707 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002061/0.7859, allocations: 195.7 kB / 481.5 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007113/0.7931, allocations: 1 MB / 482.5 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003523/0.7935, allocations: 27.98 kB / 482.5 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003937/0.7974, allocations: 1.611 MB / 484.1 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.7975, allocations: 0 / 484.1 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00887/0.8064, allocations: 2.891 MB / 487 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001707/0.8082, allocations: 431 kB / 487.4 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000549/0.8088, allocations: 20 kB / 487.4 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002214/0.811, allocations: 79.84 kB / 487.5 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005271/0.8116, allocations: 105.1 kB / 487.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002573/0.8118, allocations: 47.97 kB / 487.7 MB, free: 10.24 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002042/0.8139, allocations: 0.8363 MB / 488.5 MB, free: 9.402 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.122e-06/0.8139, allocations: 0 / 488.5 MB, free: 9.402 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005396/0.8194, allocations: 1.16 MB / 489.6 MB, free: 8.242 MB / 362.7 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.01274/0.8322, allocations: 4.184 MB / 493.8 MB, free: 4.023 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01175/0.844, allocations: 2.753 MB / 496.6 MB, free: 1.277 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/0.8441, allocations: 4 kB / 496.6 MB, free: 1.273 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003872/0.8479, allocations: 0.8711 MB / 497.5 MB, free: 416 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005588/0.8536, allocations: 0.5956 MB / 498.1 MB, free: 15.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01805/0.8717, allocations: 11.28 MB / 0.4974 GB, free: 4.238 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001382/0.8731, allocations: 1.311 MB / 0.4987 GB, free: 2.902 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/0.8748, allocations: 0.5539 MB / 0.4992 GB, free: 2.348 MB / 378.7 MB Notification: Performance of SimCode: time 2.093e-06/0.8749, allocations: 0 / 0.4992 GB, free: 2.348 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.203/5.078, allocations: 41.16 MB / 0.5394 GB, free: 135.1 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat