Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Worldtorque.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Worldtorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Worldtorque") Notification: Performance of loadModel(ModelicaTest): time 1.952/1.952, allocations: 209.2 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000406/0.0004061, allocations: 8 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3942/0.3946, allocations: 48.7 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1754/0.57, allocations: 92.97 MB / 424.8 MB, free: 1.449 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000367/0.5704, allocations: 79.97 kB / 424.8 MB, free: 1.371 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9293/1.5, allocations: 143.8 MB / 0.5553 GB, free: 40.99 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.227e-06/1.5, allocations: 0 / 0.5553 GB, free: 40.99 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005134/1.5, allocations: 140 kB / 0.5555 GB, free: 40.85 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2467 * Number of variables: 2467 Notification: Performance of Generate backend data structure: time 0.03129/1.532, allocations: 7.467 MB / 0.5628 GB, free: 33.3 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/1.532, allocations: 12.03 kB / 0.5628 GB, free: 33.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06918/1.601, allocations: 9.526 MB / 0.5721 GB, free: 23.74 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03064/1.632, allocations: 8.886 MB / 0.5808 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006733/1.632, allocations: 0.5255 MB / 0.5813 GB, free: 14.24 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003901/1.636, allocations: 0.6989 MB / 0.582 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05402/1.69, allocations: 16.73 MB / 0.5983 GB, free: 11.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005687/1.691, allocations: 99.11 kB / 0.5984 GB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003481/1.694, allocations: 335.8 kB / 0.5987 GB, free: 10.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004156/1.699, allocations: 1.526 MB / 0.6002 GB, free: 9.371 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04767/1.746, allocations: 13.35 MB / 0.6132 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7447/2.491, allocations: 72.53 MB / 0.6841 GB, free: 27.13 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02403/2.515, allocations: 5.936 MB / 0.6899 GB, free: 26.43 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003999/2.516, allocations: 50.5 kB / 0.6899 GB, free: 26.43 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.96e-05/2.516, allocations: 62.73 kB / 0.69 GB, free: 26.39 MB / 426.8 MB Notification: Performance of pre-optimization done (n=249): time 7.434e-06/2.516, allocations: 0 / 0.69 GB, free: 26.39 MB / 426.8 MB Notification: Performance of matching and sorting (n=267): time 0.1044/2.62, allocations: 23.47 MB / 0.7129 GB, free: 20.61 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/2.62, allocations: 262.6 kB / 0.7131 GB, free: 20.32 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01771/2.638, allocations: 6.969 MB / 0.7199 GB, free: 18.34 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007524/2.639, allocations: 70.11 kB / 0.72 GB, free: 18.28 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004731/2.644, allocations: 4.781 MB / 0.7247 GB, free: 14.62 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001981/2.646, allocations: 1.024 MB / 0.7257 GB, free: 13.88 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001459/2.647, allocations: 174.9 kB / 0.7258 GB, free: 13.75 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0007979/2.648, allocations: 0.6716 MB / 0.7265 GB, free: 13.28 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008335/2.656, allocations: 2.973 MB / 0.7294 GB, free: 12.3 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01197/2.668, allocations: 8.249 MB / 0.7375 GB, free: 4.266 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01145/2.68, allocations: 4.835 MB / 0.7422 GB, free: 2.602 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002497/2.68, allocations: 56.5 kB / 0.7422 GB, free: 2.602 MB / 426.8 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.03202/2.712, allocations: 11.29 MB / 0.7533 GB, free: 13.45 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001662/2.712, allocations: 87.12 kB / 0.7533 GB, free: 13.36 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003705/2.713, allocations: 184 kB / 0.7535 GB, free: 13.18 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003639/2.717, allocations: 0.8365 MB / 0.7543 GB, free: 12.48 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01358/2.73, allocations: 1.995 MB / 0.7563 GB, free: 10.74 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01662/2.747, allocations: 8.646 MB / 0.7647 GB, free: 2.531 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01088/2.758, allocations: 475.6 kB / 0.7652 GB, free: 2.109 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002277/2.76, allocations: 0.5103 MB / 0.7657 GB, free: 1.609 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 849 * Number of states: 0 () * Number of discrete variables: 54 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (1056): * Single equations (assignments): 1050 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01439/2.774, allocations: 3.54 MB / 0.7691 GB, free: 15.25 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001946/2.776, allocations: 0.5939 MB / 0.7697 GB, free: 14.64 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01685/2.793, allocations: 4.545 MB / 0.7742 GB, free: 10.86 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.323e-05/2.793, allocations: 32 kB / 0.7742 GB, free: 10.83 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.989e-05/2.793, allocations: 4 kB / 0.7742 GB, free: 10.83 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.323e-05/2.794, allocations: 17.08 kB / 0.7742 GB, free: 10.82 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04273/2.836, allocations: 11.7 MB / 0.7856 GB, free: 1.312 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.614e-05/2.836, allocations: 0 / 0.7856 GB, free: 1.312 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004731/2.841, allocations: 442.3 kB / 0.7861 GB, free: 0.9609 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002953/2.844, allocations: 0.5229 MB / 0.7866 GB, free: 0.5664 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007859/2.845, allocations: 47.38 kB / 0.7866 GB, free: 0.5234 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01498/2.86, allocations: 7.751 MB / 0.7942 GB, free: 9.18 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/2.86, allocations: 4.031 kB / 0.7942 GB, free: 9.176 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02332/2.883, allocations: 7.876 MB / 0.8019 GB, free: 2.207 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004281/2.888, allocations: 1.011 MB / 0.8029 GB, free: 1.258 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002198/2.89, allocations: 44 kB / 0.8029 GB, free: 1.215 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005311/2.895, allocations: 152.5 kB / 0.8031 GB, free: 1.113 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001019/2.896, allocations: 160.9 kB / 0.8032 GB, free: 1.016 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00036/2.897, allocations: 71 kB / 0.8033 GB, free: 0.9492 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.3736/3.27, allocations: 4.832 MB / 0.808 GB, free: 113.6 MB / 474.8 MB Notification: Performance of sort global known variables: time 9.41e-07/3.27, allocations: 0 / 0.808 GB, free: 113.6 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.0117/3.282, allocations: 1.562 MB / 0.8095 GB, free: 113.6 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (219): * Single equations (assignments): 213 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(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.001155/3.283, allocations: 190 kB / 0.8097 GB, free: 113.5 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01997/3.303, allocations: 7.485 MB / 0.817 GB, free: 113.2 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/3.303, allocations: 1.188 kB / 0.817 GB, free: 113.2 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006966/3.31, allocations: 2.547 MB / 0.8195 GB, free: 112.8 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007328/3.318, allocations: 0.7663 MB / 0.8202 GB, free: 112.8 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06304/3.381, allocations: 18.52 MB / 0.8383 GB, free: 106 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01732/3.398, allocations: 5.222 MB / 0.8434 GB, free: 105.1 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009437/3.408, allocations: 456.8 kB / 0.8439 GB, free: 105.1 MB / 474.8 MB Notification: Performance of SimCode: time 1.943e-06/3.408, allocations: 0 / 0.8439 GB, free: 105.1 MB / 474.8 MB Notification: Performance of Templates: time 0.6678/4.076, allocations: 177.2 MB / 1.017 GB, free: 114.4 MB / 474.8 MB