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.0008212/0.0008213, allocations: 91.88 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009556/0.0009557, allocations: 203 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001897/0.0001897, allocations: 8 kB / 307.8 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07716/0.07736, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.1539/0.2313, allocations: 17.88 MB / 377.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006677/0.238, allocations: 6.303 MB / 383.5 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003918/0.2384, allocations: 29.94 kB / 383.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006386/0.2391, allocations: 289.6 kB / 383.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001699/0.2408, allocations: 0.9857 MB / 384.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002497/0.2433, allocations: 1.36 MB / 386.2 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002557/0.2459, allocations: 3.077 MB / 389.3 MB, free: 6.898 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004577/0.2463, allocations: 425.6 kB / 389.7 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007378/0.2471, allocations: 0.6177 MB / 390.3 MB, free: 6.516 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000746/0.2478, allocations: 0.7338 MB / 391 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.059e-05/0.2479, allocations: 33.25 kB / 391.1 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001613/0.2495, allocations: 1.111 MB / 392.2 MB, free: 5.914 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001898/0.2497, allocations: 241 kB / 392.4 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002973/0.25, allocations: 392.4 kB / 392.8 MB, free: 5.504 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001397/0.2514, allocations: 1.648 MB / 394.4 MB, free: 4.434 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2515, allocations: 1.031 kB / 394.4 MB, free: 4.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2515, allocations: 0 / 394.4 MB, free: 4.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.2515, allocations: 0 / 394.4 MB, free: 4.434 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.001514/0.253, allocations: 1.027 MB / 395.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.253, allocations: 16.39 kB / 395.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.99e-05/0.2531, allocations: 89.95 kB / 395.6 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002342/0.2534, allocations: 85.39 kB / 395.7 MB, free: 3.484 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000583/0.254, allocations: 0.5558 MB / 396.2 MB, free: 3.012 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.254, allocations: 41.36 kB / 396.3 MB, free: 2.992 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.046e-05/0.2541, allocations: 48 kB / 396.3 MB, free: 2.977 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009376/0.255, allocations: 0.7385 MB / 397 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.2551, allocations: 1.375 kB / 397 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.814e-05/0.2551, allocations: 17.5 kB / 397.1 MB, free: 2.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.476e-05/0.2552, allocations: 43.22 kB / 397.1 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000922/0.2561, allocations: 0.6993 MB / 397.8 MB, free: 2.133 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.003259/0.2594, allocations: 3.052 MB / 400.9 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006855/0.2601, allocations: 496.9 kB / 401.3 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003516/0.2604, allocations: 265.4 kB / 401.6 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002275/0.2607, allocations: 348.5 kB / 401.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.2607, allocations: 42.39 kB / 402 MB, free: 14.69 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 1.533e-06/0.2607, allocations: 4 kB / 402 MB, free: 14.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=58): time 0.00449/0.2652, allocations: 2.316 MB / 404.3 MB, free: 13.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.2653, allocations: 84.02 kB / 404.4 MB, free: 13.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006088/0.2659, allocations: 0.622 MB / 405 MB, free: 12.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.507e-05/0.2659, allocations: 43.2 kB / 405 MB, free: 12.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002053/0.2662, allocations: 332 kB / 405.4 MB, free: 12.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.2663, allocations: 202.5 kB / 405.6 MB, free: 12.35 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.432e-05/0.2664, allocations: 66.94 kB / 405.6 MB, free: 12.3 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.2665, allocations: 378.1 kB / 406 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004541/0.267, allocations: 305.2 kB / 406.3 MB, free: 11.79 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005312/0.2675, allocations: 481 kB / 406.8 MB, free: 11.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009258/0.2685, allocations: 0.7499 MB / 407.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2685, allocations: 0 / 407.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001368/0.2699, allocations: 0.9854 MB / 408.5 MB, free: 9.793 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000119/0.27, allocations: 225.4 kB / 408.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.27, allocations: 4 kB / 408.7 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002415/0.2724, allocations: 424.2 kB / 409.1 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005195/0.2729, allocations: 151.8 kB / 409.3 MB, free: 8.934 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007494/0.2737, allocations: 0.8216 MB / 410.1 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004401/0.2742, allocations: 48.05 kB / 410.2 MB, free: 8.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.87e-05/0.2742, allocations: 35.92 kB / 410.2 MB, free: 8.008 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.803e-06/0.2742, allocations: 4.094 kB / 410.2 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001206/0.2755, allocations: 0.8243 MB / 411 MB, free: 7.176 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.2755, allocations: 4 kB / 411 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001889/0.2774, allocations: 284.7 kB / 411.3 MB, free: 6.891 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005224/0.2779, allocations: 163.7 kB / 411.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005476/0.2785, allocations: 0.7129 MB / 412.2 MB, free: 5.992 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004068/0.2789, allocations: 47.88 kB / 412.2 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.164e-05/0.2789, allocations: 32 kB / 412.3 MB, free: 5.914 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 (tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.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 (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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002961/0.2792, allocations: 324.9 kB / 412.6 MB, free: 5.586 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.2793, allocations: 75.09 kB / 412.6 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001346/0.2807, allocations: 0.8658 MB / 413.5 MB, free: 4.641 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.2807, allocations: 11.94 kB / 413.5 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2807, allocations: 0 / 413.5 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.2807, allocations: 7.969 kB / 413.5 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002334/0.2831, allocations: 1.708 MB / 415.2 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.2831, allocations: 8.062 kB / 415.3 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004386/0.2835, allocations: 111.8 kB / 415.4 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001388/0.2849, allocations: 348.5 kB / 415.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.717e-05/0.285, allocations: 17.75 kB / 415.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006551/0.2856, allocations: 0.8142 MB / 416.5 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2857, allocations: 4.031 kB / 416.5 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/0.2873, allocations: 1.295 MB / 417.8 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001271/0.2874, allocations: 152.2 kB / 418 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.195e-05/0.2875, allocations: 16 kB / 418 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004204/0.288, allocations: 43.94 kB / 418 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.2881, allocations: 56.42 kB / 418.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.653e-05/0.2881, allocations: 27.98 kB / 418.1 MB, free: 15.9 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004403/0.2886, allocations: 439 kB / 418.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2886, allocations: 0 / 418.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001189/0.2898, allocations: 0.5427 MB / 419.1 MB, free: 14.93 MB / 334.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 (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 {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0026/0.2924, allocations: 2.16 MB / 421.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001828/0.2942, allocations: 1.176 MB / 422.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2942, allocations: 1.562 kB / 422.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006036/0.2948, allocations: 394.8 kB / 422.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/0.2964, allocations: 355.7 kB / 423.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008796/0.3052, allocations: 7.519 MB / 430.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.3057, allocations: 0.9715 MB / 431.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008099/0.3065, allocations: 289.9 kB / 431.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003267/0.3068, allocations: 251.4 kB / 432.2 MB, free: 1.551 MB / 334.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3068, allocations: 4 kB / 432.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03719/0.344, allocations: 26.27 MB / 458.5 MB, free: 7.551 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002016/0.3443, allocations: 231.2 kB / 458.7 MB, free: 7.297 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.275/2.62, allocations: 8 kB / 458.7 MB, free: 7.289 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/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) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches