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.WorldForces2.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.WorldForces2,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.WorldForces2") Notification: Performance of loadModel(ModelicaTest): time 1.83/1.83, allocations: 209.2 MB / 224.8 MB, free: 1.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004383/0.0004383, allocations: 16 kB / 282.6 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08954/0.09, allocations: 48.71 MB / 331.3 MB, free: 8.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3549/0.445, allocations: 92.77 MB / 424 MB, free: 8.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.4453, allocations: 83.95 kB / 424.1 MB, free: 8.168 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7201/1.165, allocations: 136.8 MB / 0.5478 GB, free: 80.42 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.288e-06/1.165, allocations: 4 kB / 0.5478 GB, free: 80.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000401/1.166, allocations: 133.5 kB / 0.5479 GB, free: 80.41 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2364 * Number of variables: 2364 Notification: Performance of Generate backend data structure: time 0.02265/1.189, allocations: 7.261 MB / 0.555 GB, free: 75.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/1.189, allocations: 9.594 kB / 0.555 GB, free: 75.68 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04697/1.236, allocations: 9.486 MB / 0.5643 GB, free: 67.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02354/1.259, allocations: 8.762 MB / 0.5729 GB, free: 59.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005772/1.26, allocations: 0.5054 MB / 0.5734 GB, free: 58.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002739/1.262, allocations: 0.6715 MB / 0.574 GB, free: 57.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03756/1.3, allocations: 16.1 MB / 0.5897 GB, free: 40.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003888/1.301, allocations: 95.12 kB / 0.5898 GB, free: 40.19 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002173/1.303, allocations: 331.8 kB / 0.5901 GB, free: 39.87 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002393/1.305, allocations: 1.452 MB / 0.5916 GB, free: 38.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03024/1.335, allocations: 12.86 MB / 0.6041 GB, free: 25.53 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3733/1.709, allocations: 70.65 MB / 0.6731 GB, free: 39.26 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01852/1.727, allocations: 5.908 MB / 0.6789 GB, free: 38.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002398/1.728, allocations: 55.17 kB / 0.6789 GB, free: 38.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.704e-05/1.728, allocations: 59.94 kB / 0.679 GB, free: 38.53 MB / 426.7 MB Notification: Performance of pre-optimization done (n=242): time 7.36e-06/1.728, allocations: 0 / 0.679 GB, free: 38.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=260): time 0.07761/1.805, allocations: 22.48 MB / 0.7009 GB, free: 32.76 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.404e-05/1.805, allocations: 270.4 kB / 0.7012 GB, free: 32.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01388/1.819, allocations: 6.153 MB / 0.7072 GB, free: 31.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000535/1.82, allocations: 67.17 kB / 0.7073 GB, free: 31.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003688/1.824, allocations: 4.601 MB / 0.7118 GB, free: 29.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001302/1.825, allocations: 1 MB / 0.7127 GB, free: 28.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00085/1.826, allocations: 167.6 kB / 0.7129 GB, free: 28.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006075/1.826, allocations: 0.6629 MB / 0.7135 GB, free: 28.47 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006228/1.833, allocations: 2.867 MB / 0.7163 GB, free: 27.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009042/1.842, allocations: 7.992 MB / 0.7242 GB, free: 20.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008832/1.851, allocations: 4.68 MB / 0.7287 GB, free: 18.53 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000159/1.851, allocations: 51.47 kB / 0.7288 GB, free: 18.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=1096) (initialization): time 0.0248/1.876, allocations: 10.95 MB / 0.7395 GB, free: 14.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001568/1.876, allocations: 86.38 kB / 0.7395 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002591/1.876, allocations: 182.1 kB / 0.7397 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002599/1.879, allocations: 0.8019 MB / 0.7405 GB, free: 14.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008045/1.887, allocations: 1.925 MB / 0.7424 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/1.898, allocations: 8.467 MB / 0.7506 GB, free: 8.254 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009185/1.907, allocations: 456.9 kB / 0.7511 GB, free: 7.848 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001715/1.909, allocations: 0.4998 MB / 0.7516 GB, free: 7.359 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 54 (worldForce2.color[3],worldForce2.color[2],worldForce2.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],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.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],fixed1.color[3],fixed1.color[2],fixed1.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 (1033): * Single equations (assignments): 1027 * 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%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007953/1.917, allocations: 3.211 MB / 0.7547 GB, free: 4.539 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001411/1.918, allocations: 0.5784 MB / 0.7553 GB, free: 3.953 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/1.929, allocations: 4.342 MB / 0.7595 GB, free: 340 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.186e-05/1.929, allocations: 28 kB / 0.7595 GB, free: 312 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.669e-05/1.929, allocations: 14.89 kB / 0.7596 GB, free: 300 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.457e-05/1.929, allocations: 14.95 kB / 0.7596 GB, free: 300 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03506/1.964, allocations: 11.35 MB / 0.7707 GB, free: 7.516 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.395e-05/1.964, allocations: 4 kB / 0.7707 GB, free: 7.512 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002913/1.967, allocations: 410.3 kB / 0.771 GB, free: 7.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002153/1.97, allocations: 0.5032 MB / 0.7715 GB, free: 6.805 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005352/1.97, allocations: 43.56 kB / 0.7716 GB, free: 6.766 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01257/1.983, allocations: 7.538 MB / 0.7789 GB, free: 15.52 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.146e-06/1.983, allocations: 2.75 kB / 0.7789 GB, free: 15.52 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01732/2, allocations: 7.745 MB / 0.7865 GB, free: 8.605 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003766/2.004, allocations: 0.9949 MB / 0.7875 GB, free: 7.668 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00171/2.006, allocations: 40 kB / 0.7875 GB, free: 7.629 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004052/2.01, allocations: 145.2 kB / 0.7877 GB, free: 7.531 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007693/2.011, allocations: 144.3 kB / 0.7878 GB, free: 7.445 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002781/2.011, allocations: 66.53 kB / 0.7879 GB, free: 7.383 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0114/2.022, allocations: 4.398 MB / 0.7922 GB, free: 3.781 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.091e-06/2.022, allocations: 0 / 0.7922 GB, free: 3.781 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01099/2.033, allocations: 1.515 MB / 0.7936 GB, free: 2.273 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.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 (215): * Single equations (assignments): 209 * 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%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008814/2.034, allocations: 201 kB / 0.7938 GB, free: 2.082 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01662/2.051, allocations: 7.256 MB / 0.8009 GB, free: 11.75 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.431e-06/2.051, allocations: 0 / 0.8009 GB, free: 11.75 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00535/2.056, allocations: 2.441 MB / 0.8033 GB, free: 9.465 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005157/2.061, allocations: 0.7636 MB / 0.804 GB, free: 8.727 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04188/2.103, allocations: 17.84 MB / 0.8215 GB, free: 6.895 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01332/2.117, allocations: 5.033 MB / 0.8264 GB, free: 1.867 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002367/2.119, allocations: 447.4 kB / 0.8268 GB, free: 1.43 MB / 490.7 MB Notification: Performance of SimCode: time 1.683e-06/2.119, allocations: 0 / 0.8268 GB, free: 1.43 MB / 490.7 MB Notification: Performance of Templates: time 0.5138/2.633, allocations: 171.2 MB / 0.994 GB, free: 21.78 MB / 490.7 MB