Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSR.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.973/1.973, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004517/0.0004518, allocations: 16 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1033, allocations: 48.69 MB / 331.4 MB, free: 8.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4336/0.537, allocations: 94.46 MB / 425.8 MB, free: 6.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003256/0.5374, allocations: 83.95 kB / 425.9 MB, free: 6.418 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5978/1.135, allocations: 75.68 MB / 0.4898 GB, free: 93.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.166e-06/1.135, allocations: 0 / 0.4898 GB, free: 93.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001991/1.136, allocations: 73.25 kB / 0.4899 GB, free: 93.2 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: 1300 * Number of variables: 1300 Notification: Performance of Generate backend data structure: time 0.01797/1.153, allocations: 3.964 MB / 0.4938 GB, free: 91.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/1.154, allocations: 9.188 kB / 0.4938 GB, free: 91.7 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003365/1.157, allocations: 0.6607 MB / 0.4944 GB, free: 91.64 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006836/1.164, allocations: 0.68 MB / 0.4951 GB, free: 91.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008758/1.173, allocations: 2.214 MB / 0.4972 GB, free: 90.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004858/1.173, allocations: 289.9 kB / 0.4975 GB, free: 90.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002316/1.176, allocations: 383.2 kB / 0.4979 GB, free: 90.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03381/1.209, allocations: 8.925 MB / 0.5066 GB, free: 89.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000203/1.21, allocations: 20.47 kB / 0.5066 GB, free: 89.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002009/1.212, allocations: 171.1 kB / 0.5068 GB, free: 89.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002879/1.215, allocations: 0.834 MB / 0.5076 GB, free: 89.83 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02602/1.241, allocations: 7.299 MB / 0.5147 GB, free: 89.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05687/1.298, allocations: 29.02 MB / 0.5431 GB, free: 71.63 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0127/1.31, allocations: 2.274 MB / 0.5453 GB, free: 70.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01411/1.324, allocations: 7.598 MB / 0.5527 GB, free: 65.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/1.325, allocations: 46.69 kB / 0.5528 GB, free: 65.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 4.067e-06/1.325, allocations: 3.688 kB / 0.5528 GB, free: 65.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=97): time 0.0328/1.357, allocations: 7.126 MB / 0.5597 GB, free: 62.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/1.358, allocations: 144.1 kB / 0.5599 GB, free: 62.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005074/1.363, allocations: 2.337 MB / 0.5621 GB, free: 61.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002494/1.363, allocations: 41.02 kB / 0.5622 GB, free: 61.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001816/1.365, allocations: 2.386 MB / 0.5645 GB, free: 59.74 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006708/1.365, allocations: 392.4 kB / 0.5649 GB, free: 59.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003985/1.366, allocations: 75.16 kB / 0.5649 GB, free: 59.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003452/1.366, allocations: 481.8 kB / 0.5654 GB, free: 59.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003527/1.37, allocations: 1.062 MB / 0.5664 GB, free: 58.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005383/1.375, allocations: 3.45 MB / 0.5698 GB, free: 54.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006219/1.381, allocations: 1.841 MB / 0.5716 GB, free: 52.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.384e-05/1.382, allocations: 24 kB / 0.5716 GB, free: 52.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=497) (initialization): time 0.01517/1.397, allocations: 4.322 MB / 0.5759 GB, free: 48.92 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/1.397, allocations: 44 kB / 0.5759 GB, free: 48.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001594/1.397, allocations: 84 kB / 0.576 GB, free: 48.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001985/1.397, allocations: 124 kB / 0.5761 GB, free: 48.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007519/1.405, allocations: 0.9522 MB / 0.577 GB, free: 47.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002383/1.405, allocations: 167.8 kB / 0.5772 GB, free: 47.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006256/1.412, allocations: 193 kB / 0.5774 GB, free: 47.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009368/1.412, allocations: 235.8 kB / 0.5776 GB, free: 47.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 388 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (497): * Single equations (assignments): 497 * 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.005124/1.418, allocations: 1.593 MB / 0.5791 GB, free: 45.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007852/1.418, allocations: 232.3 kB / 0.5794 GB, free: 45.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004641/1.423, allocations: 1.372 MB / 0.5807 GB, free: 44.44 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/1.423, allocations: 8 kB / 0.5807 GB, free: 44.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/1.423, allocations: 4 kB / 0.5807 GB, free: 44.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.519e-05/1.423, allocations: 11.27 kB / 0.5807 GB, free: 44.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0193/1.443, allocations: 6.171 MB / 0.5868 GB, free: 38.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.592e-05/1.443, allocations: 16 kB / 0.5868 GB, free: 38.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001979/1.445, allocations: 244.1 kB / 0.587 GB, free: 38.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-05/1.445, allocations: 28 kB / 0.587 GB, free: 38.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001474/1.445, allocations: 44 kB / 0.5871 GB, free: 38.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.1e-05/1.445, allocations: 35.06 kB / 0.5871 GB, free: 38.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.831e-05/1.445, allocations: 27.88 kB / 0.5871 GB, free: 38.56 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003662/1.449, allocations: 3.575 MB / 0.5906 GB, free: 34.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009058/1.45, allocations: 332.6 kB / 0.5909 GB, free: 34.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007053/1.45, allocations: 49.02 kB / 0.591 GB, free: 34.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001798/1.452, allocations: 58.64 kB / 0.591 GB, free: 34.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003249/1.452, allocations: 136.9 kB / 0.5912 GB, free: 34.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/1.453, allocations: 52 kB / 0.5912 GB, free: 33.99 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004036/1.457, allocations: 1.66 MB / 0.5928 GB, free: 32.61 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.42e-07/1.457, allocations: 0 / 0.5928 GB, free: 32.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005023/1.462, allocations: 0.6796 MB / 0.5935 GB, free: 31.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 77 * Number of states: 0 () * 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 (130): * Single equations (assignments): 130 * 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.005114/1.467, allocations: 8.678 MB / 0.602 GB, free: 22.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005674/1.473, allocations: 2.526 MB / 0.6045 GB, free: 20.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.878e-05/1.473, allocations: 4 kB / 0.6045 GB, free: 20.58 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001382/1.474, allocations: 0.6082 MB / 0.6051 GB, free: 20.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002286/1.476, allocations: 307.8 kB / 0.6053 GB, free: 19.78 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3284/1.805, allocations: 71.2 MB / 0.6749 GB, free: 61.31 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006474/1.811, allocations: 2.807 MB / 0.6776 GB, free: 60.55 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003424/1.815, allocations: 1.485 MB / 0.6791 GB, free: 60.55 MB / 426.7 MB Notification: Performance of SimCode: time 1.783e-06/1.815, allocations: 1 kB / 0.6791 GB, free: 60.55 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.798/5.613, allocations: 57.77 MB / 0.7355 GB, free: 47.59 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSR_res.mat does not exist to compare? outputFormat=mat