Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces") Notification: Performance of loadModel(ModelicaTest): time 2.153/2.153, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.807e-05/3.819e-05, allocations: 8 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3234, allocations: 54.85 MB / 364.5 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1524/0.4759, allocations: 102.5 MB / 467.1 MB, free: 9.902 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/0.4761, allocations: 71.97 kB / 467.1 MB, free: 9.832 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8516/1.328, allocations: 152 MB / 0.6046 GB, free: 88.43 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.328, allocations: 0 / 0.6046 GB, free: 88.43 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004353/1.328, allocations: 152 kB / 0.6047 GB, free: 88.29 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2702 * Number of variables: 2702 Notification: Performance of Generate backend data structure: time 0.02382/1.352, allocations: 7.379 MB / 0.6119 GB, free: 80.83 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/1.352, allocations: 12.03 kB / 0.612 GB, free: 80.82 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04872/1.401, allocations: 9.628 MB / 0.6214 GB, free: 71.16 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02544/1.426, allocations: 9.133 MB / 0.6303 GB, free: 61.95 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006843/1.427, allocations: 0.5737 MB / 0.6308 GB, free: 61.38 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003248/1.43, allocations: 0.7691 MB / 0.6316 GB, free: 60.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04368/1.474, allocations: 18.03 MB / 0.6492 GB, free: 40.93 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005421/1.475, allocations: 107 kB / 0.6493 GB, free: 40.82 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003114/1.478, allocations: 367.8 kB / 0.6496 GB, free: 40.46 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002954/1.481, allocations: 1.691 MB / 0.6513 GB, free: 38.76 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03445/1.515, allocations: 14.39 MB / 0.6654 GB, free: 24.34 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7252/2.241, allocations: 80.81 MB / 0.7443 GB, free: 39.38 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02279/2.263, allocations: 7.134 MB / 0.7512 GB, free: 38.64 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006486/2.27, allocations: 4.054 MB / 0.7552 GB, free: 38.6 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002798/2.27, allocations: 68.36 kB / 0.7553 GB, free: 38.6 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.858e-05/2.27, allocations: 65.03 kB / 0.7553 GB, free: 38.56 MB / 474.8 MB Notification: Performance of pre-optimization done (n=307): time 8.863e-06/2.27, allocations: 0 / 0.7553 GB, free: 38.56 MB / 474.8 MB Notification: Performance of matching and sorting (n=340): time 0.0936/2.364, allocations: 27.37 MB / 0.7821 GB, free: 31.54 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/2.364, allocations: 295.2 kB / 0.7823 GB, free: 31.22 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01566/2.38, allocations: 6.515 MB / 0.7887 GB, free: 30.69 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007168/2.381, allocations: 70.2 kB / 0.7888 GB, free: 30.66 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003972/2.385, allocations: 5.085 MB / 0.7937 GB, free: 27.07 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001702/2.386, allocations: 1.283 MB / 0.795 GB, free: 26.14 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001157/2.387, allocations: 194.2 kB / 0.7952 GB, free: 25.99 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.000819/2.388, allocations: 0.7186 MB / 0.7959 GB, free: 25.5 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007992/2.396, allocations: 3.597 MB / 0.7994 GB, free: 24.27 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01125/2.408, allocations: 9.198 MB / 0.8084 GB, free: 15.54 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01072/2.418, allocations: 5.696 MB / 0.8139 GB, free: 13.85 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001822/2.419, allocations: 54.75 kB / 0.814 GB, free: 13.85 MB / 474.8 MB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.03097/2.45, allocations: 13.47 MB / 0.8271 GB, free: 6.766 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001525/2.45, allocations: 92 kB / 0.8272 GB, free: 6.676 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000222/2.45, allocations: 196 kB / 0.8274 GB, free: 6.484 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004257/2.454, allocations: 1.371 MB / 0.8288 GB, free: 5.41 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01232/2.467, allocations: 2.243 MB / 0.8309 GB, free: 3.477 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02266/2.489, allocations: 11.23 MB / 0.8419 GB, free: 9.07 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01034/2.5, allocations: 0.5311 MB / 0.8424 GB, free: 8.605 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002306/2.502, allocations: 0.5727 MB / 0.843 GB, free: 8.055 MB / 490.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 () * 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.003088/2.505, allocations: 0.8399 MB / 0.8438 GB, free: 7.215 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001807/2.507, allocations: 0.6474 MB / 0.8444 GB, free: 6.562 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01734/2.524, allocations: 6.584 MB / 0.8509 GB, free: 1.137 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.087e-05/2.524, allocations: 39.94 kB / 0.8509 GB, free: 1.098 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.683e-05/2.525, allocations: 16 kB / 0.8509 GB, free: 1.082 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.149e-05/2.525, allocations: 17.95 kB / 0.8509 GB, free: 1.082 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04381/2.568, allocations: 15.46 MB / 0.866 GB, free: 4.77 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.37e-05/2.569, allocations: 0 / 0.866 GB, free: 4.77 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004275/2.573, allocations: 0.5778 MB / 0.8666 GB, free: 4.305 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004148/2.577, allocations: 1.052 MB / 0.8676 GB, free: 3.543 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007883/2.578, allocations: 66.95 kB / 0.8677 GB, free: 3.48 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01911/2.597, allocations: 10.28 MB / 0.8777 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.752e-06/2.597, allocations: 4 kB / 0.8777 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02477/2.622, allocations: 11.12 MB / 0.8886 GB, free: 15.81 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004508/2.626, allocations: 1.211 MB / 0.8898 GB, free: 14.57 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002088/2.628, allocations: 61.41 kB / 0.8898 GB, free: 14.51 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004958/2.633, allocations: 195.7 kB / 0.89 GB, free: 14.32 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001087/2.635, allocations: 202.5 kB / 0.8902 GB, free: 14.12 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005674/2.635, allocations: 86.64 kB / 0.8903 GB, free: 14.04 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01251/2.648, allocations: 4.624 MB / 0.8948 GB, free: 9.449 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.253e-06/2.648, allocations: 4 kB / 0.8948 GB, free: 9.445 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01218/2.66, allocations: 1.786 MB / 0.8966 GB, free: 7.664 MB / 0.5262 GB 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 () * 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.00103/2.661, allocations: 207.4 kB / 0.8968 GB, free: 7.457 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.3138/2.975, allocations: 9.122 MB / 0.9057 GB, free: 151.2 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 8.093e-06/2.975, allocations: 0.5 kB / 0.9057 GB, free: 151.2 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.007727/2.983, allocations: 3.477 MB / 0.9091 GB, free: 150.9 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005884/2.989, allocations: 0.8244 MB / 0.9099 GB, free: 150.8 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04512/3.034, allocations: 15.19 MB / 0.9247 GB, free: 148.2 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01282/3.047, allocations: 5.608 MB / 0.9302 GB, free: 147.3 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002833/3.049, allocations: 0.5031 MB / 0.9307 GB, free: 147.3 MB / 0.5262 GB Notification: Performance of SimCode: time 2.073e-06/3.05, allocations: 0 / 0.9307 GB, free: 147.3 MB / 0.5262 GB Notification: Performance of Templates: time 0.5715/3.621, allocations: 195.3 MB / 1.121 GB, free: 151 MB / 0.5262 GB