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.JointSSR.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.JointSSR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.981/1.981, allocations: 209.2 MB / 224.8 MB, free: 300 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004469/0.000447, allocations: 12 kB / 282.7 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3904/0.3908, allocations: 48.7 MB / 331.4 MB, free: 6.387 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1867/0.5776, allocations: 102.8 MB / 434.2 MB, free: 7.434 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/0.5779, allocations: 79.95 kB / 434.3 MB, free: 7.355 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9263/1.504, allocations: 154.2 MB / 0.5747 GB, free: 21.47 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.504, allocations: 0 / 0.5747 GB, free: 21.47 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004084/1.505, allocations: 136 kB / 0.5748 GB, free: 21.34 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: 2561 * Number of variables: 2561 Notification: Performance of Generate backend data structure: time 0.0285/1.533, allocations: 6.964 MB / 0.5816 GB, free: 14.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/1.533, allocations: 8.031 kB / 0.5816 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006918/1.54, allocations: 1.498 MB / 0.5831 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05101/1.591, allocations: 6.671 MB / 0.5896 GB, free: 6.074 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03049/1.622, allocations: 8.417 MB / 0.5978 GB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008564/1.623, allocations: 0.5294 MB / 0.5983 GB, free: 13.06 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004599/1.627, allocations: 0.7066 MB / 0.599 GB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06806/1.695, allocations: 18.85 MB / 0.6174 GB, free: 8.156 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005194/1.696, allocations: 95.12 kB / 0.6175 GB, free: 8.062 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004157/1.7, allocations: 331.8 kB / 0.6178 GB, free: 7.738 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004637/1.705, allocations: 1.723 MB / 0.6195 GB, free: 6.012 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6763/2.381, allocations: 16.53 MB / 0.6356 GB, free: 69.69 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1334/2.515, allocations: 74.12 MB / 0.708 GB, free: 26.14 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02635/2.541, allocations: 6.149 MB / 0.714 GB, free: 23.64 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03737/2.578, allocations: 13.92 MB / 0.7276 GB, free: 16.2 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.42e-05/2.579, allocations: 65.83 kB / 0.7277 GB, free: 16.15 MB / 426.8 MB Notification: Performance of pre-optimization done (n=284): time 6.733e-06/2.579, allocations: 0 / 0.7277 GB, free: 16.15 MB / 426.8 MB Notification: Performance of matching and sorting (n=344): time 0.1497/2.728, allocations: 24.74 MB / 0.7518 GB, free: 5.629 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.138e-05/2.729, allocations: 199.6 kB / 0.752 GB, free: 5.402 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01307/2.742, allocations: 5.243 MB / 0.7572 GB, free: 1.023 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008631/2.743, allocations: 72.83 kB / 0.7572 GB, free: 0.9492 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005525/2.748, allocations: 4.858 MB / 0.762 GB, free: 12.57 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002457/2.751, allocations: 1.281 MB / 0.7632 GB, free: 11.44 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001349/2.752, allocations: 188 kB / 0.7634 GB, free: 11.25 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0009063/2.753, allocations: 0.7059 MB / 0.7641 GB, free: 10.65 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01015/2.763, allocations: 3.26 MB / 0.7673 GB, free: 7.895 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0161/2.779, allocations: 8.703 MB / 0.7758 GB, free: 13.32 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01451/2.794, allocations: 5.254 MB / 0.7809 GB, free: 8.617 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002261/2.794, allocations: 56 kB / 0.781 GB, free: 8.562 MB / 458.8 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.3748/3.169, allocations: 12.6 MB / 0.7933 GB, free: 90.73 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001722/3.169, allocations: 89.97 kB / 0.7933 GB, free: 90.73 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003519/3.17, allocations: 189.7 kB / 0.7935 GB, free: 90.73 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008069/3.178, allocations: 1.325 MB / 0.7948 GB, free: 90.72 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01428/3.192, allocations: 2.188 MB / 0.797 GB, free: 90.72 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02016/3.212, allocations: 7.395 MB / 0.8042 GB, free: 89.38 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01125/3.223, allocations: 0.5526 MB / 0.8047 GB, free: 89.38 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002462/3.226, allocations: 0.5463 MB / 0.8052 GB, free: 89.38 MB / 458.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 () * 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.01033/3.236, allocations: 3.444 MB / 0.8086 GB, free: 89.26 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001389/3.238, allocations: 0.5356 MB / 0.8091 GB, free: 89.26 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01946/3.257, allocations: 5.333 MB / 0.8143 GB, free: 89.04 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.642e-05/3.257, allocations: 39.52 kB / 0.8144 GB, free: 89.04 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-05/3.257, allocations: 9.781 kB / 0.8144 GB, free: 89.04 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.421e-05/3.257, allocations: 14.53 kB / 0.8144 GB, free: 89.04 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04567/3.303, allocations: 14.1 MB / 0.8282 GB, free: 87.63 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.328e-05/3.303, allocations: 11.41 kB / 0.8282 GB, free: 87.63 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004499/3.308, allocations: 0.5369 MB / 0.8287 GB, free: 87.63 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0065/3.314, allocations: 0.9175 MB / 0.8296 GB, free: 87.62 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006951/3.315, allocations: 68.2 kB / 0.8297 GB, free: 87.62 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01503/3.33, allocations: 5.71 MB / 0.8352 GB, free: 85.78 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.388e-05/3.33, allocations: 14.78 kB / 0.8353 GB, free: 85.78 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02477/3.355, allocations: 10.23 MB / 0.8453 GB, free: 80.23 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003441/3.358, allocations: 0.9443 MB / 0.8462 GB, free: 79.77 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001731/3.36, allocations: 64.58 kB / 0.8462 GB, free: 79.73 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004887/3.365, allocations: 192.6 kB / 0.8464 GB, free: 79.7 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001011/3.366, allocations: 221.5 kB / 0.8466 GB, free: 79.65 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003688/3.367, allocations: 100.8 kB / 0.8467 GB, free: 79.63 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.009995/3.377, allocations: 3.652 MB / 0.8503 GB, free: 78.46 MB / 458.8 MB Notification: Performance of sort global known variables: time 9.52e-07/3.377, allocations: 0 / 0.8503 GB, free: 78.46 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01158/3.388, allocations: 1.665 MB / 0.8519 GB, free: 78.27 MB / 458.8 MB 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.02634/3.415, allocations: 13.25 MB / 0.8649 GB, free: 69.75 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01973/3.434, allocations: 7.777 MB / 0.8725 GB, free: 67.52 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.594e-05/3.434, allocations: 0 / 0.8725 GB, free: 67.52 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006506/3.441, allocations: 2.395 MB / 0.8748 GB, free: 66.57 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005569/3.447, allocations: 0.6431 MB / 0.8754 GB, free: 66.3 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4126/3.859, allocations: 167.5 MB / 1.039 GB, free: 24.36 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01362/3.873, allocations: 5.324 MB / 1.044 GB, free: 23.48 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008047/3.881, allocations: 3.402 MB / 1.048 GB, free: 23.47 MB / 474.8 MB Notification: Performance of SimCode: time 1.473e-06/3.881, allocations: 0 / 1.048 GB, free: 23.47 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.828/9.71, allocations: 163.2 MB / 1.207 GB, free: 115.9 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat does not exist to compare? outputFormat=mat