Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009097/0.0009097, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001005/0.001005, allocations: 184.2 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002753/0.0002755, allocations: 4.812 kB / 301.5 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09904/0.09933, allocations: 50.41 MB / 351.9 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02004/0.1194, allocations: 17.76 MB / 369.7 MB, free: 1.523 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1756/0.295, allocations: 6.271 MB / 376 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005628/0.2956, allocations: 28.69 kB / 376 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006754/0.2963, allocations: 289.3 kB / 376.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002068/0.2984, allocations: 0.9732 MB / 377.3 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003078/0.3015, allocations: 1.367 MB / 378.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003188/0.3047, allocations: 3.057 MB / 381.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006364/0.3053, allocations: 414.6 kB / 382.1 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009073/0.3062, allocations: 0.6271 MB / 382.7 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008533/0.3071, allocations: 0.732 MB / 383.4 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.797e-05/0.3072, allocations: 34.94 kB / 383.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002007/0.3092, allocations: 1.085 MB / 384.6 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002173/0.3094, allocations: 230.6 kB / 384.8 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003448/0.3098, allocations: 404.5 kB / 385.2 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001618/0.3114, allocations: 1.638 MB / 386.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3114, allocations: 0 / 386.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3114, allocations: 1.062 kB / 386.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.3115, allocations: 1.5 kB / 386.8 MB, free: 7.273 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.001638/0.3131, allocations: 1.026 MB / 387.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.3131, allocations: 10.06 kB / 387.9 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001033/0.3133, allocations: 93.92 kB / 388 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002471/0.3135, allocations: 89.17 kB / 388 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006444/0.3142, allocations: 0.5524 MB / 388.6 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.47e-05/0.3142, allocations: 39.55 kB / 388.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-05/0.3143, allocations: 53.78 kB / 388.7 MB, free: 6.027 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.3154, allocations: 0.7361 MB / 389.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.3154, allocations: 5.062 kB / 389.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.191e-05/0.3155, allocations: 20.14 kB / 389.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.114e-05/0.3155, allocations: 43.22 kB / 389.5 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009842/0.3165, allocations: 0.695 MB / 390.2 MB, free: 5.566 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.003394/0.3199, allocations: 3.044 MB / 393.2 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006436/0.3206, allocations: 493.9 kB / 393.7 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003262/0.3209, allocations: 267.3 kB / 394 MB, free: 2.609 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001909/0.3211, allocations: 342 kB / 394.3 MB, free: 2.223 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.3211, allocations: 43.97 kB / 394.3 MB, free: 2.176 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 1.503e-06/0.3211, allocations: 0 / 394.3 MB, free: 2.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.004625/0.3258, allocations: 2.321 MB / 396.7 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.3258, allocations: 87.3 kB / 396.8 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006586/0.3265, allocations: 0.6196 MB / 397.4 MB, free: 360 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.813e-05/0.3266, allocations: 42.58 kB / 397.4 MB, free: 316 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.3267, allocations: 327.2 kB / 397.7 MB, free: 24 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.3269, allocations: 217.1 kB / 397.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.009e-05/0.327, allocations: 63.53 kB / 398 MB, free: 15.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3272, allocations: 382.8 kB / 398.4 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004759/0.3277, allocations: 301.7 kB / 398.7 MB, free: 15.28 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005818/0.3283, allocations: 479 kB / 399.1 MB, free: 14.92 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.3293, allocations: 0.7522 MB / 399.9 MB, free: 14.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.3293, allocations: 2.438 kB / 399.9 MB, free: 14.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00147/0.3308, allocations: 0.9649 MB / 400.9 MB, free: 13.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001604/0.331, allocations: 230.2 kB / 401.1 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.331, allocations: 6.656 kB / 401.1 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002652/0.3337, allocations: 426.4 kB / 401.5 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005421/0.3342, allocations: 150.9 kB / 401.7 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008241/0.335, allocations: 0.8247 MB / 402.5 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005706/0.3356, allocations: 50 kB / 402.5 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.04e-05/0.3357, allocations: 36.58 kB / 402.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.588e-06/0.3357, allocations: 3.531 kB / 402.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001304/0.337, allocations: 0.818 MB / 403.4 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.3371, allocations: 4 kB / 403.4 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002014/0.3391, allocations: 291.6 kB / 403.7 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005471/0.3396, allocations: 159.8 kB / 403.8 MB, free: 11.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005942/0.3402, allocations: 0.7161 MB / 404.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004932/0.3407, allocations: 44.05 kB / 404.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.243e-05/0.3408, allocations: 31.98 kB / 404.6 MB, free: 10.99 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.0004326/0.3413, allocations: 330.9 kB / 404.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.3414, allocations: 75.16 kB / 405 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001592/0.343, allocations: 0.858 MB / 405.9 MB, free: 9.727 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.343, allocations: 7.938 kB / 405.9 MB, free: 9.719 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.343, allocations: 7.984 kB / 405.9 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.3431, allocations: 0 / 405.9 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002799/0.3459, allocations: 1.721 MB / 407.6 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3459, allocations: 0 / 407.6 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004639/0.3463, allocations: 111.9 kB / 407.7 MB, free: 7.828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001514/0.3479, allocations: 356.1 kB / 408.1 MB, free: 7.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.948e-05/0.3479, allocations: 15.98 kB / 408.1 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007809/0.3487, allocations: 0.8099 MB / 408.9 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3487, allocations: 0 / 408.9 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.3506, allocations: 1.298 MB / 410.2 MB, free: 5.312 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002027/0.3508, allocations: 160.2 kB / 410.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.351, allocations: 19.98 kB / 410.4 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000468/0.3514, allocations: 39.97 kB / 410.4 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.3516, allocations: 52.48 kB / 410.5 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.646e-05/0.3516, allocations: 23.98 kB / 410.5 MB, free: 5.004 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005108/0.3522, allocations: 443 kB / 410.9 MB, free: 4.578 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3522, allocations: 0 / 410.9 MB, free: 4.578 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00147/0.3536, allocations: 0.5271 MB / 411.4 MB, free: 4.051 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 (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.003143/0.3568, allocations: 2.174 MB / 413.6 MB, free: 1.855 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002129/0.3589, allocations: 1.177 MB / 414.8 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3589, allocations: 0 / 414.8 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006331/0.3596, allocations: 387 kB / 415.2 MB, free: 308 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001655/0.3613, allocations: 354.6 kB / 415.5 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/0.3713, allocations: 7.495 MB / 423 MB, free: 8.234 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005373/0.3718, allocations: 0.9715 MB / 424 MB, free: 7.238 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008891/0.3727, allocations: 297.9 kB / 424.3 MB, free: 6.945 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003757/0.3731, allocations: 251.4 kB / 424.5 MB, free: 6.699 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3731, allocations: 0 / 424.5 MB, free: 6.699 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.296/0.6691, allocations: 26.18 MB / 450.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002264/0.6694, allocations: 231.7 kB / 450.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.506/3.176, allocations: 4.062 kB / 450.9 MB, free: 12.61 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches