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.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.471/2.471, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.167e-05/4.182e-05, allocations: 4 kB / 309.8 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4003/0.4004, allocations: 54.85 MB / 364.6 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1961/0.5965, allocations: 108.8 MB / 473.4 MB, free: 3.688 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.5968, allocations: 75.97 kB / 473.4 MB, free: 3.613 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8812/1.478, allocations: 142.3 MB / 0.6014 GB, free: 92.84 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.478, allocations: 3.938 kB / 0.6014 GB, free: 92.84 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000501/1.479, allocations: 124 kB / 0.6015 GB, free: 92.72 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: 2163 * Number of variables: 2163 Notification: Performance of Generate backend data structure: time 0.02801/1.507, allocations: 6.651 MB / 0.608 GB, free: 85.99 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/1.507, allocations: 12.03 kB / 0.608 GB, free: 85.98 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005804/1.513, allocations: 1.276 MB / 0.6092 GB, free: 84.69 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06677/1.579, allocations: 9.337 MB / 0.6184 GB, free: 75.33 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03165/1.611, allocations: 9.121 MB / 0.6273 GB, free: 66.12 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005187/1.612, allocations: 484.7 kB / 0.6277 GB, free: 65.65 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003241/1.615, allocations: 0.6403 MB / 0.6283 GB, free: 65.01 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04773/1.663, allocations: 15.53 MB / 0.6435 GB, free: 48.28 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004848/1.663, allocations: 83.3 kB / 0.6436 GB, free: 48.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003095/1.666, allocations: 299.9 kB / 0.6439 GB, free: 47.9 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003259/1.67, allocations: 1.385 MB / 0.6452 GB, free: 46.51 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04066/1.71, allocations: 12.71 MB / 0.6576 GB, free: 33.78 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4836/2.194, allocations: 64.36 MB / 0.7205 GB, free: 61.05 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03119/2.225, allocations: 6.228 MB / 0.7266 GB, free: 60.37 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007024/2.232, allocations: 3.119 MB / 0.7296 GB, free: 60.32 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02704/2.259, allocations: 11.17 MB / 0.7405 GB, free: 57.56 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.414e-05/2.259, allocations: 66.62 kB / 0.7406 GB, free: 57.52 MB / 474.7 MB Notification: Performance of pre-optimization done (n=245): time 5.69e-06/2.259, allocations: 0 / 0.7406 GB, free: 57.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=337): time 0.1873/2.447, allocations: 29.64 MB / 0.7695 GB, free: 53.65 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/2.447, allocations: 247.4 kB / 0.7698 GB, free: 53.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01517/2.462, allocations: 4.921 MB / 0.7746 GB, free: 52.84 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001062/2.463, allocations: 79.22 kB / 0.7747 GB, free: 52.77 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003976/2.467, allocations: 4.272 MB / 0.7788 GB, free: 49.42 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001971/2.469, allocations: 1.227 MB / 0.78 GB, free: 48.51 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001056/2.47, allocations: 165.3 kB / 0.7802 GB, free: 48.38 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004787/2.471, allocations: 0.6657 MB / 0.7808 GB, free: 47.92 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008175/2.479, allocations: 3.524 MB / 0.7843 GB, free: 46.59 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01215/2.491, allocations: 8.051 MB / 0.7921 GB, free: 39.21 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01182/2.503, allocations: 5.284 MB / 0.7973 GB, free: 37.47 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001824/2.503, allocations: 48.38 kB / 0.7973 GB, free: 37.47 MB / 474.7 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.04748/2.551, allocations: 14.36 MB / 0.8114 GB, free: 27.49 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001246/2.551, allocations: 72 kB / 0.8114 GB, free: 27.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002291/2.551, allocations: 161.5 kB / 0.8116 GB, free: 27.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02078/2.572, allocations: 3.559 MB / 0.8151 GB, free: 24.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01119/2.583, allocations: 1.793 MB / 0.8168 GB, free: 23.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04044/2.624, allocations: 17.92 MB / 0.8343 GB, free: 7.832 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01013/2.634, allocations: 474.8 kB / 0.8348 GB, free: 7.438 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001961/2.636, allocations: 476.2 kB / 0.8352 GB, free: 6.98 MB / 474.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 () * 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.00265/2.639, allocations: 0.707 MB / 0.8359 GB, free: 6.27 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001509/2.64, allocations: 0.5245 MB / 0.8364 GB, free: 5.738 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03454/2.675, allocations: 8.913 MB / 0.8451 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.46e-05/2.675, allocations: 36 kB / 0.8452 GB, free: 14.61 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-05/2.675, allocations: 12 kB / 0.8452 GB, free: 14.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.13e-05/2.675, allocations: 16.77 kB / 0.8452 GB, free: 14.58 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06734/2.742, allocations: 18.6 MB / 0.8634 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.414e-05/2.743, allocations: 8.156 kB / 0.8634 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004656/2.747, allocations: 495.2 kB / 0.8638 GB, free: 11.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02072/2.768, allocations: 3.095 MB / 0.8669 GB, free: 8.242 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008785/2.769, allocations: 68.16 kB / 0.8669 GB, free: 8.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04212/2.811, allocations: 15.58 MB / 0.8821 GB, free: 8.469 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.489e-05/2.811, allocations: 11.94 kB / 0.8822 GB, free: 8.457 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04524/2.856, allocations: 14.03 MB / 0.8959 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0048/2.861, allocations: 1.091 MB / 0.8969 GB, free: 8.949 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002087/2.863, allocations: 52.06 kB / 0.897 GB, free: 8.898 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005991/2.869, allocations: 213.1 kB / 0.8972 GB, free: 8.691 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001479/2.871, allocations: 226.9 kB / 0.8974 GB, free: 8.469 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005998/2.872, allocations: 95.58 kB / 0.8975 GB, free: 8.379 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01033/2.882, allocations: 3.479 MB / 0.9009 GB, free: 4.93 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.81e-07/2.882, allocations: 0 / 0.9009 GB, free: 4.93 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01167/2.894, allocations: 1.671 MB / 0.9025 GB, free: 3.27 MB / 0.5261 GB 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 () * 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.3925/3.286, allocations: 15.95 MB / 0.9181 GB, free: 152.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02121/3.307, allocations: 8.779 MB / 0.9267 GB, free: 151.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/3.307, allocations: 5.469 kB / 0.9267 GB, free: 151.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008107/3.316, allocations: 3.43 MB / 0.93 GB, free: 151.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005913/3.322, allocations: 0.6847 MB / 0.9307 GB, free: 151.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0507/3.372, allocations: 15.83 MB / 0.9461 GB, free: 148 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01136/3.384, allocations: 4.962 MB / 0.951 GB, free: 146.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007594/3.391, allocations: 3.107 MB / 0.954 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.492e-06/3.391, allocations: 0 / 0.954 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.823/9.215, allocations: 156.8 MB / 1.107 GB, free: 140.9 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat