Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.963/1.963, allocations: 194.9 MB / 211.1 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003733/0.0003733, allocations: 8 kB / 264 MB, free: 3.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2978, allocations: 44.51 MB / 308.6 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.02238/0.3203, allocations: 11.4 MB / 320 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02662/0.3469, allocations: 13.12 MB / 333.1 MB, free: 4.176 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001899/0.3472, allocations: 4 kB / 333.1 MB, free: 4.172 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004342/0.3476, allocations: 67.7 kB / 333.1 MB, free: 4.105 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004159/0.3481, allocations: 103.7 kB / 333.2 MB, free: 4.004 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02122/0.3693, allocations: 4.593 MB / 337.8 MB, free: 15.39 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006196/0.37, allocations: 227.5 kB / 338.1 MB, free: 15.17 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.907e-05/0.3701, allocations: 13.69 kB / 338.1 MB, free: 15.16 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008345/0.3709, allocations: 227.2 kB / 338.3 MB, free: 14.94 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000243/0.3712, allocations: 103.6 kB / 338.4 MB, free: 14.84 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.742e-05/0.3712, allocations: 8 kB / 338.4 MB, free: 14.83 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01977/0.391, allocations: 6.645 MB / 345.1 MB, free: 8.176 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.3912, allocations: 35.89 kB / 345.1 MB, free: 8.141 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.3913, allocations: 65.58 kB / 345.1 MB, free: 8.07 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007491/0.3988, allocations: 2.612 MB / 347.8 MB, free: 5.453 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3989, allocations: 0 / 347.8 MB, free: 5.453 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3989, allocations: 8 kB / 347.8 MB, free: 5.445 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.3989, allocations: 3.938 kB / 347.8 MB, free: 5.441 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.003798/0.4027, allocations: 0.9476 MB / 348.7 MB, free: 4.445 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.4028, allocations: 8.031 kB / 348.7 MB, free: 4.438 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001141/0.4029, allocations: 58.55 kB / 348.8 MB, free: 4.371 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002058/0.405, allocations: 179.6 kB / 349 MB, free: 4.195 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.4055, allocations: 254.8 kB / 349.2 MB, free: 3.906 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.925e-05/0.4056, allocations: 16.44 kB / 349.2 MB, free: 3.891 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.888e-05/0.4057, allocations: 23.94 kB / 349.2 MB, free: 3.867 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005446/0.4111, allocations: 0.9129 MB / 350.2 MB, free: 2.934 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.4112, allocations: 0 / 350.2 MB, free: 2.934 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.424e-05/0.4113, allocations: 15.92 kB / 350.2 MB, free: 2.918 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.4113, allocations: 4 kB / 350.2 MB, free: 2.914 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005669/0.417, allocations: 0.989 MB / 351.2 MB, free: 1.926 MB / 282.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.002569/0.4196, allocations: 1.343 MB / 352.5 MB, free: 456 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004726/0.4244, allocations: 0.7293 MB / 353.2 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1604/0.5848, allocations: 37.75 MB / 391 MB, free: 5.508 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.1e-05/0.5849, allocations: 38.84 kB / 391 MB, free: 5.461 MB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 3.857e-06/0.5849, allocations: 0 / 391 MB, free: 5.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.01253/0.5975, allocations: 1.369 MB / 392.4 MB, free: 4.086 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.5976, allocations: 55.41 kB / 392.5 MB, free: 4.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.5978, allocations: 121.9 kB / 392.6 MB, free: 3.891 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001513/0.598, allocations: 33.7 kB / 392.6 MB, free: 3.852 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.5981, allocations: 116.7 kB / 392.7 MB, free: 3.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002676/0.5984, allocations: 110.3 kB / 392.8 MB, free: 3.621 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.5985, allocations: 12 kB / 392.8 MB, free: 3.609 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.5987, allocations: 330.8 kB / 393.2 MB, free: 3.277 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001594/0.6003, allocations: 336.2 kB / 393.5 MB, free: 2.949 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/0.602, allocations: 411.5 kB / 393.9 MB, free: 2.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.6037, allocations: 339.9 kB / 394.2 MB, free: 2.188 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.6038, allocations: 3.938 kB / 394.2 MB, free: 2.184 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.004505/0.6083, allocations: 0.881 MB / 395.1 MB, free: 1.297 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.548e-05/0.6084, allocations: 4 kB / 395.1 MB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/0.6084, allocations: 4 kB / 395.1 MB, free: 1.289 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.652e-05/0.6084, allocations: 7.938 kB / 395.1 MB, free: 1.281 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001695/0.6101, allocations: 171.8 kB / 395.3 MB, free: 1.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.785e-05/0.6102, allocations: 11.92 kB / 395.3 MB, free: 1.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009557/0.6112, allocations: 47.77 kB / 395.4 MB, free: 1.055 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002792/0.6115, allocations: 63.92 kB / 395.4 MB, free: 0.9922 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004662/0.612, allocations: 133.8 kB / 395.5 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002277/0.6122, allocations: 15.86 kB / 395.6 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01531/0.6275, allocations: 7.982 MB / 403.5 MB, free: 8.836 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.176e-05/0.6276, allocations: 27.95 kB / 403.6 MB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.6277, allocations: 0 / 403.6 MB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.6277, allocations: 0 / 403.6 MB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005106/0.6328, allocations: 3.596 MB / 407.2 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/0.6329, allocations: 3.984 kB / 407.2 MB, free: 4.945 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/0.6341, allocations: 123.8 kB / 407.3 MB, free: 4.824 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/0.6341, allocations: 3.984 kB / 407.3 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.619e-05/0.6342, allocations: 8 kB / 407.3 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.6342, allocations: 4 kB / 407.3 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.6342, allocations: 0 / 407.3 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004214/0.6384, allocations: 1.858 MB / 409.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.6387, allocations: 140.2 kB / 409.3 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.875e-05/0.6388, allocations: 7.953 kB / 409.3 MB, free: 2.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005397/0.6393, allocations: 28.05 kB / 409.3 MB, free: 2.742 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.6395, allocations: 27.95 kB / 409.4 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.342e-05/0.6396, allocations: 15.98 kB / 409.4 MB, free: 2.699 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.123e-05/0.6397, allocations: 99.14 kB / 409.5 MB, free: 2.602 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6397, allocations: 0 / 409.5 MB, free: 2.602 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003822/0.6435, allocations: 0.9838 MB / 410.5 MB, free: 1.617 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.265/0.9086, allocations: 3.406 MB / 413.9 MB, free: 99.9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002525/0.9112, allocations: 0.9123 MB / 414.8 MB, free: 99.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.9112, allocations: 0 / 414.8 MB, free: 99.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001204/0.9124, allocations: 0.5908 MB / 415.4 MB, free: 99.38 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009032/0.9133, allocations: 83.03 kB / 415.5 MB, free: 99.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/0.9243, allocations: 3.313 MB / 418.8 MB, free: 97.71 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004151/0.9248, allocations: 0.8639 MB / 419.6 MB, free: 97.01 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.003802/0.9286, allocations: 1.792 MB / 421.4 MB, free: 96.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009425/0.9296, allocations: 215 kB / 421.6 MB, free: 96.33 MB / 346.7 MB Notification: Performance of SimCode: time 1.463e-06/0.9296, allocations: 0 / 421.6 MB, free: 96.33 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1335/1.063, allocations: 45.22 MB / 466.9 MB, free: 51.05 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002814/1.063, allocations: 192.5 kB / 467 MB, free: 50.8 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.245/7.308, allocations: 0 / 467 MB, free: 50.8 MB / 346.7 MB