Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.096/2.096, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000464/0.0004637, allocations: 8 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3676, allocations: 48.71 MB / 331.4 MB, free: 6.516 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1824/0.55, allocations: 102 MB / 433.4 MB, free: 8.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/0.5504, allocations: 83.95 kB / 433.5 MB, free: 8.238 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8251/1.376, allocations: 142.2 MB / 0.5622 GB, free: 34.67 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.295e-06/1.376, allocations: 0 / 0.5622 GB, free: 34.67 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004819/1.376, allocations: 131.9 kB / 0.5623 GB, free: 34.54 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: 2162 * Number of variables: 2162 Notification: Performance of Generate backend data structure: time 0.0296/1.406, allocations: 7.306 MB / 0.5694 GB, free: 27.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/1.406, allocations: 8.031 kB / 0.5694 GB, free: 27.14 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005572/1.411, allocations: 1.28 MB / 0.5707 GB, free: 25.85 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06615/1.478, allocations: 9.32 MB / 0.5798 GB, free: 16.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03116/1.509, allocations: 9.161 MB / 0.5887 GB, free: 7.258 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006092/1.509, allocations: 492.6 kB / 0.5892 GB, free: 6.773 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003691/1.513, allocations: 0.6286 MB / 0.5898 GB, free: 6.145 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05267/1.566, allocations: 15.65 MB / 0.6051 GB, free: 5.297 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004742/1.566, allocations: 79.25 kB / 0.6052 GB, free: 5.219 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00359/1.57, allocations: 303.8 kB / 0.6055 GB, free: 4.922 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003829/1.574, allocations: 1.381 MB / 0.6068 GB, free: 3.531 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04656/1.62, allocations: 12.89 MB / 0.6194 GB, free: 6.625 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4223/2.043, allocations: 64.35 MB / 0.6823 GB, free: 39.91 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02919/2.072, allocations: 6.276 MB / 0.6884 GB, free: 39.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02539/2.097, allocations: 11.18 MB / 0.6993 GB, free: 35.81 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.398e-05/2.098, allocations: 62.8 kB / 0.6994 GB, free: 35.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=245): time 6.382e-06/2.098, allocations: 0 / 0.6994 GB, free: 35.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=337): time 0.2582/2.356, allocations: 37.34 MB / 0.7358 GB, free: 25.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/2.356, allocations: 243.3 kB / 0.7361 GB, free: 25.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01874/2.375, allocations: 4.985 MB / 0.7409 GB, free: 21.74 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001193/2.376, allocations: 81.7 kB / 0.741 GB, free: 21.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005607/2.382, allocations: 4.263 MB / 0.7452 GB, free: 17.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002871/2.385, allocations: 1.232 MB / 0.7464 GB, free: 16.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001945/2.387, allocations: 164 kB / 0.7465 GB, free: 16.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001168/2.388, allocations: 0.6541 MB / 0.7472 GB, free: 16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01415/2.402, allocations: 3.6 MB / 0.7507 GB, free: 12.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02003/2.422, allocations: 8.129 MB / 0.7586 GB, free: 3.258 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01775/2.44, allocations: 5.325 MB / 0.7638 GB, free: 14.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002009/2.44, allocations: 48 kB / 0.7639 GB, free: 14.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.0651/2.505, allocations: 14.5 MB / 0.778 GB, free: 2.562 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001488/2.506, allocations: 72.94 kB / 0.7781 GB, free: 2.492 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002632/2.506, allocations: 166.1 kB / 0.7783 GB, free: 2.336 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02211/2.528, allocations: 3.577 MB / 0.7818 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01155/2.54, allocations: 1.793 MB / 0.7835 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3729/2.913, allocations: 18.64 MB / 0.8017 GB, free: 98.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01019/2.923, allocations: 484.7 kB / 0.8022 GB, free: 98.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002322/2.925, allocations: 470.6 kB / 0.8026 GB, free: 98.46 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 721 * Number of states: 0 () * Number of discrete variables: 43 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (969): * Single equations (assignments): 965 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01058/2.936, allocations: 3.114 MB / 0.8057 GB, free: 98.35 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001769/2.938, allocations: 0.5246 MB / 0.8062 GB, free: 98.35 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03791/2.975, allocations: 8.897 MB / 0.8149 GB, free: 98.11 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.783e-05/2.976, allocations: 37.47 kB / 0.8149 GB, free: 98.11 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.915e-05/2.976, allocations: 14.78 kB / 0.8149 GB, free: 98.11 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.199e-05/2.976, allocations: 20.53 kB / 0.8149 GB, free: 98.11 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06499/3.041, allocations: 18.67 MB / 0.8332 GB, free: 96.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.546e-05/3.041, allocations: 5.5 kB / 0.8332 GB, free: 96.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004476/3.045, allocations: 493.5 kB / 0.8336 GB, free: 96.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0203/3.066, allocations: 3.112 MB / 0.8367 GB, free: 96.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008988/3.067, allocations: 65.89 kB / 0.8367 GB, free: 96.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0416/3.108, allocations: 16.31 MB / 0.8527 GB, free: 89.01 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.038e-05/3.108, allocations: 8.5 kB / 0.8527 GB, free: 89.01 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04229/3.151, allocations: 14.16 MB / 0.8665 GB, free: 82.83 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004156/3.155, allocations: 1.096 MB / 0.8676 GB, free: 82.28 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002181/3.157, allocations: 67.14 kB / 0.8676 GB, free: 82.23 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005962/3.163, allocations: 205.1 kB / 0.8678 GB, free: 82.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001463/3.165, allocations: 222.8 kB / 0.8681 GB, free: 82.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005197/3.165, allocations: 87.62 kB / 0.8681 GB, free: 82.14 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009313/3.175, allocations: 3.534 MB / 0.8716 GB, free: 80.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.71e-07/3.175, allocations: 0 / 0.8716 GB, free: 80.98 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01128/3.186, allocations: 1.682 MB / 0.8732 GB, free: 80.79 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.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 (253): * Single equations (assignments): 249 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04303/3.229, allocations: 16.08 MB / 0.8889 GB, free: 70.98 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02035/3.249, allocations: 8.906 MB / 0.8976 GB, free: 63.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-05/3.249, allocations: 0 / 0.8976 GB, free: 63.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00846/3.258, allocations: 3.49 MB / 0.901 GB, free: 60.38 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006121/3.264, allocations: 0.6785 MB / 0.9017 GB, free: 59.81 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4106/3.675, allocations: 138.4 MB / 1.037 GB, free: 51.27 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01403/3.689, allocations: 4.969 MB / 1.042 GB, free: 50.41 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008431/3.697, allocations: 3.106 MB / 1.045 GB, free: 50.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.333e-06/3.697, allocations: 0 / 1.045 GB, free: 50.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.134/9.832, allocations: 154.8 MB / 1.196 GB, free: 111.3 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat