Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Media.Examples.WaterIF97.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.WaterIF97,fileNamePrefix="Modelica_3_2_2_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.935/1.935, allocations: 194.9 MB / 211.1 MB, free: 7.582 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004872/0.0004875, allocations: 12 kB / 264 MB, free: 2.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2934, allocations: 44.5 MB / 308.5 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.02032/0.3138, allocations: 11.03 MB / 319.6 MB, free: 1.586 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01915/0.333, allocations: 9.819 MB / 329.4 MB, free: 7.742 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.3332, allocations: 0 / 329.4 MB, free: 7.742 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003798/0.3336, allocations: 59.73 kB / 329.5 MB, free: 7.684 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003092/0.3339, allocations: 83.69 kB / 329.5 MB, free: 7.602 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01702/0.351, allocations: 3.907 MB / 333.4 MB, free: 3.684 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004741/0.3515, allocations: 175.6 kB / 333.6 MB, free: 3.512 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.632e-05/0.3516, allocations: 9.453 kB / 333.6 MB, free: 3.496 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007195/0.3523, allocations: 203.3 kB / 333.8 MB, free: 3.297 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.3525, allocations: 67.75 kB / 333.9 MB, free: 3.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.13e-05/0.3525, allocations: 8 kB / 333.9 MB, free: 3.223 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01931/0.3718, allocations: 6.801 MB / 340.7 MB, free: 12.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.372, allocations: 27.91 kB / 340.7 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.25e-05/0.3721, allocations: 53.58 kB / 340.8 MB, free: 12.33 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007163/0.3793, allocations: 2.561 MB / 343.3 MB, free: 9.762 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3793, allocations: 0 / 343.3 MB, free: 9.762 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.721e-06/0.3793, allocations: 3.984 kB / 343.3 MB, free: 9.758 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.3793, allocations: 0 / 343.3 MB, free: 9.758 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.007323/0.3867, allocations: 1.108 MB / 344.5 MB, free: 8.602 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.3867, allocations: 8.031 kB / 344.5 MB, free: 8.594 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001023/0.3869, allocations: 50.55 kB / 344.5 MB, free: 8.535 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006972/0.3876, allocations: 55.77 kB / 344.6 MB, free: 8.48 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003472/0.3879, allocations: 218.8 kB / 344.8 MB, free: 8.227 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.38e-05/0.388, allocations: 12.28 kB / 344.8 MB, free: 8.215 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.25e-05/0.3881, allocations: 16 kB / 344.8 MB, free: 8.199 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002048/0.3901, allocations: 394.4 kB / 345.2 MB, free: 7.785 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.3902, allocations: 4 kB / 345.2 MB, free: 7.781 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.408e-05/0.3903, allocations: 4 kB / 345.2 MB, free: 7.777 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.3903, allocations: 4 kB / 345.2 MB, free: 7.773 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002496/0.3928, allocations: 368.2 kB / 345.6 MB, free: 7.414 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.002119/0.3949, allocations: 1.2 MB / 346.8 MB, free: 6.113 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.3964, allocations: 292.3 kB / 347 MB, free: 5.801 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1693/0.5657, allocations: 47.88 MB / 394.9 MB, free: 312 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.643e-05/0.5658, allocations: 39.12 kB / 395 MB, free: 264 kB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.124e-06/0.5658, allocations: 0 / 395 MB, free: 264 kB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.01163/0.5775, allocations: 1.625 MB / 396.6 MB, free: 14.58 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.5776, allocations: 114.7 kB / 396.7 MB, free: 14.44 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.5777, allocations: 125.8 kB / 396.8 MB, free: 14.31 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.205e-05/0.5778, allocations: 29.7 kB / 396.9 MB, free: 14.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.06e-05/0.5779, allocations: 104.5 kB / 397 MB, free: 14.17 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.578, allocations: 122.3 kB / 397.1 MB, free: 14.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.411e-05/0.5781, allocations: 4 kB / 397.1 MB, free: 14.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.5782, allocations: 330.8 kB / 397.4 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007027/0.579, allocations: 139.9 kB / 397.5 MB, free: 13.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007768/0.5798, allocations: 198.7 kB / 397.7 MB, free: 13.36 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007298/0.5805, allocations: 151.9 kB / 397.9 MB, free: 13.21 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.5805, allocations: 0 / 397.9 MB, free: 13.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001929/0.5825, allocations: 426 kB / 398.3 MB, free: 12.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.5825, allocations: 8 kB / 398.3 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.5825, allocations: 3.938 kB / 398.3 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003894/0.5829, allocations: 44.98 kB / 398.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008563/0.5838, allocations: 87.88 kB / 398.4 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005187/0.5843, allocations: 0.5485 MB / 399 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005047/0.5849, allocations: 24.08 kB / 399 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.576e-05/0.585, allocations: 16 kB / 399 MB, free: 12.02 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002212/0.5852, allocations: 149.6 kB / 399.2 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.5853, allocations: 15.81 kB / 399.2 MB, free: 11.85 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003726/0.589, allocations: 1.455 MB / 400.6 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.504e-05/0.5891, allocations: 23.92 kB / 400.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.5892, allocations: 0 / 400.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.5892, allocations: 3.984 kB / 400.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00495/0.5941, allocations: 1.983 MB / 402.7 MB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/0.5942, allocations: 4 kB / 402.7 MB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008353/0.5951, allocations: 87.86 kB / 402.7 MB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006153/0.5957, allocations: 80.91 kB / 402.8 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.802e-05/0.5958, allocations: 11.94 kB / 402.8 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00058/0.5964, allocations: 0.5874 MB / 403.4 MB, free: 7.508 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.5964, allocations: 4.047 kB / 403.4 MB, free: 7.504 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00392/0.6003, allocations: 1.693 MB / 405.1 MB, free: 5.777 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.6005, allocations: 132.3 kB / 405.2 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.305e-05/0.6006, allocations: 16.03 kB / 405.3 MB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006088/0.6012, allocations: 19.98 kB / 405.3 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.6014, allocations: 39.91 kB / 405.3 MB, free: 5.555 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.946e-05/0.6014, allocations: 19.98 kB / 405.3 MB, free: 5.535 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.878e-05/0.6015, allocations: 87.28 kB / 405.4 MB, free: 5.449 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6016, allocations: 0 / 405.4 MB, free: 5.449 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003644/0.6052, allocations: 0.9566 MB / 406.4 MB, free: 4.492 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01132/0.6166, allocations: 3.277 MB / 409.7 MB, free: 1.168 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00223/0.6189, allocations: 0.6084 MB / 410.3 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.6189, allocations: 4.125 kB / 410.3 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001464/0.6204, allocations: 0.5129 MB / 410.8 MB, free: 48 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2431/0.8635, allocations: 68.81 kB / 410.9 MB, free: 99.53 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009184/0.8727, allocations: 2.702 MB / 413.6 MB, free: 98.71 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.8731, allocations: 0.8275 MB / 414.4 MB, free: 98.01 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006435/0.8737, allocations: 142.7 kB / 414.5 MB, free: 98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002993/0.8741, allocations: 126.1 kB / 414.6 MB, free: 97.92 MB / 346.7 MB Notification: Performance of SimCode: time 9.12e-07/0.8741, allocations: 0 / 414.6 MB, free: 97.92 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1212/0.9953, allocations: 40.36 MB / 455 MB, free: 61.32 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000227/0.9956, allocations: 185.8 kB / 455.2 MB, free: 61.08 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.619/6.614, allocations: 4.062 kB / 455.2 MB, free: 61.08 MB / 346.7 MB