Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001118/0.001118, allocations: 94.78 kB / 16.98 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00144/0.00144, allocations: 205.5 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002653/0.0002654, allocations: 8 kB / 306.7 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1219, allocations: 51.48 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.2376/0.3596, allocations: 15.31 MB / 373.5 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008058/0.3677, allocations: 5.524 MB / 379 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006681/0.3684, allocations: 29.5 kB / 379.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007664/0.3692, allocations: 295.4 kB / 379.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002357/0.3716, allocations: 0.8546 MB / 380.2 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004196/0.3758, allocations: 1.25 MB / 381.5 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002523/0.3783, allocations: 1.076 MB / 382.5 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007392/0.3791, allocations: 407.2 kB / 382.9 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.3802, allocations: 0.5528 MB / 383.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008191/0.381, allocations: 461.7 kB / 383.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.3811, allocations: 34.41 kB / 384 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002963/0.3841, allocations: 1.032 MB / 385 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002805/0.3844, allocations: 213.5 kB / 385.2 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002316/0.3847, allocations: 164.5 kB / 385.4 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00212/0.3868, allocations: 1.216 MB / 386.6 MB, free: 8.023 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.3868, allocations: 0 / 386.6 MB, free: 8.023 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3868, allocations: 0 / 386.6 MB, free: 8.023 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.397e-06/0.3868, allocations: 0 / 386.6 MB, free: 8.023 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002178/0.389, allocations: 1.044 MB / 387.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.904e-05/0.3891, allocations: 9.469 kB / 387.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001352/0.3892, allocations: 88.39 kB / 387.7 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002857/0.3895, allocations: 83.17 kB / 387.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009661/0.3905, allocations: 0.5376 MB / 388.3 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.208e-05/0.3905, allocations: 35.97 kB / 388.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.3907, allocations: 51.91 kB / 388.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.3921, allocations: 0.7315 MB / 389.2 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.3921, allocations: 5.562 kB / 389.2 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.841e-05/0.3922, allocations: 20.41 kB / 389.2 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-05/0.3923, allocations: 48.3 kB / 389.2 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/0.3935, allocations: 0.6901 MB / 389.9 MB, free: 6.223 MB / 302.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.004472/0.3979, allocations: 3.045 MB / 393 MB, free: 3.652 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008481/0.3988, allocations: 498.5 kB / 393.5 MB, free: 3.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002224/0.399, allocations: 342.9 kB / 393.8 MB, free: 3.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.341e-05/0.3991, allocations: 38.59 kB / 393.8 MB, free: 2.961 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.424e-06/0.3991, allocations: 3.938 kB / 393.8 MB, free: 2.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005404/0.4045, allocations: 2.319 MB / 396.1 MB, free: 1.586 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.4046, allocations: 87.17 kB / 396.2 MB, free: 1.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000857/0.4054, allocations: 0.6179 MB / 396.9 MB, free: 1.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.178e-05/0.4055, allocations: 38.36 kB / 396.9 MB, free: 1.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002232/0.4057, allocations: 330.7 kB / 397.2 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/0.4059, allocations: 206 kB / 397.4 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.762e-05/0.406, allocations: 14.28 kB / 397.4 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.4061, allocations: 380.7 kB / 397.8 MB, free: 248 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005145/0.4066, allocations: 300 kB / 398.1 MB, free: 96 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007137/0.4073, allocations: 472 kB / 398.6 MB, free: 15.74 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006294/0.408, allocations: 348 kB / 398.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.408, allocations: 1.375 kB / 398.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001766/0.4098, allocations: 0.961 MB / 399.9 MB, free: 15.06 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008313/0.4106, allocations: 1.827 MB / 401.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.4106, allocations: 8.719 kB / 401.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002679/0.4133, allocations: 424.5 kB / 402.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006096/0.4139, allocations: 150.3 kB / 402.3 MB, free: 12.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009489/0.4149, allocations: 0.8216 MB / 403.1 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007069/0.4156, allocations: 45.03 kB / 403.1 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.426e-05/0.4157, allocations: 35.78 kB / 403.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.4157, allocations: 2.906 kB / 403.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001377/0.4171, allocations: 0.815 MB / 404 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.4171, allocations: 5.094 kB / 404 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001908/0.4191, allocations: 285.5 kB / 404.3 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005856/0.4197, allocations: 163.7 kB / 404.4 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006482/0.4203, allocations: 0.7097 MB / 405.1 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000606/0.4209, allocations: 49.88 kB / 405.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.097e-05/0.421, allocations: 35.08 kB / 405.2 MB, free: 10.9 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[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 (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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004877/0.4215, allocations: 318.7 kB / 405.5 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.4217, allocations: 80.89 kB / 405.6 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001567/0.4232, allocations: 0.8641 MB / 406.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.4233, allocations: 9.969 kB / 406.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.437e-05/0.4233, allocations: 3.984 kB / 406.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.4233, allocations: 0 / 406.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002972/0.4263, allocations: 1.715 MB / 408.2 MB, free: 8.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.4263, allocations: 0 / 408.2 MB, free: 8.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004943/0.4268, allocations: 111.9 kB / 408.3 MB, free: 8.723 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/0.4283, allocations: 352.5 kB / 408.6 MB, free: 8.375 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.452e-05/0.4284, allocations: 16 kB / 408.7 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007361/0.4292, allocations: 0.8176 MB / 409.5 MB, free: 7.516 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4292, allocations: 0 / 409.5 MB, free: 7.516 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001815/0.431, allocations: 1.308 MB / 410.8 MB, free: 6.164 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/0.4313, allocations: 152.2 kB / 410.9 MB, free: 5.996 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.4314, allocations: 19.98 kB / 411 MB, free: 5.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000545/0.432, allocations: 35.98 kB / 411 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.4321, allocations: 60.42 kB / 411 MB, free: 5.883 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.997e-05/0.4322, allocations: 27.98 kB / 411.1 MB, free: 5.855 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005475/0.4327, allocations: 435 kB / 411.5 MB, free: 5.438 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4328, allocations: 0 / 411.5 MB, free: 5.438 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00195/0.4347, allocations: 0.5349 MB / 412 MB, free: 4.902 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003539/0.4383, allocations: 2.326 MB / 414.4 MB, free: 2.562 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002219/0.4405, allocations: 1.17 MB / 415.5 MB, free: 1.391 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4405, allocations: 0 / 415.5 MB, free: 1.391 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000658/0.4412, allocations: 385 kB / 415.9 MB, free: 1.016 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001758/0.4429, allocations: 349.3 kB / 416.2 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005414/0.4484, allocations: 5.532 MB / 421.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005998/0.449, allocations: 0.9871 MB / 422.8 MB, free: 9.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001133/0.4501, allocations: 277.7 kB / 423 MB, free: 9.711 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003849/0.4505, allocations: 251.3 kB / 423.3 MB, free: 9.465 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4505, allocations: 0 / 423.3 MB, free: 9.465 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04997/0.5005, allocations: 25.55 MB / 448.8 MB, free: 200 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/0.5008, allocations: 212.6 kB / 449 MB, free: 15.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.747/3.248, allocations: 0 / 449 MB, free: 15.96 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat