Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestSpeed.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.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadModel(ModelicaTest): time 2.219/2.219, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004338/0.000434, allocations: 8 kB / 314.3 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2826, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003263/0.2859, allocations: 2.074 MB / 371.3 MB, free: 8.617 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.2873, allocations: 0.6598 MB / 371.9 MB, free: 7.953 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001841/0.2875, allocations: 7.938 kB / 371.9 MB, free: 7.945 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.27e-05/0.2876, allocations: 31.77 kB / 372 MB, free: 7.914 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002775/0.2879, allocations: 95.73 kB / 372 MB, free: 7.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002621/0.2882, allocations: 63.92 kB / 372.1 MB, free: 7.758 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004034/0.2886, allocations: 231.5 kB / 372.3 MB, free: 7.531 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.2888, allocations: 65.58 kB / 372.4 MB, free: 7.469 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002087/0.289, allocations: 103.6 kB / 372.5 MB, free: 7.367 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.2892, allocations: 115.5 kB / 372.6 MB, free: 7.254 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.994e-05/0.2893, allocations: 12 kB / 372.6 MB, free: 7.242 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.097e-05/0.2894, allocations: 12 kB / 372.6 MB, free: 7.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.95e-05/0.2894, allocations: 51.77 kB / 372.7 MB, free: 7.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.681e-05/0.2895, allocations: 81.52 kB / 372.8 MB, free: 7.094 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002972/0.2898, allocations: 208.1 kB / 373 MB, free: 6.891 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.433e-06/0.2898, allocations: 0 / 373 MB, free: 6.891 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.591e-06/0.2899, allocations: 0 / 373 MB, free: 6.891 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.645e-06/0.2899, allocations: 0 / 373 MB, free: 6.891 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001002/0.2909, allocations: 0.5533 MB / 373.5 MB, free: 6.289 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.2909, allocations: 8.031 kB / 373.5 MB, free: 6.281 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.853e-05/0.291, allocations: 31.62 kB / 373.6 MB, free: 6.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003768/0.2914, allocations: 254.3 kB / 373.8 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/0.2915, allocations: 24.48 kB / 373.8 MB, free: 5.938 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.761e-05/0.2915, allocations: 32 kB / 373.9 MB, free: 5.906 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006393/0.2922, allocations: 277.9 kB / 374.1 MB, free: 5.609 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.774e-05/0.2922, allocations: 19.84 kB / 374.2 MB, free: 5.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.2923, allocations: 12 kB / 374.2 MB, free: 5.578 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.2923, allocations: 8 kB / 374.2 MB, free: 5.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006011/0.2929, allocations: 204.7 kB / 374.4 MB, free: 5.371 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002377/0.2953, allocations: 1.313 MB / 375.7 MB, free: 3.949 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006205/0.296, allocations: 262.5 kB / 375.9 MB, free: 3.656 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.364e-05/0.296, allocations: 160 / 375.9 MB, free: 3.656 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.478e-05/0.2961, allocations: 46.55 kB / 376 MB, free: 3.602 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 3.204e-06/0.2961, allocations: 0 / 376 MB, free: 3.602 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.003659/0.2998, allocations: 1.612 MB / 377.6 MB, free: 1.781 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.2999, allocations: 144.4 kB / 377.7 MB, free: 1.609 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002972/0.3002, allocations: 221 kB / 378 MB, free: 1.387 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.755e-05/0.3003, allocations: 33.7 kB / 378 MB, free: 1.348 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.3005, allocations: 230.7 kB / 378.2 MB, free: 1.121 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.3006, allocations: 118.3 kB / 378.3 MB, free: 1.004 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.233e-05/0.3007, allocations: 8 kB / 378.3 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.3008, allocations: 322.8 kB / 378.7 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003639/0.3012, allocations: 112.8 kB / 378.8 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004699/0.3017, allocations: 245.6 kB / 379 MB, free: 268 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004236/0.3021, allocations: 151.8 kB / 379.2 MB, free: 116 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.3022, allocations: 4 kB / 379.2 MB, free: 112 kB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001162/0.3033, allocations: 405.1 kB / 379.6 MB, free: 15.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.3034, allocations: 8 kB / 379.6 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.3034, allocations: 4 kB / 379.6 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.899e-05/0.3034, allocations: 11.95 kB / 379.6 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005034/0.304, allocations: 108.2 kB / 379.7 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.782e-05/0.304, allocations: 11.94 kB / 379.7 MB, free: 15.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003147/0.3043, allocations: 31.83 kB / 379.7 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.866e-05/0.3044, allocations: 20 kB / 379.7 MB, free: 15.51 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * 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.0002342/0.3046, allocations: 153.7 kB / 379.9 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001551/0.3048, allocations: 27.72 kB / 379.9 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.363e-05/0.3049, allocations: 37.7 kB / 380 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.3049, allocations: 4 kB / 380 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.3049, allocations: 3.953 kB / 380 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.094e-06/0.3049, allocations: 0 / 380 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/0.3071, allocations: 1.009 MB / 381 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.5e-06/0.3072, allocations: 448 / 381 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005097/0.3077, allocations: 92.22 kB / 381.1 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/0.3077, allocations: 4 kB / 381.1 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.293e-05/0.3078, allocations: 12 kB / 381.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.746e-06/0.3078, allocations: 7.875 kB / 381.1 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.078e-06/0.3078, allocations: 4 kB / 381.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.3094, allocations: 0.772 MB / 381.9 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.3095, allocations: 100.8 kB / 382 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.809e-05/0.3096, allocations: 8.062 kB / 382 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004186/0.31, allocations: 27.97 kB / 382 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.49e-05/0.3101, allocations: 23.97 kB / 382 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.051e-05/0.3102, allocations: 15.98 kB / 382 MB, free: 13.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002145/0.3104, allocations: 152.5 kB / 382.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.85e-07/0.3104, allocations: 0 / 382.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006926/0.3111, allocations: 68 kB / 382.3 MB, free: 12.89 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * 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.0001659/0.3113, allocations: 107.9 kB / 382.4 MB, free: 12.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009484/0.3122, allocations: 300.2 kB / 382.7 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.149e-06/0.3123, allocations: 0 / 382.7 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004222/0.3127, allocations: 148 kB / 382.8 MB, free: 12.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005798/0.3133, allocations: 32.42 kB / 382.8 MB, free: 12.3 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002087/0.3154, allocations: 1.103 MB / 383.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005189/0.3159, allocations: 0.78 MB / 384.7 MB, free: 10.34 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.3161, allocations: 31.98 kB / 384.7 MB, free: 10.32 MB / 314.7 MB Notification: Performance of SimCode: time 1.516e-06/0.3161, allocations: 0 / 384.7 MB, free: 10.32 MB / 314.7 MB Notification: Performance of Templates: time 0.006966/0.3231, allocations: 3.208 MB / 387.9 MB, free: 7.113 MB / 314.7 MB