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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.945/1.945, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.649e-05/1.668e-05, allocations: 0 / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.31, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1167/0.4267, allocations: 74.77 MB / 394.8 MB, free: 5.668 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.427, allocations: 71.95 kB / 394.8 MB, free: 5.598 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02445/0.4515, allocations: 5.737 MB / 400.6 MB, free: 15.85 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.005e-06/0.4515, allocations: 0 / 400.6 MB, free: 15.85 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.11e-05/0.4515, allocations: 4 kB / 400.6 MB, free: 15.85 MB / 346.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.0009946/0.4526, allocations: 0.5532 MB / 401.1 MB, free: 15.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.4526, allocations: 12.03 kB / 401.1 MB, free: 15.24 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.4527, allocations: 51.41 kB / 401.2 MB, free: 15.19 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.4532, allocations: 266.2 kB / 401.5 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.165e-05/0.4532, allocations: 11.83 kB / 401.5 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.318e-05/0.4533, allocations: 27.91 kB / 401.5 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004584/0.4538, allocations: 169.5 kB / 401.7 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000679/0.4545, allocations: 309.8 kB / 402 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.577e-05/0.4545, allocations: 11.89 kB / 402 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.852e-05/0.4546, allocations: 4 kB / 402 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.4546, allocations: 11.95 kB / 402 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003022/0.4576, allocations: 1.649 MB / 403.6 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004898/0.4582, allocations: 234.7 kB / 403.9 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.4583, allocations: 78.14 kB / 403.9 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.4584, allocations: 4 kB / 404 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.757e-05/0.4584, allocations: 50.48 kB / 404 MB, free: 12.13 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.723e-06/0.4584, allocations: 0 / 404 MB, free: 12.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=26): time 0.000627/0.4591, allocations: 177.1 kB / 404.2 MB, free: 11.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/0.4592, allocations: 209.6 kB / 404.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.4595, allocations: 218.3 kB / 404.6 MB, free: 11.47 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.4596, allocations: 29.7 kB / 404.6 MB, free: 11.44 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002174/0.4598, allocations: 297.9 kB / 404.9 MB, free: 11.14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.4599, allocations: 118.4 kB / 405 MB, free: 11.03 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.778e-05/0.46, allocations: 0 / 405 MB, free: 11.03 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.4602, allocations: 326.8 kB / 405.3 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.4604, allocations: 73.56 kB / 405.4 MB, free: 10.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004811/0.4609, allocations: 404.5 kB / 405.8 MB, free: 10.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003303/0.4612, allocations: 139.8 kB / 405.9 MB, free: 9.934 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.659e-06/0.4613, allocations: 0 / 405.9 MB, free: 9.934 MB / 346.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009936/0.4623, allocations: 417.8 kB / 406.4 MB, free: 9.52 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/0.4623, allocations: 12.78 kB / 406.4 MB, free: 9.508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/0.4623, allocations: 12.16 kB / 406.4 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.084e-05/0.4624, allocations: 20 kB / 406.4 MB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006112/0.463, allocations: 151.7 kB / 406.5 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.658e-05/0.4631, allocations: 20.02 kB / 406.6 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004503/0.4635, allocations: 63.36 kB / 406.6 MB, free: 9.246 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.765e-05/0.4636, allocations: 32 kB / 406.7 MB, free: 9.215 MB / 346.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 () * 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.0001578/0.4638, allocations: 135.9 kB / 406.8 MB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002246/0.464, allocations: 31.62 kB / 406.8 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.164e-05/0.4641, allocations: 29.86 kB / 406.9 MB, free: 9.016 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.182e-06/0.4641, allocations: 8 kB / 406.9 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.986e-06/0.4641, allocations: 0 / 406.9 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.4642, allocations: 11.94 kB / 406.9 MB, free: 8.996 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001655/0.4658, allocations: 0.5856 MB / 407.5 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.177e-06/0.4659, allocations: 0 / 407.5 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006057/0.4665, allocations: 91.88 kB / 407.5 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-05/0.4665, allocations: 4.281 kB / 407.6 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.399e-05/0.4665, allocations: 8 kB / 407.6 MB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-06/0.4666, allocations: 4 kB / 407.6 MB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.97e-06/0.4666, allocations: 7.953 kB / 407.6 MB, free: 8.246 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008993/0.4675, allocations: 0.8822 MB / 408.5 MB, free: 7.281 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001636/0.4677, allocations: 120.8 kB / 408.6 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.473e-05/0.4677, allocations: 4 kB / 408.6 MB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004974/0.4682, allocations: 8 kB / 408.6 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.774e-05/0.4683, allocations: 27.91 kB / 408.6 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.379e-05/0.4684, allocations: 8 kB / 408.6 MB, free: 7.098 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002137/0.4686, allocations: 166 kB / 408.8 MB, free: 6.938 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.83e-07/0.4686, allocations: 0 / 408.8 MB, free: 6.938 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001046/0.4697, allocations: 95.94 kB / 408.9 MB, free: 6.844 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete 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.0001696/0.4698, allocations: 107.2 kB / 409 MB, free: 6.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005522/0.4704, allocations: 225.6 kB / 409.2 MB, free: 6.512 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.213e-06/0.4704, allocations: 0 / 409.2 MB, free: 6.512 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001575/0.4706, allocations: 68.8 kB / 409.3 MB, free: 6.445 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008347/0.4714, allocations: 61.61 kB / 409.3 MB, free: 6.383 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002904/0.4744, allocations: 1.549 MB / 410.9 MB, free: 4.781 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005994/0.475, allocations: 0.8069 MB / 411.7 MB, free: 3.945 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.4751, allocations: 31.44 kB / 411.7 MB, free: 3.914 MB / 346.7 MB Notification: Performance of SimCode: time 2.235e-06/0.4751, allocations: 0 / 411.7 MB, free: 3.914 MB / 346.7 MB Notification: Performance of Templates: time 0.007958/0.4831, allocations: 3.902 MB / 415.6 MB, free: 24 kB / 346.7 MB