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.323/2.323, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004337/0.0004337, allocations: 12 kB / 314.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.3723, allocations: 54.86 MB / 369.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5152/0.8876, allocations: 109.5 MB / 478.9 MB, free: 40.32 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003175/0.888, allocations: 79.34 kB / 479 MB, free: 40.32 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6397/1.528, allocations: 154.2 MB / 0.6183 GB, free: 4.949 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.865e-06/1.528, allocations: 0 / 0.6183 GB, free: 4.949 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004705/1.528, allocations: 128 kB / 0.6184 GB, free: 4.824 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.03119/1.559, allocations: 6.972 MB / 0.6253 GB, free: 13.77 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/1.56, allocations: 8.031 kB / 0.6253 GB, free: 13.76 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007723/1.567, allocations: 1.498 MB / 0.6267 GB, free: 12.25 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05382/1.621, allocations: 6.667 MB / 0.6332 GB, free: 5.559 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03369/1.655, allocations: 8.413 MB / 0.6415 GB, free: 13.08 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009027/1.656, allocations: 0.5294 MB / 0.642 GB, free: 12.55 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004695/1.661, allocations: 0.7066 MB / 0.6427 GB, free: 11.84 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7233/2.384, allocations: 18.86 MB / 0.6611 GB, free: 86.01 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005946/2.385, allocations: 85.7 kB / 0.6612 GB, free: 86.01 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003883/2.388, allocations: 336.4 kB / 0.6615 GB, free: 86.01 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003956/2.392, allocations: 1.719 MB / 0.6632 GB, free: 86 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05428/2.447, allocations: 16.53 MB / 0.6793 GB, free: 85.94 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1223/2.569, allocations: 74.13 MB / 0.7517 GB, free: 42.08 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02574/2.595, allocations: 6.157 MB / 0.7577 GB, free: 39.58 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03645/2.631, allocations: 13.91 MB / 0.7713 GB, free: 32.15 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.49e-05/2.632, allocations: 60.12 kB / 0.7714 GB, free: 32.09 MB / 490.8 MB Notification: Performance of pre-optimization done (n=284): time 7.104e-06/2.632, allocations: 0 / 0.7714 GB, free: 32.09 MB / 490.8 MB Notification: Performance of matching and sorting (n=344): time 0.1525/2.784, allocations: 24.74 MB / 0.7955 GB, free: 21.72 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.724e-05/2.784, allocations: 191.6 kB / 0.7957 GB, free: 21.5 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01514/2.799, allocations: 5.246 MB / 0.8008 GB, free: 17.23 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008089/2.8, allocations: 76.09 kB / 0.8009 GB, free: 17.16 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004535/2.805, allocations: 4.852 MB / 0.8056 GB, free: 12.8 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002217/2.807, allocations: 1.283 MB / 0.8069 GB, free: 11.67 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00176/2.809, allocations: 188 kB / 0.8071 GB, free: 11.49 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.00108/2.81, allocations: 0.7109 MB / 0.8078 GB, free: 10.88 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009999/2.82, allocations: 3.26 MB / 0.8109 GB, free: 8.125 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01436/2.835, allocations: 8.702 MB / 0.8194 GB, free: 13.55 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01527/2.85, allocations: 5.249 MB / 0.8246 GB, free: 8.855 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002479/2.85, allocations: 63.95 kB / 0.8246 GB, free: 8.793 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.04515/2.895, allocations: 12.57 MB / 0.8369 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002821/2.896, allocations: 84 kB / 0.837 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004129/2.896, allocations: 192 kB / 0.8372 GB, free: 13.51 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008264/2.904, allocations: 1.329 MB / 0.8385 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01473/2.919, allocations: 2.189 MB / 0.8406 GB, free: 10.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02199/2.941, allocations: 7.391 MB / 0.8478 GB, free: 3.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01103/2.952, allocations: 0.5569 MB / 0.8484 GB, free: 3.504 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00252/2.955, allocations: 0.5502 MB / 0.8489 GB, free: 2.961 MB / 0.5105 GB 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 () * Number of clocked 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.4061/3.361, allocations: 3.441 MB / 0.8523 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001606/3.363, allocations: 0.5243 MB / 0.8528 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02038/3.383, allocations: 5.328 MB / 0.858 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.075e-05/3.383, allocations: 39.05 kB / 0.858 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.724e-05/3.383, allocations: 3.969 kB / 0.858 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-05/3.383, allocations: 18.42 kB / 0.858 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04201/3.425, allocations: 14.11 MB / 0.8718 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.48e-05/3.426, allocations: 13.38 kB / 0.8718 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004257/3.43, allocations: 0.5244 MB / 0.8723 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006301/3.436, allocations: 0.9336 MB / 0.8732 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008146/3.437, allocations: 67.64 kB / 0.8733 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01534/3.452, allocations: 5.699 MB / 0.8789 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.667e-05/3.452, allocations: 19.03 kB / 0.8789 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02528/3.478, allocations: 10.22 MB / 0.8889 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003493/3.481, allocations: 0.951 MB / 0.8898 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001922/3.483, allocations: 67.42 kB / 0.8899 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005025/3.488, allocations: 188.2 kB / 0.8901 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001141/3.489, allocations: 215.6 kB / 0.8903 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000522/3.49, allocations: 105.7 kB / 0.8904 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01157/3.502, allocations: 3.654 MB / 0.8939 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.413e-06/3.502, allocations: 3.5 kB / 0.8939 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01279/3.515, allocations: 1.66 MB / 0.8956 GB, free: 104.7 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 () * Number of clocked 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.02777/3.542, allocations: 13.26 MB / 0.9085 GB, free: 98.73 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02084/3.563, allocations: 7.778 MB / 0.9161 GB, free: 96.76 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.115e-05/3.563, allocations: 3.469 kB / 0.9161 GB, free: 96.76 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006821/3.57, allocations: 2.392 MB / 0.9184 GB, free: 95.87 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006001/3.576, allocations: 0.6375 MB / 0.9191 GB, free: 95.61 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4936/4.07, allocations: 167.5 MB / 1.083 GB, free: 115 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01367/4.084, allocations: 5.319 MB / 1.088 GB, free: 114.1 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008156/4.092, allocations: 3.396 MB / 1.091 GB, free: 114.1 MB / 0.5574 GB Notification: Performance of SimCode: time 1.272e-06/4.092, allocations: 3.031 kB / 1.091 GB, free: 114.1 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.728/9.82, allocations: 163.2 MB / 1.251 GB, free: 143.4 MB / 0.5574 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