Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.405/2.405, allocations: 235 MB / 248.1 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.081e-05/3.094e-05, allocations: 0 / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4052/0.4053, allocations: 54.85 MB / 364.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1972/0.6026, allocations: 109.5 MB / 474.1 MB, free: 3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/0.6029, allocations: 75.95 kB / 474.2 MB, free: 2.926 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9703/1.573, allocations: 154.3 MB / 0.6138 GB, free: 80.06 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.254e-06/1.573, allocations: 0 / 0.6138 GB, free: 80.06 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003959/1.574, allocations: 132 kB / 0.6139 GB, free: 79.93 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: 2561 * Number of variables: 2561 Notification: Performance of Generate backend data structure: time 0.02732/1.601, allocations: 6.55 MB / 0.6203 GB, free: 73.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/1.601, allocations: 8.031 kB / 0.6203 GB, free: 73.29 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00691/1.608, allocations: 1.494 MB / 0.6217 GB, free: 71.79 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05051/1.659, allocations: 6.679 MB / 0.6283 GB, free: 65.09 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02994/1.689, allocations: 8.384 MB / 0.6365 GB, free: 56.64 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007212/1.689, allocations: 0.5294 MB / 0.637 GB, free: 56.11 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004846/1.694, allocations: 0.7066 MB / 0.6377 GB, free: 55.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05919/1.753, allocations: 18.68 MB / 0.6559 GB, free: 35.38 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004333/1.754, allocations: 87.12 kB / 0.656 GB, free: 35.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003551/1.758, allocations: 335.8 kB / 0.6563 GB, free: 34.96 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003779/1.761, allocations: 1.719 MB / 0.658 GB, free: 33.24 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05121/1.813, allocations: 16.21 MB / 0.6738 GB, free: 17.01 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8274/2.64, allocations: 74.11 MB / 0.7462 GB, free: 46.42 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03322/2.673, allocations: 6.113 MB / 0.7522 GB, free: 45.17 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008674/2.682, allocations: 2.707 MB / 0.7548 GB, free: 45.11 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05117/2.733, allocations: 13.91 MB / 0.7684 GB, free: 40.77 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.991e-05/2.733, allocations: 72.81 kB / 0.7685 GB, free: 40.73 MB / 474.8 MB Notification: Performance of pre-optimization done (n=284): time 7.033e-06/2.733, allocations: 0 / 0.7685 GB, free: 40.73 MB / 474.8 MB Notification: Performance of matching and sorting (n=344): time 0.1083/2.842, allocations: 19.3 MB / 0.7873 GB, free: 36.7 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/2.842, allocations: 191.5 kB / 0.7875 GB, free: 36.5 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01329/2.855, allocations: 5.141 MB / 0.7925 GB, free: 35.58 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007985/2.856, allocations: 79.59 kB / 0.7926 GB, free: 35.51 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004283/2.86, allocations: 4.857 MB / 0.7973 GB, free: 31.7 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001993/2.862, allocations: 1.282 MB / 0.7986 GB, free: 30.76 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001466/2.864, allocations: 186.6 kB / 0.7988 GB, free: 30.61 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0009818/2.865, allocations: 0.7141 MB / 0.7994 GB, free: 30.13 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008687/2.874, allocations: 3.138 MB / 0.8025 GB, free: 29.05 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01236/2.886, allocations: 8.587 MB / 0.8109 GB, free: 20.69 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01215/2.898, allocations: 5.185 MB / 0.816 GB, free: 19.12 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002086/2.899, allocations: 53.72 kB / 0.816 GB, free: 19.12 MB / 474.8 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03849/2.937, allocations: 12.32 MB / 0.828 GB, free: 15.21 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000149/2.937, allocations: 91.66 kB / 0.8281 GB, free: 15.21 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003/2.938, allocations: 195.3 kB / 0.8283 GB, free: 15.21 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007603/2.945, allocations: 1.318 MB / 0.8296 GB, free: 14.85 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01408/2.959, allocations: 2.181 MB / 0.8317 GB, free: 12.95 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01788/2.977, allocations: 7.097 MB / 0.8387 GB, free: 6.574 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0112/2.988, allocations: 0.5587 MB / 0.8392 GB, free: 6.098 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002301/2.991, allocations: 0.5466 MB / 0.8397 GB, free: 5.559 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 876 * Number of states: 0 () * Number of discrete variables: 43 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1152): * Single equations (assignments): 1145 * Array equations: 6 * 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 {(2,100.0%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003635/2.995, allocations: 0.806 MB / 0.8405 GB, free: 4.75 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001435/2.996, allocations: 0.5282 MB / 0.841 GB, free: 4.215 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02033/3.016, allocations: 5.281 MB / 0.8462 GB, free: 15.84 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001029/3.016, allocations: 39.95 kB / 0.8462 GB, free: 15.8 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.391e-05/3.017, allocations: 8 kB / 0.8463 GB, free: 15.79 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.86e-05/3.017, allocations: 13.17 kB / 0.8463 GB, free: 15.79 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05267/3.069, allocations: 14.06 MB / 0.86 GB, free: 4.051 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.659e-05/3.069, allocations: 12 kB / 0.86 GB, free: 4.039 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004965/3.074, allocations: 0.5308 MB / 0.8605 GB, free: 3.605 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006855/3.081, allocations: 0.9243 MB / 0.8614 GB, free: 2.941 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007753/3.082, allocations: 64 kB / 0.8615 GB, free: 2.879 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01551/3.098, allocations: 5.4 MB / 0.8668 GB, free: 13.99 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-05/3.098, allocations: 23.88 kB / 0.8668 GB, free: 13.96 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02693/3.125, allocations: 10.14 MB / 0.8767 GB, free: 4.199 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003905/3.129, allocations: 0.9484 MB / 0.8776 GB, free: 3.301 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001378/3.13, allocations: 67.84 kB / 0.8777 GB, free: 3.238 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004579/3.135, allocations: 195.5 kB / 0.8779 GB, free: 3.109 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001063/3.136, allocations: 214.7 kB / 0.8781 GB, free: 2.965 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000362/3.136, allocations: 106.2 kB / 0.8782 GB, free: 2.867 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01188/3.148, allocations: 3.641 MB / 0.8817 GB, free: 0 / 0.4949 GB Notification: Performance of sort global known variables: time 9.72e-07/3.148, allocations: 336 / 0.8817 GB, free: 0 / 0.4949 GB Notification: Performance of remove unused functions: time 0.01602/3.164, allocations: 1.859 MB / 0.8835 GB, free: 14.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (267): * Single equations (assignments): 260 * Array equations: 6 * 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 {(2,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02984/3.194, allocations: 13.16 MB / 0.8964 GB, free: 2.152 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3629/3.557, allocations: 7.603 MB / 0.9038 GB, free: 140.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.574e-05/3.557, allocations: 6.875 kB / 0.9038 GB, free: 140.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006801/3.564, allocations: 2.36 MB / 0.9061 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005854/3.57, allocations: 0.6447 MB / 0.9068 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05528/3.625, allocations: 15.85 MB / 0.9222 GB, free: 137.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01877/3.644, allocations: 5.32 MB / 0.9274 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01211/3.656, allocations: 3.399 MB / 0.9307 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of SimCode: time 2.415e-06/3.656, allocations: 0 / 0.9307 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.926/9.582, allocations: 165.1 MB / 1.092 GB, free: 112.3 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat does not exist to compare? outputFormat=mat