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/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.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.096/2.096, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.453e-05/1.46e-05, allocations: 4 kB / 303.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2673, allocations: 54.85 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1193/0.3866, allocations: 78.94 MB / 437 MB, free: 15.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.3869, allocations: 59.97 kB / 437 MB, free: 15.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007894/0.3948, allocations: 1.924 MB / 439 MB, free: 13.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.889e-06/0.3948, allocations: 0 / 439 MB, free: 13.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.805e-06/0.3949, allocations: 0 / 439 MB, free: 13.89 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.0003705/0.3952, allocations: 380 kB / 439.3 MB, free: 13.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.3953, allocations: 8.031 kB / 439.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.14e-05/0.3953, allocations: 7.953 kB / 439.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.3955, allocations: 159.1 kB / 439.5 MB, free: 13.26 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.3955, allocations: 0 / 439.5 MB, free: 13.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.109e-06/0.3955, allocations: 0 / 439.5 MB, free: 13.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.375e-05/0.3956, allocations: 4 kB / 439.5 MB, free: 13.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.778e-05/0.3956, allocations: 25.7 kB / 439.5 MB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.771e-06/0.3957, allocations: 0 / 439.5 MB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.695e-06/0.3957, allocations: 0 / 439.5 MB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.3957, allocations: 3.953 kB / 439.5 MB, free: 13.22 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001368/0.3958, allocations: 134.2 kB / 439.7 MB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.05e-05/0.3959, allocations: 18.52 kB / 439.7 MB, free: 13.03 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.716e-05/0.3959, allocations: 4.859 kB / 439.7 MB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.931e-06/0.3959, allocations: 0 / 439.7 MB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.249e-05/0.396, allocations: 64.36 kB / 439.7 MB, free: 12.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.007e-06/0.396, allocations: 0 / 439.7 MB, free: 12.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001908/0.3962, allocations: 33.61 kB / 439.8 MB, free: 12.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.045e-05/0.3963, allocations: 85.12 kB / 439.9 MB, free: 12.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.255e-05/0.3964, allocations: 89 kB / 440 MB, free: 12.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.3965, allocations: 25.7 kB / 440 MB, free: 12.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.315e-05/0.3966, allocations: 150.6 kB / 440.1 MB, free: 12.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.3966, allocations: 0 / 440.1 MB, free: 12.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.174e-06/0.3966, allocations: 0 / 440.1 MB, free: 12.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000211/0.3969, allocations: 318.8 kB / 440.4 MB, free: 12.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.389e-05/0.3969, allocations: 3.938 kB / 440.4 MB, free: 12.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.079e-05/0.3969, allocations: 11.94 kB / 440.5 MB, free: 12.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.682e-05/0.397, allocations: 0 / 440.5 MB, free: 12.19 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.18e-06/0.397, allocations: 0 / 440.5 MB, free: 12.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001575/0.3972, allocations: 33.7 kB / 440.5 MB, free: 12.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.246e-05/0.3973, allocations: 33.69 kB / 440.5 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.638e-06/0.3973, allocations: 0 / 440.5 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.3973, allocations: 0 / 440.5 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.467e-06/0.3973, allocations: 0 / 440.5 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.917e-06/0.3974, allocations: 0 / 440.5 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.561e-05/0.3974, allocations: 3.984 kB / 440.5 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.3975, allocations: 8.094 kB / 440.5 MB, free: 12.1 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.0001386/0.3976, allocations: 132.7 kB / 440.7 MB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.715e-05/0.3976, allocations: 0 / 440.7 MB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.653e-05/0.3977, allocations: 11.7 kB / 440.7 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.224e-06/0.3977, allocations: 0 / 440.7 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.3977, allocations: 3.984 kB / 440.7 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.59e-06/0.3977, allocations: 3.938 kB / 440.7 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001485/0.3979, allocations: 122.2 kB / 440.8 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.57e-06/0.3979, allocations: 0 / 440.8 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.489e-06/0.398, allocations: 7.953 kB / 440.8 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.765e-06/0.398, allocations: 4 kB / 440.8 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.398, allocations: 4 kB / 440.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-06/0.398, allocations: 7.938 kB / 440.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.398, allocations: 0 / 440.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001927/0.3983, allocations: 57.12 kB / 440.9 MB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.011e-05/0.3984, allocations: 77.11 kB / 441 MB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.3984, allocations: 7.953 kB / 441 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.401e-05/0.3984, allocations: 4.031 kB / 441 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.972e-05/0.3985, allocations: 0 / 441 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.3985, allocations: 7.984 kB / 441 MB, free: 11.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.387e-05/0.3986, allocations: 75.28 kB / 441 MB, free: 11.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-06/0.3986, allocations: 0 / 441 MB, free: 11.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006789/0.3993, allocations: 47.92 kB / 441.1 MB, free: 11.46 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.00088/0.4002, allocations: 226.7 kB / 441.3 MB, free: 11.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001436/0.4004, allocations: 59.34 kB / 441.4 MB, free: 11.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.289e-06/0.4004, allocations: 0 / 441.4 MB, free: 11.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.038e-05/0.4005, allocations: 63.45 kB / 441.4 MB, free: 11.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001909/0.4007, allocations: 0 / 441.4 MB, free: 11.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002399/0.401, allocations: 73.72 kB / 441.5 MB, free: 10.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.4015, allocations: 0.6768 MB / 442.2 MB, free: 10.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.793e-05/0.4015, allocations: 7.438 kB / 442.2 MB, free: 10.28 MB / 378.7 MB Notification: Performance of SimCode: time 1.741e-06/0.4016, allocations: 0 / 442.2 MB, free: 10.28 MB / 378.7 MB Notification: Performance of Templates: time 0.005044/0.4066, allocations: 1.095 MB / 443.3 MB, free: 9.188 MB / 378.7 MB