Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices2b.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.Math.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices2b") Notification: Performance of loadModel(ModelicaTest): time 2.203/2.203, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.208e-05/1.21e-05, allocations: 0 / 303.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2715, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1273/0.3988, allocations: 83.02 MB / 441.1 MB, free: 11.81 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.399, allocations: 63.97 kB / 441.1 MB, free: 11.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1023/0.5013, allocations: 25.27 MB / 466.4 MB, free: 2.438 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5014, allocations: 0 / 466.4 MB, free: 2.438 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.596e-06/0.5014, allocations: 0 / 466.4 MB, free: 2.438 MB / 394.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.0006695/0.5021, allocations: 432 kB / 466.8 MB, free: 1.965 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.5021, allocations: 12.03 kB / 466.8 MB, free: 1.953 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.903e-05/0.5022, allocations: 4 kB / 466.8 MB, free: 1.949 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.5023, allocations: 159.1 kB / 467 MB, free: 1.754 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.5023, allocations: 0 / 467 MB, free: 1.754 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.217e-06/0.5023, allocations: 0 / 467 MB, free: 1.754 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.902e-05/0.5024, allocations: 3.938 kB / 467 MB, free: 1.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.784e-05/0.5025, allocations: 33.69 kB / 467 MB, free: 1.711 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.657e-06/0.5025, allocations: 3.953 kB / 467 MB, free: 1.707 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.471e-06/0.5025, allocations: 0 / 467 MB, free: 1.707 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.291e-06/0.5025, allocations: 0 / 467 MB, free: 1.707 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001367/0.5027, allocations: 130.2 kB / 467.1 MB, free: 1.543 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.189e-05/0.5027, allocations: 18.61 kB / 467.2 MB, free: 1.516 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.602e-05/0.5027, allocations: 4.859 kB / 467.2 MB, free: 1.508 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.278e-06/0.5028, allocations: 0 / 467.2 MB, free: 1.508 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.656e-05/0.5028, allocations: 60.2 kB / 467.2 MB, free: 1.434 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 3.949e-06/0.5028, allocations: 4.062 kB / 467.2 MB, free: 1.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001684/0.503, allocations: 37.62 kB / 467.3 MB, free: 1.387 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.5031, allocations: 85.14 kB / 467.4 MB, free: 1.285 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.112e-05/0.5031, allocations: 85 kB / 467.4 MB, free: 1.195 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.5032, allocations: 25.7 kB / 467.5 MB, free: 1.164 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.274e-05/0.5033, allocations: 150.6 kB / 467.6 MB, free: 1.016 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.5033, allocations: 4 kB / 467.6 MB, free: 1.012 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.534e-06/0.5033, allocations: 0 / 467.6 MB, free: 1.012 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.5035, allocations: 314.8 kB / 467.9 MB, free: 0.6953 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.576e-06/0.5035, allocations: 0 / 467.9 MB, free: 0.6953 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.601e-06/0.5035, allocations: 4 kB / 467.9 MB, free: 0.6914 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.699e-05/0.5035, allocations: 4 kB / 467.9 MB, free: 0.6875 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.089e-06/0.5036, allocations: 0 / 467.9 MB, free: 0.6875 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.703e-05/0.5037, allocations: 37.62 kB / 468 MB, free: 0.6445 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.206e-05/0.5037, allocations: 37.7 kB / 468 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.212e-06/0.5037, allocations: 0 / 468 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.5038, allocations: 0 / 468 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.571e-06/0.5038, allocations: 0 / 468 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.996e-06/0.5038, allocations: 0 / 468 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.512e-05/0.5038, allocations: 3.938 kB / 468 MB, free: 0.5977 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.186e-06/0.5038, allocations: 4.094 kB / 468 MB, free: 0.5938 MB / 394.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.0001038/0.5039, allocations: 138.6 kB / 468.1 MB, free: 456 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.07e-05/0.504, allocations: 0 / 468.1 MB, free: 456 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.254e-05/0.504, allocations: 7.734 kB / 468.2 MB, free: 452 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-06/0.504, allocations: 0 / 468.2 MB, free: 452 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.358e-06/0.504, allocations: 0 / 468.2 MB, free: 452 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.477e-06/0.504, allocations: 4 kB / 468.2 MB, free: 448 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001039/0.5041, allocations: 126.2 kB / 468.3 MB, free: 284 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.817e-06/0.5041, allocations: 0 / 468.3 MB, free: 284 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.316e-06/0.5041, allocations: 4 kB / 468.3 MB, free: 280 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-05/0.5042, allocations: 3.984 kB / 468.3 MB, free: 276 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.316e-06/0.5042, allocations: 0 / 468.3 MB, free: 276 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.772e-06/0.5042, allocations: 0 / 468.3 MB, free: 276 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.283e-06/0.5042, allocations: 8 kB / 468.3 MB, free: 268 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001263/0.5044, allocations: 65.03 kB / 468.4 MB, free: 184 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.796e-05/0.5044, allocations: 81.09 kB / 468.4 MB, free: 84 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.5044, allocations: 0 / 468.4 MB, free: 84 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.452e-05/0.5045, allocations: 11.97 kB / 468.5 MB, free: 72 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.154e-05/0.5045, allocations: 0 / 468.5 MB, free: 72 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.523e-06/0.5045, allocations: 0 / 468.5 MB, free: 72 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.2797/0.7842, allocations: 75.28 kB / 468.5 MB, free: 102.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.335e-06/0.7842, allocations: 0 / 468.5 MB, free: 102.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008655/0.7851, allocations: 198.7 kB / 468.7 MB, free: 102.2 MB / 394.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.001176/0.7863, allocations: 378.8 kB / 469.1 MB, free: 102.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.677e-05/0.7864, allocations: 57.56 kB / 469.1 MB, free: 102.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.874e-06/0.7864, allocations: 0.5938 kB / 469.1 MB, free: 102.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.541e-05/0.7865, allocations: 57.11 kB / 469.2 MB, free: 102 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.71e-05/0.7866, allocations: 4.891 kB / 469.2 MB, free: 102 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001387/0.7867, allocations: 84.17 kB / 469.3 MB, free: 101.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.7869, allocations: 0.6756 MB / 470 MB, free: 101.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.191e-05/0.7869, allocations: 9.219 kB / 470 MB, free: 101.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.491e-06/0.7869, allocations: 0 / 470 MB, free: 101.2 MB / 394.7 MB Notification: Performance of Templates: time 0.01035/0.7972, allocations: 4.429 MB / 474.4 MB, free: 100.9 MB / 394.7 MB