Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001095/0.001095, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 59.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2937, allocations: 50.54 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01911/0.3129, allocations: 15.97 MB / 424.7 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01036/0.3233, allocations: 6.908 MB / 431.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001093/0.3244, allocations: 23.81 kB / 431.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001267/0.3257, allocations: 341.9 kB / 432 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003565/0.3294, allocations: 1.085 MB / 433.1 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00573/0.3351, allocations: 1.798 MB / 434.9 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003286/0.3384, allocations: 2.159 MB / 437 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001153/0.3396, allocations: 0.5997 MB / 437.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00175/0.3413, allocations: 0.8176 MB / 438.4 MB, free: 3.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00149/0.3429, allocations: 0.7979 MB / 439.2 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002888/0.3432, allocations: 80 kB / 439.3 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003122/0.3463, allocations: 1.248 MB / 440.6 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000528/0.3468, allocations: 315.2 kB / 440.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00106/0.3479, allocations: 458 kB / 441.3 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004057/0.352, allocations: 1.861 MB / 443.2 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.352, allocations: 0 / 443.2 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.352, allocations: 4 kB / 443.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.214e-05/0.3521, allocations: 0 / 443.2 MB, free: 14.99 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.004187/0.3563, allocations: 1.295 MB / 444.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.3564, allocations: 8.031 kB / 444.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002421/0.3566, allocations: 102.7 kB / 444.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004786/0.3571, allocations: 112.4 kB / 444.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/0.3584, allocations: 0.6249 MB / 445.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.3586, allocations: 104.7 kB / 445.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.3587, allocations: 55.98 kB / 445.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.3603, allocations: 0.9001 MB / 446.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/0.3603, allocations: 3.953 kB / 446.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.668e-05/0.3604, allocations: 19.98 kB / 446.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.981e-05/0.3605, allocations: 57.27 kB / 446.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.362, allocations: 0.8405 MB / 447.3 MB, free: 10.73 MB / 366.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.005942/0.368, allocations: 3.459 MB / 450.7 MB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.369, allocations: 0.6657 MB / 451.4 MB, free: 6.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000544/0.3696, allocations: 374.3 kB / 451.8 MB, free: 6.043 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003042/0.3726, allocations: 2.031 MB / 453.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.3727, allocations: 47.12 kB / 453.9 MB, free: 3.762 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.244e-06/0.3727, allocations: 0 / 453.9 MB, free: 3.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007194/0.3799, allocations: 2.845 MB / 456.7 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.38, allocations: 85.67 kB / 456.8 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008859/0.3809, allocations: 0.6759 MB / 457.5 MB, free: 60 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.346e-05/0.381, allocations: 41.7 kB / 457.5 MB, free: 12 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.3812, allocations: 345 kB / 457.8 MB, free: 15.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002031/0.3814, allocations: 238 kB / 458.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002682/0.3817, allocations: 150.6 kB / 458.2 MB, free: 15.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.3819, allocations: 386.8 kB / 458.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005944/0.3825, allocations: 368.6 kB / 459 MB, free: 14.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007551/0.3832, allocations: 0.5229 MB / 459.5 MB, free: 13.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/0.3846, allocations: 0.8638 MB / 460.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.3847, allocations: 0 / 460.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002167/0.3868, allocations: 1.158 MB / 461.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.3869, allocations: 12.09 kB / 461.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.3869, allocations: 4 kB / 461.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00125/0.3882, allocations: 456.3 kB / 462 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006429/0.3888, allocations: 159.8 kB / 462.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001161/0.39, allocations: 1.024 MB / 463.1 MB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006192/0.3906, allocations: 31.98 kB / 463.2 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.927e-05/0.3907, allocations: 31.98 kB / 463.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008198/0.3915, allocations: 0.5292 MB / 463.7 MB, free: 9.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007131/0.3922, allocations: 0.5234 MB / 464.3 MB, free: 9.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00116/0.3934, allocations: 0.8412 MB / 465.1 MB, free: 8.109 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.042e-06/0.3934, allocations: 4 kB / 465.1 MB, free: 8.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001826/0.3953, allocations: 1.103 MB / 466.2 MB, free: 6.992 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.3953, allocations: 12.09 kB / 466.2 MB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3953, allocations: 4 kB / 466.2 MB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006776/0.396, allocations: 312.6 kB / 466.5 MB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006346/0.3966, allocations: 167.7 kB / 466.7 MB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000926/0.3976, allocations: 0.9035 MB / 467.6 MB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006036/0.3982, allocations: 36.02 kB / 467.6 MB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.599e-05/0.3983, allocations: 31.98 kB / 467.7 MB, free: 5.508 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002692/0.3985, allocations: 236 kB / 467.9 MB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.3987, allocations: 91.41 kB / 468 MB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/0.4007, allocations: 1.099 MB / 469.1 MB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.4007, allocations: 8 kB / 469.1 MB, free: 4.059 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.4007, allocations: 4 kB / 469.1 MB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.4008, allocations: 3.984 kB / 469.1 MB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003148/0.4039, allocations: 2.004 MB / 471.1 MB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.4039, allocations: 0 / 471.1 MB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005672/0.4045, allocations: 111.9 kB / 471.2 MB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.4056, allocations: 436.5 kB / 471.6 MB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.407e-05/0.4057, allocations: 16 kB / 471.6 MB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001144/0.4068, allocations: 1.039 MB / 472.7 MB, free: 376 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4069, allocations: 96 / 472.7 MB, free: 376 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.4092, allocations: 1.605 MB / 474.3 MB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000484/0.4097, allocations: 252.5 kB / 474.5 MB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.4099, allocations: 12 kB / 474.6 MB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000566/0.4104, allocations: 39.91 kB / 474.6 MB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.4106, allocations: 56.52 kB / 474.6 MB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.527e-05/0.4106, allocations: 31.97 kB / 474.7 MB, free: 14.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005651/0.4112, allocations: 483 kB / 475.1 MB, free: 13.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4112, allocations: 3.938 kB / 475.2 MB, free: 13.87 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001457/0.4127, allocations: 0.5849 MB / 475.7 MB, free: 13.29 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003674/0.4164, allocations: 2.53 MB / 478.3 MB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003193/0.4196, allocations: 1.404 MB / 479.7 MB, free: 9.316 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.4196, allocations: 0 / 479.7 MB, free: 9.316 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009398/0.4206, allocations: 475.4 kB / 480.1 MB, free: 8.855 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001846/0.4224, allocations: 394.5 kB / 480.5 MB, free: 8.473 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01146/0.4339, allocations: 7.759 MB / 488.3 MB, free: 0.5117 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005141/0.4344, allocations: 0.995 MB / 489.3 MB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009719/0.4354, allocations: 306.5 kB / 489.6 MB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003905/0.4358, allocations: 279.3 kB / 489.8 MB, free: 14.91 MB / 414.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4358, allocations: 0 / 489.8 MB, free: 14.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06462/0.5005, allocations: 30.92 MB / 0.5086 GB, free: 176 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.24, allocations: 22.31 kB / 0.5086 GB, free: 156 kB / 430.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 Modelica_trunk_Modelica_Fluid_Examples_Tanks_EmptyTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)