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.TestFiles.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadModel(ModelicaTest): time 2.227/2.227, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004317/0.0004318, allocations: 16 kB / 314.4 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2737, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1191/0.3928, allocations: 79.71 MB / 449 MB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.3931, allocations: 63.97 kB / 449 MB, free: 10.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007879/0.401, allocations: 1.94 MB / 451 MB, free: 8.887 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.366e-06/0.401, allocations: 0 / 451 MB, free: 8.887 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.128e-06/0.401, allocations: 0 / 451 MB, free: 8.887 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.000371/0.4014, allocations: 365.1 kB / 451.3 MB, free: 8.477 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.4014, allocations: 8.031 kB / 451.3 MB, free: 8.469 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.863e-05/0.4015, allocations: 7.953 kB / 451.3 MB, free: 8.461 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.4016, allocations: 163.1 kB / 451.5 MB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.4016, allocations: 4 kB / 451.5 MB, free: 8.258 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.4017, allocations: 0 / 451.5 MB, free: 8.258 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.305e-05/0.4018, allocations: 37.62 kB / 451.5 MB, free: 8.215 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.557e-06/0.4018, allocations: 0 / 451.5 MB, free: 8.215 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.758e-06/0.4018, allocations: 0 / 451.5 MB, free: 8.215 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.4018, allocations: 3.938 kB / 451.5 MB, free: 8.211 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.253e-05/0.4018, allocations: 11.89 kB / 451.6 MB, free: 8.199 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001525/0.402, allocations: 149.7 kB / 451.7 MB, free: 8.004 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.441e-05/0.4021, allocations: 14.58 kB / 451.7 MB, free: 7.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.505e-06/0.4021, allocations: 96 / 451.7 MB, free: 7.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.332e-05/0.4021, allocations: 64.27 kB / 451.8 MB, free: 7.902 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.722e-06/0.4022, allocations: 3.938 kB / 451.8 MB, free: 7.898 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001663/0.4023, allocations: 63.31 kB / 451.8 MB, free: 7.824 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/0.4024, allocations: 85.22 kB / 451.9 MB, free: 7.723 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.687e-05/0.4025, allocations: 85 kB / 452 MB, free: 7.633 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/0.4025, allocations: 25.7 kB / 452 MB, free: 7.602 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.988e-05/0.4026, allocations: 150.6 kB / 452.2 MB, free: 7.453 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.4026, allocations: 0 / 452.2 MB, free: 7.453 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.639e-06/0.4026, allocations: 0 / 452.2 MB, free: 7.453 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.4028, allocations: 322.8 kB / 452.5 MB, free: 7.129 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.979e-06/0.4028, allocations: 0 / 452.5 MB, free: 7.129 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.059e-06/0.4028, allocations: 0 / 452.5 MB, free: 7.129 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.289e-05/0.4029, allocations: 33.77 kB / 452.5 MB, free: 7.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.192e-06/0.4029, allocations: 0 / 452.5 MB, free: 7.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001038/0.403, allocations: 63.33 kB / 452.6 MB, free: 7.016 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.727e-05/0.403, allocations: 33.7 kB / 452.6 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.4031, allocations: 0 / 452.6 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.4031, allocations: 0 / 452.6 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.509e-06/0.4031, allocations: 0 / 452.6 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.327e-06/0.4031, allocations: 0 / 452.6 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.64e-05/0.4031, allocations: 0 / 452.6 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.571e-06/0.4031, allocations: 4 kB / 452.6 MB, free: 6.973 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 () * Number of clocked 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.0001102/0.4033, allocations: 145.6 kB / 452.8 MB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.28e-05/0.4033, allocations: 3.984 kB / 452.8 MB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.31e-05/0.4033, allocations: 3.125 kB / 452.8 MB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.122e-06/0.4033, allocations: 8 kB / 452.8 MB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.701e-06/0.4033, allocations: 0 / 452.8 MB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.512e-06/0.4033, allocations: 0 / 452.8 MB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001332/0.4035, allocations: 145.6 kB / 452.9 MB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.4035, allocations: 0 / 452.9 MB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.196e-06/0.4035, allocations: 0 / 452.9 MB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.4035, allocations: 4 kB / 452.9 MB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.4035, allocations: 11.92 kB / 452.9 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.675e-06/0.4036, allocations: 0 / 452.9 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.387e-06/0.4036, allocations: 0 / 452.9 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001298/0.4037, allocations: 94.73 kB / 453 MB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.835e-05/0.4038, allocations: 81.09 kB / 453.1 MB, free: 6.379 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.4038, allocations: 3.938 kB / 453.1 MB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.246e-05/0.4038, allocations: 32 / 453.1 MB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.47e-05/0.4038, allocations: 4 kB / 453.1 MB, free: 6.371 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.453e-06/0.4039, allocations: 4 kB / 453.1 MB, free: 6.367 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.008e-05/0.4039, allocations: 75.28 kB / 453.2 MB, free: 6.293 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.48e-07/0.4039, allocations: 0 / 453.2 MB, free: 6.293 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003426/0.4043, allocations: 51.97 kB / 453.3 MB, free: 6.242 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) * Number of clocked states: 0 () * 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.0005573/0.4048, allocations: 238.5 kB / 453.5 MB, free: 6.027 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.828e-05/0.4049, allocations: 59.34 kB / 453.5 MB, free: 5.957 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.553e-06/0.405, allocations: 0 / 453.5 MB, free: 5.957 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.046e-05/0.405, allocations: 55.41 kB / 453.6 MB, free: 5.891 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.342e-05/0.4051, allocations: 0 / 453.6 MB, free: 5.891 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002011/0.4053, allocations: 116.5 kB / 453.7 MB, free: 5.742 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.4057, allocations: 0.6692 MB / 454.4 MB, free: 5.047 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.184e-05/0.4057, allocations: 7.438 kB / 454.4 MB, free: 5.039 MB / 378.7 MB Notification: Performance of SimCode: time 1.488e-06/0.4057, allocations: 0 / 454.4 MB, free: 5.039 MB / 378.7 MB Notification: Performance of Templates: time 0.003186/0.4089, allocations: 1.082 MB / 455.5 MB, free: 3.957 MB / 378.7 MB