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.JointRRR.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.JointRRR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.015/2.015, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000601/0.0006009, allocations: 16 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1071, allocations: 48.7 MB / 331.4 MB, free: 8.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4383/0.5454, allocations: 96.42 MB / 427.8 MB, free: 4.516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/0.5458, allocations: 75.97 kB / 427.9 MB, free: 4.441 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6011/1.147, allocations: 73.58 MB / 0.4897 GB, free: 90.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.147, allocations: 3.719 kB / 0.4897 GB, free: 90.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002627/1.147, allocations: 78.81 kB / 0.4898 GB, free: 90.34 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: 1385 * Number of variables: 1385 Notification: Performance of Generate backend data structure: time 0.02006/1.167, allocations: 4.286 MB / 0.4939 GB, free: 88.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/1.167, allocations: 10.05 kB / 0.4939 GB, free: 88.74 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00381/1.171, allocations: 0.7033 MB / 0.4946 GB, free: 88.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007932/1.179, allocations: 0.756 MB / 0.4954 GB, free: 88.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01009/1.189, allocations: 2.576 MB / 0.4979 GB, free: 87.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005368/1.19, allocations: 320.4 kB / 0.4982 GB, free: 87.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002582/1.193, allocations: 415 kB / 0.4986 GB, free: 87.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03803/1.231, allocations: 9.951 MB / 0.5083 GB, free: 86.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002595/1.231, allocations: 20.94 kB / 0.5083 GB, free: 86.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002222/1.233, allocations: 186 kB / 0.5085 GB, free: 86.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002936/1.236, allocations: 0.8609 MB / 0.5093 GB, free: 86.83 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02918/1.265, allocations: 8.503 MB / 0.5177 GB, free: 86.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09122/1.357, allocations: 31.85 MB / 0.5487 GB, free: 66.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02312/1.38, allocations: 3.029 MB / 0.5517 GB, free: 65.61 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02678/1.407, allocations: 8.965 MB / 0.5605 GB, free: 60 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.79e-05/1.407, allocations: 50.38 kB / 0.5605 GB, free: 59.95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=91): time 5.891e-06/1.407, allocations: 0 / 0.5605 GB, free: 59.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=108): time 0.06373/1.471, allocations: 8.726 MB / 0.569 GB, free: 55.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.089e-05/1.471, allocations: 115.8 kB / 0.5691 GB, free: 55.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008583/1.479, allocations: 2.51 MB / 0.5716 GB, free: 53.54 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003828/1.48, allocations: 45.7 kB / 0.5716 GB, free: 53.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002568/1.482, allocations: 2.469 MB / 0.574 GB, free: 51.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008248/1.483, allocations: 441.8 kB / 0.5745 GB, free: 50.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005873/1.484, allocations: 84.06 kB / 0.5745 GB, free: 50.81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003864/1.484, allocations: 474.6 kB / 0.575 GB, free: 50.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004722/1.489, allocations: 1.441 MB / 0.5764 GB, free: 49.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007746/1.497, allocations: 3.743 MB / 0.5801 GB, free: 44.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007641/1.505, allocations: 2.221 MB / 0.5822 GB, free: 42.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-05/1.505, allocations: 24 kB / 0.5823 GB, free: 42.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=523) (initialization): time 0.01966/1.524, allocations: 5.073 MB / 0.5872 GB, free: 37.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/1.525, allocations: 41 kB / 0.5872 GB, free: 37.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001779/1.525, allocations: 86.86 kB / 0.5873 GB, free: 37.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001891/1.525, allocations: 124 kB / 0.5875 GB, free: 37.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008297/1.533, allocations: 0.995 MB / 0.5884 GB, free: 36.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000173/1.534, allocations: 160.9 kB / 0.5886 GB, free: 36.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004788/1.538, allocations: 239.8 kB / 0.5888 GB, free: 36.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009036/1.539, allocations: 239.8 kB / 0.589 GB, free: 36.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * Number of states: 0 () * Number of discrete variables: 46 (n1_a1.color[3],n1_a1.color[2],n1_a1.color[1],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],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointRRR.rodColor[3],jointRRR.rodColor[2],jointRRR.rodColor[1],jointRRR.cylinderColor[3],jointRRR.cylinderColor[2],jointRRR.cylinderColor[1],jointRRR.jointUSR.revolute.positiveBranch,jointRRR.jointUSR.rod1Color[3],jointRRR.jointUSR.rod1Color[2],jointRRR.jointUSR.rod1Color[1],jointRRR.jointUSR.cylinderColor[3],jointRRR.jointUSR.cylinderColor[2],jointRRR.jointUSR.cylinderColor[1],jointRRR.jointUSR.sphereColor[3],jointRRR.jointUSR.sphereColor[2],jointRRR.jointUSR.sphereColor[1],jointRRR.jointUSR.revoluteColor[3],jointRRR.jointUSR.revoluteColor[2],jointRRR.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 (521): * Single equations (assignments): 520 * Array equations: 1 * 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.004558/1.544, allocations: 1.749 MB / 0.5907 GB, free: 34.63 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006337/1.545, allocations: 244.2 kB / 0.591 GB, free: 34.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004898/1.549, allocations: 2.053 MB / 0.593 GB, free: 32.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.817e-05/1.55, allocations: 12 kB / 0.593 GB, free: 32.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/1.55, allocations: 4 kB / 0.593 GB, free: 32.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.01e-05/1.55, allocations: 7.406 kB / 0.593 GB, free: 32.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01681/1.566, allocations: 6.983 MB / 0.5998 GB, free: 26.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.566e-05/1.566, allocations: 19.47 kB / 0.5998 GB, free: 26.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002167/1.569, allocations: 296.1 kB / 0.6001 GB, free: 26.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.471e-05/1.569, allocations: 28 kB / 0.6001 GB, free: 26.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001869/1.569, allocations: 48 kB / 0.6002 GB, free: 26.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.161e-05/1.569, allocations: 38.77 kB / 0.6002 GB, free: 26.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-05/1.569, allocations: 27.88 kB / 0.6003 GB, free: 25.98 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004797/1.574, allocations: 4.251 MB / 0.6044 GB, free: 21.27 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/1.575, allocations: 369.5 kB / 0.6048 GB, free: 20.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008754/1.576, allocations: 51.98 kB / 0.6048 GB, free: 20.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002302/1.578, allocations: 71.94 kB / 0.6049 GB, free: 20.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000448/1.579, allocations: 148.1 kB / 0.605 GB, free: 20.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001376/1.579, allocations: 60 kB / 0.6051 GB, free: 20.56 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004196/1.583, allocations: 1.784 MB / 0.6068 GB, free: 18.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.583, allocations: 0 / 0.6068 GB, free: 18.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005446/1.589, allocations: 0.7655 MB / 0.6076 GB, free: 18.01 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 81 * 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 (155): * Single equations (assignments): 155 * 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.006212/1.595, allocations: 9.559 MB / 0.6169 GB, free: 7.871 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007059/1.602, allocations: 3.206 MB / 0.62 GB, free: 4.684 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.698e-05/1.602, allocations: 0 / 0.62 GB, free: 4.684 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001947/1.604, allocations: 0.8864 MB / 0.6209 GB, free: 3.805 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002483/1.606, allocations: 313.9 kB / 0.6212 GB, free: 3.508 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3258/1.932, allocations: 69.92 MB / 0.6895 GB, free: 43.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007399/1.94, allocations: 3.024 MB / 0.6924 GB, free: 42.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004187/1.944, allocations: 1.608 MB / 0.694 GB, free: 42.98 MB / 426.7 MB Notification: Performance of SimCode: time 1.723e-06/1.944, allocations: 3.625 kB / 0.694 GB, free: 42.98 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.188/6.132, allocations: 63.91 MB / 0.7564 GB, free: 27.73 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointRRR_res.mat does not exist to compare? outputFormat=mat