Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestInternal.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadModel(ModelicaTest): time 2.222/2.222, allocations: 235.1 MB / 243 MB, free: 9.504 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.237e-05/1.284e-05, allocations: 0 / 303.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2719, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1212/0.3931, allocations: 79.04 MB / 437.1 MB, free: 15.79 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/0.3934, allocations: 67.95 kB / 437.1 MB, free: 15.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005872/0.3993, allocations: 1.644 MB / 438.8 MB, free: 14.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.856e-06/0.3993, allocations: 0 / 438.8 MB, free: 14.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.384e-06/0.3993, allocations: 0 / 438.8 MB, free: 14.08 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003327/0.3997, allocations: 366.9 kB / 439.1 MB, free: 13.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3997, allocations: 12.03 kB / 439.1 MB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.19e-05/0.3998, allocations: 7.938 kB / 439.2 MB, free: 13.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.3999, allocations: 159.1 kB / 439.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.3999, allocations: 0 / 439.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.098e-05/0.4, allocations: 0 / 439.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.274e-05/0.4, allocations: 0 / 439.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.651e-05/0.4001, allocations: 33.64 kB / 439.3 MB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.4001, allocations: 0 / 439.3 MB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.249e-06/0.4001, allocations: 4 kB / 439.3 MB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.96e-06/0.4001, allocations: 7.891 kB / 439.4 MB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001352/0.4003, allocations: 126.2 kB / 439.5 MB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.256e-05/0.4003, allocations: 18.61 kB / 439.5 MB, free: 13.22 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.6e-05/0.4003, allocations: 4.859 kB / 439.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.617e-06/0.4004, allocations: 0 / 439.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.161e-05/0.4004, allocations: 60.27 kB / 439.6 MB, free: 13.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.779e-06/0.4004, allocations: 8.062 kB / 439.6 MB, free: 13.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001681/0.4006, allocations: 33.64 kB / 439.6 MB, free: 13.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.4007, allocations: 77.11 kB / 439.7 MB, free: 13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.993e-05/0.4007, allocations: 92.89 kB / 439.8 MB, free: 12.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.4008, allocations: 25.7 kB / 439.8 MB, free: 12.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.103e-05/0.4009, allocations: 150.6 kB / 439.9 MB, free: 12.72 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.4009, allocations: 4 kB / 439.9 MB, free: 12.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.884e-06/0.4009, allocations: 0 / 439.9 MB, free: 12.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.4011, allocations: 318.8 kB / 440.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.197e-05/0.4011, allocations: 4 kB / 440.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.947e-06/0.4011, allocations: 0 / 440.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.49e-05/0.4012, allocations: 4 kB / 440.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.109e-06/0.4012, allocations: 0 / 440.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.048e-05/0.4013, allocations: 29.7 kB / 440.3 MB, free: 12.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/0.4013, allocations: 37.69 kB / 440.3 MB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.563e-06/0.4013, allocations: 0 / 440.3 MB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.4014, allocations: 0 / 440.3 MB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.565e-06/0.4014, allocations: 8.031 kB / 440.3 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.436e-06/0.4014, allocations: 0 / 440.3 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.619e-05/0.4014, allocations: 0 / 440.3 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-06/0.4014, allocations: 0 / 440.3 MB, free: 12.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001061/0.4015, allocations: 134.6 kB / 440.5 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.951e-06/0.4016, allocations: 0 / 440.5 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.126e-05/0.4016, allocations: 7.703 kB / 440.5 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.1e-06/0.4016, allocations: 0 / 440.5 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.355e-06/0.4016, allocations: 0 / 440.5 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.716e-06/0.4016, allocations: 7.938 kB / 440.5 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001032/0.4017, allocations: 130.2 kB / 440.6 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.7e-06/0.4018, allocations: 0 / 440.6 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.296e-06/0.4018, allocations: 7.953 kB / 440.6 MB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.496e-06/0.4018, allocations: 3.938 kB / 440.6 MB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.843e-06/0.4018, allocations: 0 / 440.6 MB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.92e-06/0.4018, allocations: 4 kB / 440.6 MB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.225e-06/0.4018, allocations: 3.984 kB / 440.6 MB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001207/0.4019, allocations: 65.12 kB / 440.7 MB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.831e-05/0.402, allocations: 77.11 kB / 440.8 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.402, allocations: 3.953 kB / 440.8 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.714e-05/0.4021, allocations: 4 kB / 440.8 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.409e-05/0.4021, allocations: 3.938 kB / 440.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.523e-06/0.4021, allocations: 0 / 440.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.383e-05/0.4022, allocations: 79.28 kB / 440.9 MB, free: 11.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.43e-07/0.4022, allocations: 0 / 440.9 MB, free: 11.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003011/0.4025, allocations: 31.97 kB / 440.9 MB, free: 11.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0006841/0.4032, allocations: 282 kB / 441.2 MB, free: 11.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001004/0.4033, allocations: 59.41 kB / 441.2 MB, free: 11.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.664e-06/0.4033, allocations: 0 / 441.2 MB, free: 11.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.443e-05/0.4034, allocations: 55.34 kB / 441.3 MB, free: 11.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.893e-05/0.4035, allocations: 7.938 kB / 441.3 MB, free: 11.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001543/0.4036, allocations: 69.77 kB / 441.4 MB, free: 11.17 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.404, allocations: 0.669 MB / 442 MB, free: 10.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.139e-05/0.404, allocations: 11.44 kB / 442 MB, free: 10.46 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/0.404, allocations: 4.125 kB / 442 MB, free: 10.46 MB / 378.7 MB Notification: Performance of Templates: time 0.002878/0.4069, allocations: 0.9714 MB / 443 MB, free: 9.488 MB / 378.7 MB