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.WorldForces.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.WorldForces,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.WorldForces") Notification: Performance of loadModel(ModelicaTest): time 1.9/1.9, allocations: 209.3 MB / 224.9 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000446/0.0004462, allocations: 8 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2817, allocations: 48.7 MB / 331.3 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1434/0.4251, allocations: 95.81 MB / 427.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/0.4253, allocations: 75.95 kB / 427.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7483/1.174, allocations: 151.6 MB / 0.5652 GB, free: 30.64 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.67e-06/1.174, allocations: 0 / 0.5652 GB, free: 30.64 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004158/1.174, allocations: 148 kB / 0.5654 GB, free: 30.5 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: 2698 * Number of variables: 2698 Notification: Performance of Generate backend data structure: time 0.02464/1.199, allocations: 8.014 MB / 0.5732 GB, free: 22.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/1.199, allocations: 12.03 kB / 0.5732 GB, free: 22.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0475/1.246, allocations: 9.623 MB / 0.5826 GB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02432/1.271, allocations: 9.16 MB / 0.5915 GB, free: 3.492 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006655/1.271, allocations: 0.5736 MB / 0.5921 GB, free: 2.918 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003104/1.275, allocations: 0.7614 MB / 0.5928 GB, free: 2.156 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05024/1.325, allocations: 18.15 MB / 0.6106 GB, free: 14.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005319/1.325, allocations: 115 kB / 0.6107 GB, free: 14.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003111/1.329, allocations: 371.8 kB / 0.611 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003605/1.332, allocations: 1.691 MB / 0.6127 GB, free: 12.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5965/1.929, allocations: 14.62 MB / 0.627 GB, free: 63.98 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1001/2.029, allocations: 80.76 MB / 0.7058 GB, free: 17.34 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02308/2.052, allocations: 7.213 MB / 0.7129 GB, free: 14.84 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003219/2.052, allocations: 61.77 kB / 0.7129 GB, free: 14.84 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.973e-05/2.052, allocations: 73.16 kB / 0.713 GB, free: 14.78 MB / 426.8 MB Notification: Performance of pre-optimization done (n=307): time 8.288e-06/2.052, allocations: 0 / 0.713 GB, free: 14.78 MB / 426.8 MB Notification: Performance of matching and sorting (n=340): time 0.1014/2.154, allocations: 31.76 MB / 0.744 GB, free: 1.57 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/2.154, allocations: 299.5 kB / 0.7443 GB, free: 1.254 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01656/2.171, allocations: 6.665 MB / 0.7508 GB, free: 15.27 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007575/2.171, allocations: 80.08 kB / 0.7509 GB, free: 15.2 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00562/2.177, allocations: 5.073 MB / 0.7558 GB, free: 11.17 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002057/2.179, allocations: 1.282 MB / 0.7571 GB, free: 10.23 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001119/2.18, allocations: 189.7 kB / 0.7573 GB, free: 10.09 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0009966/2.181, allocations: 0.7148 MB / 0.758 GB, free: 9.602 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009238/2.191, allocations: 3.69 MB / 0.7616 GB, free: 6.793 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01493/2.205, allocations: 9.278 MB / 0.7706 GB, free: 11.73 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01279/2.218, allocations: 5.717 MB / 0.7762 GB, free: 6.922 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001967/2.219, allocations: 56 kB / 0.7763 GB, free: 6.867 MB / 458.8 MB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.03737/2.256, allocations: 13.68 MB / 0.7896 GB, free: 11.13 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001872/2.256, allocations: 92 kB / 0.7897 GB, free: 11.04 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003712/2.257, allocations: 196 kB / 0.7899 GB, free: 10.85 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004845/2.261, allocations: 1.382 MB / 0.7913 GB, free: 9.777 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01042/2.272, allocations: 2.238 MB / 0.7934 GB, free: 7.848 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2987/2.571, allocations: 11.51 MB / 0.8047 GB, free: 104.9 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009822/2.58, allocations: 0.531 MB / 0.8052 GB, free: 104.9 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001996/2.583, allocations: 0.5673 MB / 0.8058 GB, free: 104.9 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 899 * Number of states: 0 () * Number of discrete variables: 60 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[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],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],worldForce.color[3],worldForce.color[2],worldForce.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],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 (1172): * Single equations (assignments): 1166 * 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%) 13,(1,100.0%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008967/2.592, allocations: 3.587 MB / 0.8093 GB, free: 104.8 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001641/2.593, allocations: 0.646 MB / 0.8099 GB, free: 104.8 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01683/2.61, allocations: 6.672 MB / 0.8164 GB, free: 104.6 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.658e-05/2.61, allocations: 35.44 kB / 0.8164 GB, free: 104.6 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.424e-05/2.61, allocations: 9.438 kB / 0.8164 GB, free: 104.6 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.172e-05/2.61, allocations: 17.73 kB / 0.8165 GB, free: 104.6 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03759/2.648, allocations: 15.47 MB / 0.8316 GB, free: 103.8 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.45e-05/2.648, allocations: 0 / 0.8316 GB, free: 103.8 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003945/2.652, allocations: 0.5839 MB / 0.8321 GB, free: 103.8 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004043/2.656, allocations: 1.051 MB / 0.8332 GB, free: 103.8 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007675/2.657, allocations: 64.94 kB / 0.8332 GB, free: 103.8 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01594/2.673, allocations: 10.51 MB / 0.8435 GB, free: 99.76 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.185e-06/2.673, allocations: 2.438 kB / 0.8435 GB, free: 99.76 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02295/2.696, allocations: 11.27 MB / 0.8545 GB, free: 95.32 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004036/2.7, allocations: 1.214 MB / 0.8557 GB, free: 94.89 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002007/2.702, allocations: 58.08 kB / 0.8557 GB, free: 94.86 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004768/2.707, allocations: 211.9 kB / 0.8559 GB, free: 94.81 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009903/2.708, allocations: 202 kB / 0.8561 GB, free: 94.78 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003411/2.708, allocations: 85.92 kB / 0.8562 GB, free: 94.76 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01114/2.719, allocations: 4.69 MB / 0.8608 GB, free: 93.22 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.798e-06/2.719, allocations: 6.312 kB / 0.8608 GB, free: 93.22 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01128/2.731, allocations: 1.788 MB / 0.8625 GB, free: 93.02 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (286): * Single equations (assignments): 280 * 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 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009799/2.732, allocations: 207.8 kB / 0.8627 GB, free: 92.9 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01766/2.749, allocations: 9.252 MB / 0.8718 GB, free: 90 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 6.095e-06/2.749, allocations: 0 / 0.8718 GB, free: 90 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00722/2.757, allocations: 3.544 MB / 0.8752 GB, free: 88.55 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005298/2.762, allocations: 0.8074 MB / 0.876 GB, free: 88.21 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03857/2.801, allocations: 20.93 MB / 0.8965 GB, free: 74.12 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0119/2.812, allocations: 5.609 MB / 0.9019 GB, free: 70.02 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002657/2.815, allocations: 0.5021 MB / 0.9024 GB, free: 69.54 MB / 474.8 MB Notification: Performance of SimCode: time 1.907e-06/2.815, allocations: 0 / 0.9024 GB, free: 69.54 MB / 474.8 MB Notification: Performance of Templates: time 0.5594/3.375, allocations: 195.1 MB / 1.093 GB, free: 33.46 MB / 474.8 MB