Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Examples.WaterIF97.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 1.89/1.89, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003438/0.000344, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07797/0.07834, allocations: 44.51 MB / 308.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01742/0.09581, allocations: 11.03 MB / 319.4 MB, free: 5.977 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01643/0.1123, allocations: 9.822 MB / 329.2 MB, free: 12.13 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.1125, allocations: 0 / 329.2 MB, free: 12.13 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003182/0.1128, allocations: 63.8 kB / 329.3 MB, free: 12.07 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002751/0.1131, allocations: 83.75 kB / 329.3 MB, free: 11.99 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01386/0.127, allocations: 3.904 MB / 333.2 MB, free: 8.074 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003664/0.1274, allocations: 171.7 kB / 333.4 MB, free: 7.906 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.246e-05/0.1274, allocations: 9.453 kB / 333.4 MB, free: 7.891 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005787/0.128, allocations: 207.2 kB / 333.6 MB, free: 7.688 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.1282, allocations: 63.77 kB / 333.7 MB, free: 7.625 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.411e-05/0.1282, allocations: 4 kB / 333.7 MB, free: 7.621 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01588/0.1441, allocations: 6.809 MB / 340.5 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.306e-05/0.1443, allocations: 19.92 kB / 340.5 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.152e-05/0.1444, allocations: 53.64 kB / 340.6 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005936/0.1503, allocations: 2.573 MB / 343.1 MB, free: 14.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1504, allocations: 4 kB / 343.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.778e-06/0.1504, allocations: 0 / 343.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.403e-06/0.1504, allocations: 0 / 343.1 MB, free: 14.14 MB / 298.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.005161/0.1556, allocations: 1.1 MB / 344.2 MB, free: 13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.1556, allocations: 8.031 kB / 344.3 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000718/0.1564, allocations: 63.77 kB / 344.3 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.1569, allocations: 222.8 kB / 344.5 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.171e-05/0.157, allocations: 8.281 kB / 344.5 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.1571, allocations: 16 kB / 344.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002739/0.1599, allocations: 390.5 kB / 344.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.869e-05/0.16, allocations: 7.953 kB / 344.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.633e-05/0.1601, allocations: 11.98 kB / 345 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.964e-05/0.1601, allocations: 4 kB / 345 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003374/0.1635, allocations: 368.2 kB / 345.3 MB, free: 11.85 MB / 298.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.002925/0.1665, allocations: 1.185 MB / 346.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001852/0.1684, allocations: 292.3 kB / 346.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3469/0.5153, allocations: 47.87 MB / 394.7 MB, free: 47.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.5154, allocations: 49.11 kB / 394.7 MB, free: 47.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.369e-06/0.5154, allocations: 0 / 394.7 MB, free: 47.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.007628/0.5231, allocations: 1.609 MB / 396.3 MB, free: 46.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.5231, allocations: 110.9 kB / 396.4 MB, free: 45.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.082e-05/0.5232, allocations: 117.8 kB / 396.5 MB, free: 45.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.6e-05/0.5233, allocations: 33.7 kB / 396.6 MB, free: 45.72 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.004e-05/0.5233, allocations: 168.6 kB / 396.7 MB, free: 45.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.806e-05/0.5234, allocations: 117.2 kB / 396.9 MB, free: 45.44 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.829e-05/0.5235, allocations: 8 kB / 396.9 MB, free: 45.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.519e-05/0.5235, allocations: 322.8 kB / 397.2 MB, free: 45.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004511/0.524, allocations: 143.9 kB / 397.3 MB, free: 44.97 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004647/0.5245, allocations: 205.6 kB / 397.5 MB, free: 44.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004593/0.5249, allocations: 155.7 kB / 397.7 MB, free: 44.6 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.516e-06/0.525, allocations: 0 / 397.7 MB, free: 44.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001259/0.5262, allocations: 430.8 kB / 398.1 MB, free: 44.17 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.5263, allocations: 10.58 kB / 398.1 MB, free: 44.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.358e-06/0.5263, allocations: 0 / 398.1 MB, free: 44.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002791/0.5266, allocations: 41.59 kB / 398.1 MB, free: 44.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005302/0.5271, allocations: 91.88 kB / 398.2 MB, free: 44.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003036/0.5274, allocations: 0.5445 MB / 398.8 MB, free: 43.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003275/0.5278, allocations: 40 kB / 398.8 MB, free: 43.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.263e-05/0.5279, allocations: 11.38 kB / 398.8 MB, free: 43.41 MB / 314.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.0001407/0.528, allocations: 141.1 kB / 399 MB, free: 43.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.5281, allocations: 11.91 kB / 399 MB, free: 43.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002306/0.5305, allocations: 1.458 MB / 400.4 MB, free: 41.79 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-05/0.5305, allocations: 19.97 kB / 400.5 MB, free: 41.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.259e-06/0.5305, allocations: 3.953 kB / 400.5 MB, free: 41.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.88e-06/0.5305, allocations: 4 kB / 400.5 MB, free: 41.76 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00309/0.5336, allocations: 2.001 MB / 402.5 MB, free: 39.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.15e-06/0.5337, allocations: 3.938 kB / 402.5 MB, free: 39.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005133/0.5342, allocations: 84.06 kB / 402.5 MB, free: 39.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004105/0.5346, allocations: 80.62 kB / 402.6 MB, free: 39.54 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.234e-05/0.5347, allocations: 15.98 kB / 402.6 MB, free: 39.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003002/0.535, allocations: 0.5875 MB / 403.2 MB, free: 38.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.085e-06/0.535, allocations: 4.031 kB / 403.2 MB, free: 38.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002328/0.5373, allocations: 1.701 MB / 404.9 MB, free: 37.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.506e-05/0.5374, allocations: 120.5 kB / 405.1 MB, free: 37.04 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.603e-05/0.5375, allocations: 9.062 kB / 405.1 MB, free: 37.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004617/0.538, allocations: 32.02 kB / 405.1 MB, free: 37 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.149e-05/0.538, allocations: 31.86 kB / 405.1 MB, free: 36.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.141e-05/0.5381, allocations: 23.59 kB / 405.1 MB, free: 36.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.52e-05/0.5382, allocations: 91.27 kB / 405.2 MB, free: 36.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.73e-07/0.5382, allocations: 0 / 405.2 MB, free: 36.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002413/0.5406, allocations: 0.9528 MB / 406.2 MB, free: 35.98 MB / 314.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.004224/0.5448, allocations: 1.138 MB / 407.3 MB, free: 34.99 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001361/0.5462, allocations: 0.6066 MB / 407.9 MB, free: 34.39 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.949e-06/0.5462, allocations: 4.125 kB / 407.9 MB, free: 34.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008659/0.5471, allocations: 0.5167 MB / 408.5 MB, free: 33.87 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006733/0.5478, allocations: 67.38 kB / 408.5 MB, free: 33.8 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002507/0.5503, allocations: 1.593 MB / 410.1 MB, free: 32.17 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.5506, allocations: 0.8334 MB / 410.9 MB, free: 31.31 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000172/0.5508, allocations: 35.42 kB / 411 MB, free: 31.28 MB / 314.7 MB Notification: Performance of SimCode: time 1.457e-06/0.5508, allocations: 0 / 411 MB, free: 31.28 MB / 314.7 MB Notification: Performance of Templates: time 0.03553/0.5863, allocations: 24.99 MB / 436 MB, free: 6.25 MB / 314.7 MB