Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadModel(ModelicaTest): time 1.912/1.912, allocations: 209.2 MB / 224.8 MB, free: 208 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004426/0.0004428, allocations: 12 kB / 282.5 MB, free: 9.633 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2856, allocations: 48.69 MB / 331.2 MB, free: 6.473 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002816/0.2884, allocations: 2.21 MB / 333.4 MB, free: 5.156 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.2897, allocations: 0.7089 MB / 334.1 MB, free: 4.645 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.2899, allocations: 7.406 kB / 334.1 MB, free: 4.645 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 8.581e-05/0.29, allocations: 34.69 kB / 334.1 MB, free: 4.629 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003237/0.2903, allocations: 140.1 kB / 334.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002547/0.2906, allocations: 65.42 kB / 334.3 MB, free: 4.488 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004168/0.291, allocations: 300.1 kB / 334.6 MB, free: 4.332 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002271/0.2913, allocations: 111.8 kB / 334.7 MB, free: 4.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002305/0.2915, allocations: 144.4 kB / 334.9 MB, free: 4.207 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002234/0.2918, allocations: 153.6 kB / 335 MB, free: 4.137 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.397e-05/0.2918, allocations: 18.69 kB / 335.1 MB, free: 4.137 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.39e-05/0.2919, allocations: 19.78 kB / 335.1 MB, free: 4.137 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.54e-05/0.292, allocations: 66.56 kB / 335.1 MB, free: 4.094 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.89e-05/0.2921, allocations: 92.7 kB / 335.2 MB, free: 4.035 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004418/0.2926, allocations: 310.6 kB / 335.5 MB, free: 3.961 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.913e-06/0.2926, allocations: 4 kB / 335.5 MB, free: 3.957 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.267e-06/0.2926, allocations: 0 / 335.5 MB, free: 3.957 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.452e-05/0.2926, allocations: 1.312 kB / 335.5 MB, free: 3.957 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0009082/0.2935, allocations: 0.584 MB / 336.1 MB, free: 3.473 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.2936, allocations: 12.09 kB / 336.1 MB, free: 3.469 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.692e-05/0.2937, allocations: 49.38 kB / 336.2 MB, free: 3.441 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003246/0.294, allocations: 264.2 kB / 336.4 MB, free: 3.195 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.641e-05/0.2941, allocations: 27.25 kB / 336.5 MB, free: 3.184 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.559e-05/0.2942, allocations: 41.8 kB / 336.5 MB, free: 3.168 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007993/0.295, allocations: 395 kB / 336.9 MB, free: 2.941 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.74e-05/0.2951, allocations: 14.97 kB / 336.9 MB, free: 2.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.313e-05/0.2951, allocations: 16.91 kB / 336.9 MB, free: 2.918 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.2951, allocations: 8.719 kB / 336.9 MB, free: 2.918 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006175/0.2958, allocations: 238.8 kB / 337.2 MB, free: 2.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00261/0.2984, allocations: 1.719 MB / 338.9 MB, free: 1.328 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005226/0.299, allocations: 267 kB / 339.1 MB, free: 1.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.7e-05/0.299, allocations: 10.66 kB / 339.2 MB, free: 1.082 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.299, allocations: 33.97 kB / 339.2 MB, free: 1.043 MB / 266.7 MB Notification: Performance of pre-optimization done (n=26): time 4.567e-06/0.2991, allocations: 4.781 kB / 339.2 MB, free: 1.039 MB / 266.7 MB Notification: Performance of matching and sorting (n=26): time 0.000907/0.3, allocations: 270.5 kB / 339.5 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.3, allocations: 219.2 kB / 339.7 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003008/0.3004, allocations: 274 kB / 339.9 MB, free: 460 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.3004, allocations: 31.52 kB / 340 MB, free: 424 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.3005, allocations: 297.5 kB / 340.3 MB, free: 140 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.6e-05/0.3006, allocations: 120.2 kB / 340.4 MB, free: 32 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.274e-05/0.3007, allocations: 10.88 kB / 340.4 MB, free: 24 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.3009, allocations: 332 kB / 340.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003133/0.3012, allocations: 109 kB / 340.8 MB, free: 15.64 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005716/0.3018, allocations: 428 kB / 341.2 MB, free: 15.15 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004113/0.3022, allocations: 172.5 kB / 341.4 MB, free: 15.06 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.511e-06/0.3022, allocations: 3.094 kB / 341.4 MB, free: 15.06 MB / 282.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001304/0.3036, allocations: 0.5218 MB / 341.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.35e-05/0.3036, allocations: 9.688 kB / 341.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/0.3036, allocations: 15.44 kB / 342 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.615e-05/0.3037, allocations: 16.78 kB / 342 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006062/0.3043, allocations: 142.9 kB / 342.1 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.346e-05/0.3044, allocations: 27.64 kB / 342.1 MB, free: 14.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004906/0.3049, allocations: 69.89 kB / 342.2 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.832e-05/0.3049, allocations: 35.28 kB / 342.2 MB, free: 14.7 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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.0002914/0.3052, allocations: 180.1 kB / 342.4 MB, free: 14.53 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002501/0.3055, allocations: 35.8 kB / 342.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.868e-05/0.3056, allocations: 34.89 kB / 342.5 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.3056, allocations: 4.562 kB / 342.5 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.3057, allocations: 5.812 kB / 342.5 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.3057, allocations: 6.172 kB / 342.5 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001866/0.3075, allocations: 0.6517 MB / 343.2 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.786e-06/0.3076, allocations: 2.219 kB / 343.2 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006216/0.3082, allocations: 90.95 kB / 343.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-05/0.3083, allocations: 3.469 kB / 343.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.092e-05/0.3083, allocations: 12.95 kB / 343.3 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.598e-06/0.3083, allocations: 2.969 kB / 343.3 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.3083, allocations: 2.75 kB / 343.3 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.3094, allocations: 0.845 MB / 344.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.3097, allocations: 117.1 kB / 344.2 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.977e-05/0.3098, allocations: 17.2 kB / 344.2 MB, free: 13.03 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005118/0.3103, allocations: 10.84 kB / 344.3 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.379e-05/0.3104, allocations: 23.12 kB / 344.3 MB, free: 13.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.3104, allocations: 10.91 kB / 344.3 MB, free: 13.01 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002988/0.3107, allocations: 187.6 kB / 344.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.36e-07/0.3108, allocations: 0 / 344.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001088/0.3119, allocations: 106.7 kB / 344.6 MB, free: 12.85 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * 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.0001642/0.312, allocations: 106.3 kB / 344.7 MB, free: 12.75 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008474/0.3129, allocations: 299.9 kB / 345 MB, free: 12.63 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.252e-06/0.3129, allocations: 0 / 345 MB, free: 12.63 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000272/0.3132, allocations: 98.05 kB / 345.1 MB, free: 12.59 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009115/0.3141, allocations: 68.03 kB / 345.1 MB, free: 12.55 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003485/0.3176, allocations: 1.928 MB / 347.1 MB, free: 10.92 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006056/0.3183, allocations: 0.8105 MB / 347.9 MB, free: 10.16 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.3184, allocations: 30.75 kB / 347.9 MB, free: 10.16 MB / 282.7 MB Notification: Performance of SimCode: time 2.01e-06/0.3184, allocations: 0 / 347.9 MB, free: 10.16 MB / 282.7 MB Notification: Performance of Templates: time 0.008692/0.3271, allocations: 3.974 MB / 351.9 MB, free: 8.105 MB / 282.7 MB