Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.WaterIF97.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 1.717/1.717, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003526/0.0003529, allocations: 11.98 kB / 233.1 MB, free: 3.09 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07008/0.07046, allocations: 38.78 MB / 271.9 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01713/0.08764, allocations: 10.98 MB / 282.9 MB, free: 1.203 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01583/0.1035, allocations: 9.76 MB / 292.7 MB, free: 7.422 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.1037, allocations: 0 / 292.7 MB, free: 7.422 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003224/0.1041, allocations: 63.73 kB / 292.7 MB, free: 7.359 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002642/0.1043, allocations: 75.75 kB / 292.8 MB, free: 7.285 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01429/0.1186, allocations: 3.865 MB / 296.7 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003777/0.119, allocations: 171.7 kB / 296.8 MB, free: 3.242 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.83e-05/0.1191, allocations: 9.453 kB / 296.8 MB, free: 3.23 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005977/0.1197, allocations: 199.3 kB / 297 MB, free: 3.035 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.1199, allocations: 67.77 kB / 297.1 MB, free: 2.969 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.504e-05/0.1199, allocations: 4 kB / 297.1 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1978/0.3177, allocations: 6.713 MB / 303.8 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.424e-05/0.3178, allocations: 24.78 kB / 303.8 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.551e-05/0.3179, allocations: 50.39 kB / 303.9 MB, free: 11.59 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005781/0.3237, allocations: 2.547 MB / 306.4 MB, free: 11.5 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3237, allocations: 0 / 306.4 MB, free: 11.5 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.553e-06/0.3238, allocations: 0 / 306.4 MB, free: 11.5 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.561e-06/0.3238, allocations: 1.406 kB / 306.4 MB, free: 11.5 MB / 250.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.006109/0.3299, allocations: 1.104 MB / 307.5 MB, free: 10.91 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.33, allocations: 9 kB / 307.5 MB, free: 10.91 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006177/0.3306, allocations: 50.03 kB / 307.6 MB, free: 10.91 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002768/0.3309, allocations: 223.8 kB / 307.8 MB, free: 10.7 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.536e-05/0.3309, allocations: 15.16 kB / 307.8 MB, free: 10.7 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.444e-05/0.331, allocations: 12.53 kB / 307.8 MB, free: 10.7 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.3325, allocations: 394.5 kB / 308.2 MB, free: 10.6 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.3325, allocations: 1.469 kB / 308.2 MB, free: 10.6 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.671e-05/0.3326, allocations: 5.656 kB / 308.2 MB, free: 10.6 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.3326, allocations: 4.984 kB / 308.2 MB, free: 10.6 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001923/0.3345, allocations: 371.6 kB / 308.6 MB, free: 10.59 MB / 250.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.001449/0.336, allocations: 1.2 MB / 309.8 MB, free: 9.594 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.3372, allocations: 280.6 kB / 310.1 MB, free: 9.52 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.114/0.4512, allocations: 47.84 MB / 357.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.799e-05/0.4513, allocations: 42.69 kB / 358 MB, free: 12.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 3.237e-06/0.4513, allocations: 0 / 358 MB, free: 12.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.008697/0.46, allocations: 1.616 MB / 359.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.958e-05/0.4601, allocations: 109.1 kB / 359.7 MB, free: 10.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.4603, allocations: 124.1 kB / 359.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.32e-05/0.4604, allocations: 31.64 kB / 359.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.4605, allocations: 175.7 kB / 360 MB, free: 10.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.4606, allocations: 114.2 kB / 360.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.074e-05/0.4607, allocations: 7.562 kB / 360.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.4609, allocations: 325.1 kB / 360.4 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005143/0.4614, allocations: 136.9 kB / 360.6 MB, free: 9.699 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005702/0.462, allocations: 214.1 kB / 360.8 MB, free: 9.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005329/0.4625, allocations: 152.1 kB / 360.9 MB, free: 9.426 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.174e-06/0.4626, allocations: 0 / 360.9 MB, free: 9.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001524/0.4641, allocations: 435.9 kB / 361.4 MB, free: 9.113 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.4641, allocations: 7.953 kB / 361.4 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.4642, allocations: 4.219 kB / 361.4 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000333/0.4645, allocations: 40.7 kB / 361.4 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006075/0.4651, allocations: 90.41 kB / 361.5 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005657/0.4657, allocations: 0.5527 MB / 362.1 MB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003834/0.4661, allocations: 26.39 kB / 362.1 MB, free: 8.406 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.882e-05/0.4662, allocations: 15.25 kB / 362.1 MB, free: 8.395 MB / 298.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.0002153/0.4664, allocations: 143.3 kB / 362.2 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.4666, allocations: 13.47 kB / 362.2 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002933/0.4695, allocations: 1.462 MB / 363.7 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.512e-05/0.4696, allocations: 23.53 kB / 363.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.771e-06/0.4696, allocations: 3.125 kB / 363.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.4696, allocations: 3.984 kB / 363.7 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004015/0.4737, allocations: 1.983 MB / 365.7 MB, free: 5.848 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.4737, allocations: 0 / 365.7 MB, free: 5.848 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006276/0.4744, allocations: 94.42 kB / 365.8 MB, free: 5.762 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004782/0.4749, allocations: 78.75 kB / 365.9 MB, free: 5.695 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-05/0.4749, allocations: 11.58 kB / 365.9 MB, free: 5.688 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005586/0.4755, allocations: 0.5887 MB / 366.5 MB, free: 5.109 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.749e-06/0.4755, allocations: 0 / 366.5 MB, free: 5.109 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003025/0.4786, allocations: 1.705 MB / 368.2 MB, free: 3.914 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001476/0.4787, allocations: 129.8 kB / 368.3 MB, free: 3.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.662e-05/0.4788, allocations: 13.78 kB / 368.3 MB, free: 3.762 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004919/0.4793, allocations: 28.44 kB / 368.4 MB, free: 3.742 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.836e-05/0.4794, allocations: 34.61 kB / 368.4 MB, free: 3.715 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.494e-05/0.4795, allocations: 18.8 kB / 368.4 MB, free: 3.699 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.991e-05/0.4796, allocations: 82.91 kB / 368.5 MB, free: 3.621 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.9e-07/0.4796, allocations: 7.844 kB / 368.5 MB, free: 3.617 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.003771/0.4834, allocations: 0.9535 MB / 369.5 MB, free: 2.707 MB / 298.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.006684/0.4901, allocations: 1.129 MB / 370.6 MB, free: 1.695 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.4918, allocations: 0.6024 MB / 371.2 MB, free: 1.301 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.573e-06/0.4919, allocations: 0 / 371.2 MB, free: 1.301 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.4929, allocations: 0.5137 MB / 371.7 MB, free: 1.004 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007555/0.4937, allocations: 79.67 kB / 371.8 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.497, allocations: 1.59 MB / 373.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000588/0.4977, allocations: 0.8295 MB / 374.2 MB, free: 14.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000226/0.4979, allocations: 38.59 kB / 374.2 MB, free: 14.63 MB / 314.7 MB Notification: Performance of SimCode: time 1.622e-06/0.4979, allocations: 4 kB / 374.2 MB, free: 14.62 MB / 314.7 MB Notification: Performance of Templates: time 0.04823/0.5462, allocations: 24.83 MB / 399.1 MB, free: 5.949 MB / 330.7 MB