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.ForUsersGuide.SimpleDriveTrain.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.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadModel(ModelicaTest): time 2.168/2.168, allocations: 234.9 MB / 250.5 MB, free: 9.465 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004346/0.0004348, allocations: 12 kB / 314.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2788, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002451/0.2813, allocations: 1.501 MB / 370.7 MB, free: 9.188 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009964/0.2823, allocations: 0.4925 MB / 371.2 MB, free: 8.691 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.334e-05/0.2824, allocations: 0 / 371.2 MB, free: 8.691 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.679e-05/0.2825, allocations: 15.86 kB / 371.2 MB, free: 8.676 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001374/0.2826, allocations: 35.91 kB / 371.2 MB, free: 8.641 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001672/0.2828, allocations: 39.89 kB / 371.3 MB, free: 8.602 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002101/0.283, allocations: 99.73 kB / 371.4 MB, free: 8.504 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.2832, allocations: 57.64 kB / 371.4 MB, free: 8.441 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000124/0.2833, allocations: 43.86 kB / 371.5 MB, free: 8.398 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.2835, allocations: 55.7 kB / 371.5 MB, free: 8.344 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.462e-05/0.2835, allocations: 8 kB / 371.5 MB, free: 8.336 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.188e-05/0.2836, allocations: 8 kB / 371.5 MB, free: 8.328 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.846e-05/0.2836, allocations: 15.92 kB / 371.5 MB, free: 8.312 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.705e-05/0.2837, allocations: 57.62 kB / 371.6 MB, free: 8.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.2838, allocations: 104.4 kB / 371.7 MB, free: 8.148 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.663e-06/0.2839, allocations: 0 / 371.7 MB, free: 8.148 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.78e-06/0.2839, allocations: 0 / 371.7 MB, free: 8.148 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.866e-06/0.2839, allocations: 0 / 371.7 MB, free: 8.148 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005923/0.2845, allocations: 408.2 kB / 372.1 MB, free: 7.703 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2845, allocations: 12.03 kB / 372.1 MB, free: 7.691 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.034e-05/0.2846, allocations: 15.81 kB / 372.1 MB, free: 7.676 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002423/0.2849, allocations: 198.8 kB / 372.3 MB, free: 7.441 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.2849, allocations: 16 kB / 372.3 MB, free: 7.426 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.821e-05/0.2849, allocations: 19.97 kB / 372.4 MB, free: 7.406 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003244/0.2853, allocations: 125.6 kB / 372.5 MB, free: 7.277 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.2853, allocations: 0 / 372.5 MB, free: 7.277 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.2853, allocations: 11.89 kB / 372.5 MB, free: 7.266 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.308e-06/0.2854, allocations: 4 kB / 372.5 MB, free: 7.262 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002621/0.2856, allocations: 87.94 kB / 372.6 MB, free: 7.176 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008676/0.2865, allocations: 468.2 kB / 373 MB, free: 6.668 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003014/0.2869, allocations: 122.5 kB / 373.2 MB, free: 6.539 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.2869, allocations: 4 kB / 373.2 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.2869, allocations: 30.56 kB / 373.2 MB, free: 6.496 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.422e-06/0.2869, allocations: 3.938 kB / 373.2 MB, free: 6.492 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.001928/0.2889, allocations: 0.8255 MB / 374 MB, free: 5.578 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.975e-05/0.289, allocations: 59.34 kB / 374.1 MB, free: 5.508 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.2891, allocations: 138.1 kB / 374.2 MB, free: 5.363 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.2892, allocations: 37.64 kB / 374.3 MB, free: 5.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.2893, allocations: 174.7 kB / 374.4 MB, free: 5.148 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.2e-05/0.2894, allocations: 66.95 kB / 374.5 MB, free: 5.082 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.172e-06/0.2894, allocations: 4 kB / 374.5 MB, free: 5.078 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.2896, allocations: 318.8 kB / 374.8 MB, free: 4.758 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.2897, allocations: 44.36 kB / 374.8 MB, free: 4.715 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001675/0.2899, allocations: 81.84 kB / 374.9 MB, free: 4.625 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.2901, allocations: 55.98 kB / 375 MB, free: 4.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.361e-06/0.2901, allocations: 0 / 375 MB, free: 4.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000542/0.2907, allocations: 210.2 kB / 375.2 MB, free: 4.355 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.2907, allocations: 4 kB / 375.2 MB, free: 4.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.37e-06/0.2907, allocations: 4 kB / 375.2 MB, free: 4.348 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000215/0.2909, allocations: 44.77 kB / 375.2 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002121/0.2912, allocations: 39.91 kB / 375.3 MB, free: 4.262 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001926/0.2931, allocations: 1.569 MB / 376.8 MB, free: 2.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.2932, allocations: 8.031 kB / 376.9 MB, free: 2.551 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.2933, allocations: 8.062 kB / 376.9 MB, free: 2.543 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001573/0.2934, allocations: 134 kB / 377 MB, free: 2.402 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.545e-05/0.2935, allocations: 15.91 kB / 377 MB, free: 2.387 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.63e-05/0.2936, allocations: 17.17 kB / 377 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.964e-06/0.2936, allocations: 4 kB / 377 MB, free: 2.367 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.276e-06/0.2936, allocations: 0 / 377 MB, free: 2.367 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.181e-06/0.2936, allocations: 0 / 377 MB, free: 2.367 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.2947, allocations: 0.5583 MB / 377.6 MB, free: 1.746 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.073e-06/0.2948, allocations: 4 kB / 377.6 MB, free: 1.742 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002342/0.295, allocations: 36.02 kB / 377.6 MB, free: 1.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001466/0.2952, allocations: 32.83 kB / 377.7 MB, free: 1.672 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.2952, allocations: 4 kB / 377.7 MB, free: 1.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001529/0.2967, allocations: 1.382 MB / 379 MB, free: 156 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.099e-06/0.2968, allocations: 0 / 379 MB, free: 156 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000711/0.2975, allocations: 353.3 kB / 379.4 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.638e-05/0.2976, allocations: 92.94 kB / 379.5 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.2976, allocations: 4 kB / 379.5 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.2978, allocations: 4 kB / 379.5 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.99e-05/0.2978, allocations: 15.98 kB / 379.5 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.2979, allocations: 7.938 kB / 379.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001084/0.298, allocations: 113.3 kB / 379.6 MB, free: 15.54 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.49e-07/0.298, allocations: 0 / 379.6 MB, free: 15.54 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004438/0.2985, allocations: 48 kB / 379.7 MB, free: 15.49 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001359/0.2986, allocations: 95.25 kB / 379.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006378/0.2993, allocations: 262.5 kB / 380 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.071e-06/0.2993, allocations: 4.062 kB / 380 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003632/0.2997, allocations: 199.6 kB / 380.2 MB, free: 14.9 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.3, allocations: 26.03 kB / 380.2 MB, free: 14.88 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.301, allocations: 0.5427 MB / 380.8 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004222/0.3015, allocations: 0.7246 MB / 381.5 MB, free: 13.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.327e-05/0.3015, allocations: 15.44 kB / 381.5 MB, free: 13.54 MB / 314.7 MB Notification: Performance of SimCode: time 1.39e-06/0.3015, allocations: 0 / 381.5 MB, free: 13.54 MB / 314.7 MB Notification: Performance of Templates: time 0.005013/0.3066, allocations: 2.308 MB / 383.8 MB, free: 11.23 MB / 314.7 MB