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.TestMatrices.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.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices") Notification: Performance of loadModel(ModelicaTest): time 2.345/2.345, allocations: 234.9 MB / 250.5 MB, free: 9.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005128/0.0005131, allocations: 16 kB / 314.3 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3171, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0009924/0.3182, allocations: 216.5 kB / 369.4 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004807/0.3231, allocations: 1.506 MB / 370.9 MB, free: 8.973 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.893e-05/0.3231, allocations: 0 / 370.9 MB, free: 8.973 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.422e-05/0.3232, allocations: 0 / 370.9 MB, free: 8.973 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.132e-06/0.3232, allocations: 0 / 370.9 MB, free: 8.973 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001624/0.3248, allocations: 235.4 kB / 371.1 MB, free: 8.742 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.243e-05/0.3249, allocations: 0 / 371.1 MB, free: 8.742 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.434e-05/0.325, allocations: 4 kB / 371.1 MB, free: 8.738 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.666e-05/0.325, allocations: 3.984 kB / 371.1 MB, free: 8.734 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.112e-05/0.3251, allocations: 0 / 371.1 MB, free: 8.734 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.776e-06/0.3251, allocations: 0 / 371.1 MB, free: 8.734 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001023/0.3262, allocations: 423.3 kB / 371.6 MB, free: 8.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.116e-06/0.3262, allocations: 0 / 371.6 MB, free: 8.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.337e-05/0.3262, allocations: 25.7 kB / 371.6 MB, free: 8.289 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003879/0.3266, allocations: 215.7 kB / 371.8 MB, free: 8.078 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.079e-06/0.3267, allocations: 0 / 371.8 MB, free: 8.078 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3267, allocations: 0 / 371.8 MB, free: 8.078 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.26e-06/0.3267, allocations: 0 / 371.8 MB, free: 8.078 MB / 298.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.0003973/0.3271, allocations: 380.9 kB / 372.2 MB, free: 7.652 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.3271, allocations: 16.03 kB / 372.2 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.729e-05/0.3272, allocations: 0 / 372.2 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.3273, allocations: 159.1 kB / 372.3 MB, free: 7.441 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.3273, allocations: 0 / 372.3 MB, free: 7.441 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.981e-06/0.3273, allocations: 0 / 372.3 MB, free: 7.441 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.793e-05/0.3274, allocations: 33.69 kB / 372.4 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.3275, allocations: 3.953 kB / 372.4 MB, free: 7.398 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.396e-06/0.3275, allocations: 0 / 372.4 MB, free: 7.398 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.043e-06/0.3275, allocations: 0 / 372.4 MB, free: 7.398 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.981e-05/0.3275, allocations: 4 kB / 372.4 MB, free: 7.395 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001649/0.3277, allocations: 145.7 kB / 372.5 MB, free: 7.203 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.531e-05/0.3278, allocations: 22.52 kB / 372.5 MB, free: 7.172 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.037e-06/0.3278, allocations: 0 / 372.5 MB, free: 7.172 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.381e-05/0.3279, allocations: 68.34 kB / 372.6 MB, free: 7.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.782e-06/0.3279, allocations: 0 / 372.6 MB, free: 7.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.000246/0.3281, allocations: 63.36 kB / 372.7 MB, free: 7.016 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.3283, allocations: 85.17 kB / 372.7 MB, free: 6.914 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.698e-05/0.3284, allocations: 89.86 kB / 372.8 MB, free: 6.816 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.755e-05/0.3284, allocations: 29.7 kB / 372.9 MB, free: 6.781 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.3286, allocations: 150.6 kB / 373 MB, free: 6.633 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.098e-05/0.3287, allocations: 0 / 373 MB, free: 6.633 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.627e-06/0.3287, allocations: 3.938 kB / 373 MB, free: 6.629 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002649/0.329, allocations: 318.8 kB / 373.3 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.901e-05/0.329, allocations: 0 / 373.3 MB, free: 6.309 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.4e-05/0.3291, allocations: 0 / 373.3 MB, free: 6.309 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.685e-05/0.3291, allocations: 33.77 kB / 373.4 MB, free: 6.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.658e-06/0.3292, allocations: 0 / 373.4 MB, free: 6.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001955/0.3294, allocations: 55.41 kB / 373.4 MB, free: 6.203 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.312e-05/0.3295, allocations: 41.69 kB / 373.5 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.342e-06/0.3295, allocations: 0 / 373.5 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/0.3296, allocations: 0 / 373.5 MB, free: 6.156 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.739e-06/0.3296, allocations: 3.938 kB / 373.5 MB, free: 6.152 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/0.3296, allocations: 7.938 kB / 373.5 MB, free: 6.145 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.076e-05/0.3297, allocations: 0 / 373.5 MB, free: 6.145 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.3297, allocations: 8.031 kB / 373.5 MB, free: 6.137 MB / 298.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.0001861/0.3299, allocations: 135.5 kB / 373.6 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.152e-05/0.33, allocations: 0 / 373.6 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.479e-05/0.33, allocations: 3.125 kB / 373.6 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.33, allocations: 4 kB / 373.6 MB, free: 5.984 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.326e-06/0.3301, allocations: 0 / 373.6 MB, free: 5.984 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.491e-05/0.3301, allocations: 7.938 kB / 373.6 MB, free: 5.977 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002289/0.3303, allocations: 141.7 kB / 373.8 MB, free: 5.789 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.162e-06/0.3304, allocations: 0 / 373.8 MB, free: 5.789 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.331e-06/0.3304, allocations: 0 / 373.8 MB, free: 5.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.3304, allocations: 4 kB / 373.8 MB, free: 5.785 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.3304, allocations: 4 kB / 373.8 MB, free: 5.781 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.3305, allocations: 0 / 373.8 MB, free: 5.781 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.935e-06/0.3305, allocations: 3.984 kB / 373.8 MB, free: 5.777 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002347/0.3307, allocations: 94.78 kB / 373.9 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.964e-05/0.3309, allocations: 77.11 kB / 373.9 MB, free: 5.566 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.742e-05/0.3309, allocations: 0 / 373.9 MB, free: 5.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.871e-05/0.331, allocations: 4.031 kB / 373.9 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.965e-05/0.331, allocations: 7.984 kB / 373.9 MB, free: 5.555 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.331, allocations: 7.938 kB / 374 MB, free: 5.547 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.119e-05/0.3311, allocations: 75.28 kB / 374 MB, free: 5.473 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.184e-06/0.3312, allocations: 0 / 374 MB, free: 5.473 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009412/0.3321, allocations: 60 kB / 374.1 MB, free: 5.414 MB / 298.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.001046/0.3332, allocations: 195.6 kB / 374.3 MB, free: 5.227 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001859/0.3334, allocations: 59.41 kB / 374.3 MB, free: 5.156 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.312e-06/0.3334, allocations: 0 / 374.3 MB, free: 5.156 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.049e-05/0.3336, allocations: 59.47 kB / 374.4 MB, free: 5.086 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.3338, allocations: 15.83 kB / 374.4 MB, free: 5.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003394/0.3342, allocations: 101.2 kB / 374.5 MB, free: 4.941 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005903/0.3348, allocations: 0.677 MB / 375.2 MB, free: 4.238 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.2e-05/0.3348, allocations: 7.438 kB / 375.2 MB, free: 4.23 MB / 298.7 MB Notification: Performance of SimCode: time 2.407e-06/0.3349, allocations: 0 / 375.2 MB, free: 4.23 MB / 298.7 MB Notification: Performance of Templates: time 0.007392/0.3423, allocations: 1.327 MB / 376.5 MB, free: 2.902 MB / 298.7 MB