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.822/1.822, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.805e-05/2.829e-05, allocations: 0 / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09352/0.09359, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4019/0.4955, allocations: 75.43 MB / 402 MB, free: 9.848 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/0.4958, allocations: 68.72 kB / 402 MB, free: 9.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02258/0.5184, allocations: 5.783 MB / 407.8 MB, free: 7.734 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.194e-06/0.5184, allocations: 0 / 407.8 MB, free: 7.734 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.141e-05/0.5185, allocations: 9.5 kB / 407.8 MB, free: 7.734 MB / 314.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.00107/0.5195, allocations: 0.5574 MB / 408.4 MB, free: 7.258 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.5196, allocations: 11.53 kB / 408.4 MB, free: 7.258 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.5198, allocations: 38.91 kB / 408.4 MB, free: 7.238 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.5202, allocations: 258 kB / 408.7 MB, free: 6.996 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.5203, allocations: 26.56 kB / 408.7 MB, free: 6.996 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.5204, allocations: 48.45 kB / 408.8 MB, free: 6.988 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009135/0.5213, allocations: 368.6 kB / 409.1 MB, free: 6.828 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.839e-05/0.5214, allocations: 15.66 kB / 409.1 MB, free: 6.816 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.245e-05/0.5215, allocations: 14 kB / 409.1 MB, free: 6.816 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.5215, allocations: 15.44 kB / 409.2 MB, free: 6.812 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004393/0.522, allocations: 209.8 kB / 409.4 MB, free: 6.777 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002492/0.5245, allocations: 1.71 MB / 411.1 MB, free: 5.449 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004016/0.5249, allocations: 251.8 kB / 411.3 MB, free: 5.254 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001237/0.5251, allocations: 87.89 kB / 411.4 MB, free: 5.195 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.5251, allocations: 3.844 kB / 411.4 MB, free: 5.195 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.5251, allocations: 42.36 kB / 411.5 MB, free: 5.152 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 3.626e-06/0.5251, allocations: 4 kB / 411.5 MB, free: 5.148 MB / 314.7 MB Notification: Performance of matching and sorting (n=26): time 0.0005686/0.5257, allocations: 186.7 kB / 411.6 MB, free: 5.074 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.5258, allocations: 216.8 kB / 411.8 MB, free: 4.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.5261, allocations: 243.9 kB / 412.1 MB, free: 4.703 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.5261, allocations: 25.7 kB / 412.1 MB, free: 4.672 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.5262, allocations: 300.9 kB / 412.4 MB, free: 4.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.282e-05/0.5263, allocations: 120.8 kB / 412.5 MB, free: 4.344 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.295e-05/0.5264, allocations: 14.53 kB / 412.5 MB, free: 4.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.596e-05/0.5264, allocations: 335.3 kB / 412.9 MB, free: 4.016 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.5266, allocations: 83.28 kB / 412.9 MB, free: 4.016 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003061/0.527, allocations: 414.6 kB / 413.4 MB, free: 3.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002899/0.5273, allocations: 167.3 kB / 413.5 MB, free: 3.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.114e-06/0.5273, allocations: 3.875 kB / 413.5 MB, free: 3.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009094/0.5282, allocations: 486.8 kB / 414 MB, free: 3.363 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.5282, allocations: 11.69 kB / 414 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.5283, allocations: 11.5 kB / 414 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.122e-05/0.5283, allocations: 15.38 kB / 414 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005841/0.5289, allocations: 157.5 kB / 414.2 MB, free: 3.328 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.429e-05/0.5289, allocations: 27.23 kB / 414.2 MB, free: 3.316 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004685/0.5294, allocations: 76.84 kB / 414.3 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.424e-05/0.5295, allocations: 30.25 kB / 414.3 MB, free: 3.277 MB / 314.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.000114/0.5296, allocations: 144.8 kB / 414.5 MB, free: 3.152 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/0.5298, allocations: 31.09 kB / 414.5 MB, free: 3.141 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.822e-05/0.5299, allocations: 35.52 kB / 414.5 MB, free: 3.129 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.922e-06/0.53, allocations: 3.969 kB / 414.5 MB, free: 3.129 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.535e-06/0.53, allocations: 7.828 kB / 414.5 MB, free: 3.125 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.63e-06/0.53, allocations: 0 / 414.5 MB, free: 3.125 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001588/0.5316, allocations: 0.6445 MB / 415.2 MB, free: 2.645 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.395e-06/0.5316, allocations: 0 / 415.2 MB, free: 2.645 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006747/0.5323, allocations: 92.55 kB / 415.3 MB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.227e-06/0.5323, allocations: 3.844 kB / 415.3 MB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/0.5324, allocations: 7.719 kB / 415.3 MB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.053e-06/0.5324, allocations: 15.83 kB / 415.3 MB, free: 2.617 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.5324, allocations: 0 / 415.3 MB, free: 2.617 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006155/0.533, allocations: 0.8912 MB / 416.2 MB, free: 1.734 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.5332, allocations: 124 kB / 416.3 MB, free: 1.598 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.267e-05/0.5333, allocations: 7.5 kB / 416.3 MB, free: 1.594 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005192/0.5338, allocations: 15.05 kB / 416.3 MB, free: 1.582 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.512e-05/0.5339, allocations: 23.38 kB / 416.4 MB, free: 1.562 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.5339, allocations: 15.55 kB / 416.4 MB, free: 1.551 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001884/0.5341, allocations: 179.7 kB / 416.5 MB, free: 1.406 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.24e-07/0.5341, allocations: 4 kB / 416.5 MB, free: 1.402 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00105/0.5352, allocations: 105.7 kB / 416.7 MB, free: 1.312 MB / 314.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.000134/0.5353, allocations: 110.4 kB / 416.8 MB, free: 1.199 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000504/0.5358, allocations: 262.1 kB / 417 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.164e-06/0.5359, allocations: 5.875 kB / 417 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.536, allocations: 78.47 kB / 417.1 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008166/0.5368, allocations: 63.06 kB / 417.2 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0026/0.5395, allocations: 1.562 MB / 418.7 MB, free: 15.31 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005912/0.5401, allocations: 0.8033 MB / 419.5 MB, free: 14.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.5402, allocations: 31.42 kB / 419.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of SimCode: time 1.931e-06/0.5402, allocations: 3.938 kB / 419.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of Templates: time 0.008243/0.5485, allocations: 3.977 MB / 423.5 MB, free: 10.52 MB / 330.7 MB