Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.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.MultiBody.Forces.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2") Notification: Performance of loadModel(ModelicaTest): time 1.895/1.895, allocations: 209.3 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004367/0.0004369, allocations: 16 kB / 282.5 MB, free: 9.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2794, allocations: 48.71 MB / 331.2 MB, free: 6.484 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.145/0.4245, allocations: 103.1 MB / 434.3 MB, free: 7.227 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0585/0.4831, allocations: 22.75 MB / 457 MB, free: 424 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02132/0.5044, allocations: 0.4989 MB / 457.5 MB, free: 15.91 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01705/0.5215, allocations: 5.327 MB / 462.9 MB, free: 10.56 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3203/0.8418, allocations: 14.65 MB / 477.5 MB, free: 5.605 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006719/0.8486, allocations: 1.242 MB / 478.7 MB, free: 5.594 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.06338/0.912, allocations: 34.6 MB / 0.5013 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01765/0.9297, allocations: 9.977 MB / 0.511 GB, free: 10.74 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004775/0.9345, allocations: 2.177 MB / 0.5132 GB, free: 9.355 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005657/0.9402, allocations: 3.03 MB / 0.5161 GB, free: 7.246 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001722/0.942, allocations: 311.1 kB / 0.5164 GB, free: 6.945 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004018/0.946, allocations: 1.207 MB / 0.5176 GB, free: 5.945 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005104/0.9512, allocations: 3.465 MB / 0.521 GB, free: 3.48 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002802/0.954, allocations: 1.722 MB / 0.5227 GB, free: 2.891 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01738/0.9714, allocations: 11.88 MB / 0.5343 GB, free: 8.582 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.179e-06/0.9715, allocations: 0 / 0.5343 GB, free: 8.582 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.9715, allocations: 0 / 0.5343 GB, free: 8.582 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003195/0.9718, allocations: 7.938 kB / 0.5343 GB, free: 8.574 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2944 * Number of variables: 2944 Notification: Performance of Generate backend data structure: time 0.02578/0.9976, allocations: 9.029 MB / 0.5431 GB, free: 268 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.9977, allocations: 8.031 kB / 0.5431 GB, free: 260 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1008/1.098, allocations: 14.28 MB / 0.5571 GB, free: 3.281 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01854/1.117, allocations: 7.184 MB / 0.5641 GB, free: 14.16 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005769/1.118, allocations: 0.489 MB / 0.5645 GB, free: 13.89 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00247/1.12, allocations: 0.663 MB / 0.5652 GB, free: 13.45 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04855/1.169, allocations: 19.96 MB / 0.5847 GB, free: 14 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003908/1.169, allocations: 94.67 kB / 0.5848 GB, free: 13.95 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001818/1.171, allocations: 310.7 kB / 0.5851 GB, free: 13.86 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00677/1.178, allocations: 3.373 MB / 0.5884 GB, free: 11.12 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04495/1.223, allocations: 16.43 MB / 0.6044 GB, free: 15.62 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6048/1.828, allocations: 72.31 MB / 0.675 GB, free: 164.9 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02773/1.855, allocations: 8.27 MB / 0.6831 GB, free: 164.2 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008086/1.856, allocations: 0.6656 MB / 0.6838 GB, free: 163.6 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.498e-05/1.856, allocations: 79.11 kB / 0.6838 GB, free: 163.6 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=311): time 8.016e-06/1.856, allocations: 0 / 0.6838 GB, free: 163.6 MB / 0.4949 GB Notification: Performance of matching and sorting (n=335): time 0.1111/1.967, allocations: 32.39 MB / 0.7155 GB, free: 148.2 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.903e-05/1.968, allocations: 291.7 kB / 0.7157 GB, free: 147.8 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01421/1.982, allocations: 8.29 MB / 0.7238 GB, free: 139.6 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.000638/1.983, allocations: 81.55 kB / 0.7239 GB, free: 139.5 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003711/1.986, allocations: 5.508 MB / 0.7293 GB, free: 134 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001617/1.988, allocations: 1.26 MB / 0.7305 GB, free: 132.8 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008079/1.989, allocations: 204.6 kB / 0.7307 GB, free: 132.6 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0005407/1.989, allocations: 0.7119 MB / 0.7314 GB, free: 131.9 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007186/1.996, allocations: 3.646 MB / 0.735 GB, free: 128.2 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009923/2.006, allocations: 9.305 MB / 0.7441 GB, free: 116.4 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009976/2.016, allocations: 5.662 MB / 0.7496 GB, free: 111 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001397/2.017, allocations: 60 kB / 0.7497 GB, free: 111 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.02829/2.045, allocations: 13.43 MB / 0.7628 GB, free: 97.57 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001482/2.045, allocations: 92.25 kB / 0.7629 GB, free: 97.48 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002089/2.045, allocations: 200 kB / 0.763 GB, free: 97.28 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004101/2.049, allocations: 1.336 MB / 0.7644 GB, free: 95.93 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008957/2.058, allocations: 2.234 MB / 0.7665 GB, free: 93.7 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01698/2.076, allocations: 12.92 MB / 0.7792 GB, free: 80.24 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009514/2.085, allocations: 0.5429 MB / 0.7797 GB, free: 79.7 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001659/2.087, allocations: 0.5631 MB / 0.7802 GB, free: 79.14 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 904 * Number of states: 0 () * Number of discrete variables: 63 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1171): * Single equations (assignments): 1164 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00792/2.095, allocations: 3.868 MB / 0.784 GB, free: 75.25 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001458/2.096, allocations: 0.6788 MB / 0.7847 GB, free: 74.57 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0144/2.111, allocations: 6.509 MB / 0.791 GB, free: 68.02 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.406e-05/2.111, allocations: 32.7 kB / 0.7911 GB, free: 67.99 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.168e-05/2.111, allocations: 12 kB / 0.7911 GB, free: 67.98 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.326e-05/2.111, allocations: 15.94 kB / 0.7911 GB, free: 67.96 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03652/2.147, allocations: 15.92 MB / 0.8066 GB, free: 52.06 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.758e-05/2.147, allocations: 8.094 kB / 0.8066 GB, free: 52.05 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003625/2.151, allocations: 0.5539 MB / 0.8072 GB, free: 51.5 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003528/2.155, allocations: 0.9883 MB / 0.8081 GB, free: 50.5 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006328/2.155, allocations: 67.27 kB / 0.8082 GB, free: 50.44 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01526/2.171, allocations: 11.78 MB / 0.8197 GB, free: 38.14 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.597e-06/2.171, allocations: 8.078 kB / 0.8197 GB, free: 38.13 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02058/2.191, allocations: 10.54 MB / 0.83 GB, free: 27.49 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003722/2.195, allocations: 1.253 MB / 0.8312 GB, free: 26.21 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0017/2.197, allocations: 55.28 kB / 0.8313 GB, free: 26.16 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004636/2.201, allocations: 215.7 kB / 0.8315 GB, free: 25.95 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009429/2.202, allocations: 194.3 kB / 0.8317 GB, free: 25.76 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003471/2.203, allocations: 84 kB / 0.8318 GB, free: 25.68 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01048/2.213, allocations: 5.371 MB / 0.837 GB, free: 20.31 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.219e-06/2.213, allocations: 4 kB / 0.837 GB, free: 20.31 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.0108/2.224, allocations: 1.913 MB / 0.8389 GB, free: 18.4 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (276): * Single equations (assignments): 269 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001044/2.225, allocations: 226.2 kB / 0.8391 GB, free: 18.18 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01681/2.242, allocations: 9.216 MB / 0.8481 GB, free: 8.953 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/2.242, allocations: 5.312 kB / 0.8481 GB, free: 8.949 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.006181/2.248, allocations: 3.375 MB / 0.8514 GB, free: 5.527 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005138/2.253, allocations: 0.9321 MB / 0.8523 GB, free: 4.59 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2844/2.538, allocations: 22.59 MB / 0.8744 GB, free: 190.5 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01276/2.551, allocations: 6.124 MB / 0.8803 GB, free: 189.6 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002731/2.553, allocations: 0.5231 MB / 0.8808 GB, free: 189.5 MB / 0.4949 GB Notification: Performance of SimCode: time 1.657e-06/2.553, allocations: 0 / 0.8808 GB, free: 189.5 MB / 0.4949 GB Notification: Performance of Templates: time 0.5811/3.135, allocations: 245.9 MB / 1.121 GB, free: 129.4 MB / 0.4949 GB