Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointUSR.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.31/2.31, allocations: 235.1 MB / 243 MB, free: 9.602 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.978e-05/2.979e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3484, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1855/0.5339, allocations: 100.2 MB / 458.3 MB, free: 10.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/0.5343, allocations: 75.95 kB / 458.4 MB, free: 10.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6405/1.175, allocations: 73.97 MB / 0.5199 GB, free: 48.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.545e-06/1.175, allocations: 0 / 0.5199 GB, free: 48.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001817/1.175, allocations: 72 kB / 0.52 GB, free: 48.75 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: 1300 * Number of variables: 1300 Notification: Performance of Generate backend data structure: time 0.01497/1.19, allocations: 3.792 MB / 0.5237 GB, free: 44.89 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/1.19, allocations: 8.031 kB / 0.5237 GB, free: 44.89 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005897/1.196, allocations: 0.6738 MB / 0.5243 GB, free: 44.21 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007834/1.204, allocations: 2.212 MB / 0.5265 GB, free: 41.95 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002267/1.204, allocations: 124 kB / 0.5266 GB, free: 41.83 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001729/1.206, allocations: 224 kB / 0.5268 GB, free: 41.61 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01544/1.221, allocations: 5.457 MB / 0.5322 GB, free: 36.15 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02307/1.245, allocations: 7.117 MB / 0.5391 GB, free: 28.65 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001995/1.245, allocations: 23.81 kB / 0.5391 GB, free: 28.63 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001813/1.247, allocations: 15.94 kB / 0.5392 GB, free: 28.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0034/1.25, allocations: 0.8349 MB / 0.54 GB, free: 27.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07367/1.324, allocations: 27.67 MB / 0.567 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004639/1.329, allocations: 1.368 MB / 0.5683 GB, free: 14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003061/1.332, allocations: 1.005 MB / 0.5693 GB, free: 12.99 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01719/1.349, allocations: 7.33 MB / 0.5765 GB, free: 5.121 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.944e-05/1.349, allocations: 47.06 kB / 0.5765 GB, free: 5.066 MB / 410.7 MB Notification: Performance of pre-optimization done (n=74): time 4.148e-06/1.349, allocations: 4 kB / 0.5765 GB, free: 5.062 MB / 410.7 MB Notification: Performance of matching and sorting (n=87): time 0.02477/1.374, allocations: 6.152 MB / 0.5825 GB, free: 14.86 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/1.374, allocations: 141.2 kB / 0.5827 GB, free: 14.69 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004737/1.379, allocations: 1.965 MB / 0.5846 GB, free: 12.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002264/1.379, allocations: 25.7 kB / 0.5846 GB, free: 12.67 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002698/1.382, allocations: 2.508 MB / 0.5871 GB, free: 10.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006144/1.382, allocations: 355.6 kB / 0.5874 GB, free: 9.773 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004512/1.383, allocations: 7.875 kB / 0.5874 GB, free: 9.766 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004297/1.383, allocations: 475.5 kB / 0.5879 GB, free: 9.289 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002948/1.386, allocations: 0.9763 MB / 0.5888 GB, free: 8.305 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005355/1.392, allocations: 3.431 MB / 0.5922 GB, free: 3.609 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006736/1.398, allocations: 1.924 MB / 0.594 GB, free: 1.684 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-05/1.399, allocations: 24 kB / 0.5941 GB, free: 1.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=513) (initialization): time 0.01406/1.413, allocations: 3.955 MB / 0.5979 GB, free: 13.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/1.413, allocations: 47.98 kB / 0.598 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001843/1.413, allocations: 88 kB / 0.5981 GB, free: 13.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001973/1.413, allocations: 128 kB / 0.5982 GB, free: 13.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006221/1.419, allocations: 0.9669 MB / 0.5991 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001942/1.42, allocations: 171.3 kB / 0.5993 GB, free: 12.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00406/1.424, allocations: 127.9 kB / 0.5994 GB, free: 12.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009536/1.425, allocations: 244 kB / 0.5996 GB, free: 11.95 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 406 * Number of states: 0 () * Number of discrete variables: 40 (jointUSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (513): * Single equations (assignments): 513 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001195/1.426, allocations: 342.2 kB / 0.6 GB, free: 11.61 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002826/1.429, allocations: 1.064 MB / 0.601 GB, free: 10.53 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006314/1.43, allocations: 205.4 kB / 0.6012 GB, free: 10.33 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/1.433, allocations: 1.119 MB / 0.6023 GB, free: 9.195 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/1.433, allocations: 8 kB / 0.6023 GB, free: 9.188 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/1.433, allocations: 0 / 0.6023 GB, free: 9.188 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.585e-05/1.433, allocations: 7.984 kB / 0.6023 GB, free: 9.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01304/1.446, allocations: 4.611 MB / 0.6068 GB, free: 4.258 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.841e-05/1.446, allocations: 16 kB / 0.6068 GB, free: 4.242 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001503/1.448, allocations: 223.6 kB / 0.607 GB, free: 4.023 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.955e-05/1.448, allocations: 24 kB / 0.6071 GB, free: 4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.743e-05/1.448, allocations: 20 kB / 0.6071 GB, free: 3.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.263e-05/1.448, allocations: 35.86 kB / 0.6071 GB, free: 3.945 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.709e-05/1.448, allocations: 23.94 kB / 0.6071 GB, free: 3.922 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00402/1.452, allocations: 2.964 MB / 0.61 GB, free: 176 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008431/1.453, allocations: 290.5 kB / 0.6103 GB, free: 15.86 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000515/1.453, allocations: 31.77 kB / 0.6103 GB, free: 15.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/1.455, allocations: 27.97 kB / 0.6104 GB, free: 15.81 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002961/1.455, allocations: 127.9 kB / 0.6105 GB, free: 15.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/1.455, allocations: 52 kB / 0.6105 GB, free: 15.63 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003469/1.459, allocations: 1.285 MB / 0.6118 GB, free: 14.33 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.163e-06/1.459, allocations: 4 kB / 0.6118 GB, free: 14.33 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005117/1.464, allocations: 0.582 MB / 0.6124 GB, free: 13.75 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006475/1.47, allocations: 8.068 MB / 0.6202 GB, free: 5.156 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005834/1.476, allocations: 2.238 MB / 0.6224 GB, free: 2.941 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.077e-05/1.476, allocations: 4 kB / 0.6224 GB, free: 2.938 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/1.478, allocations: 0.5038 MB / 0.6229 GB, free: 2.434 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002/1.48, allocations: 218.7 kB / 0.6231 GB, free: 2.219 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3731/1.853, allocations: 6.71 MB / 0.6297 GB, free: 120.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01656/1.869, allocations: 2.801 MB / 0.6324 GB, free: 119.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00403/1.874, allocations: 1.488 MB / 0.6339 GB, free: 119.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.563e-06/1.874, allocations: 3.438 kB / 0.6339 GB, free: 119.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.484/5.357, allocations: 55.54 MB / 0.6881 GB, free: 93.34 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointUSR_res.mat does not exist to compare? outputFormat=mat