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.JointUSR.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.JointUSR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.933/1.933, allocations: 209.2 MB / 224.8 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004773/0.0004773, allocations: 12 kB / 282.7 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1121, allocations: 48.71 MB / 331.4 MB, free: 8.902 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4552/0.5673, allocations: 104.2 MB / 435.5 MB, free: 12.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/0.5677, allocations: 79.97 kB / 435.6 MB, free: 12.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.019/1.587, allocations: 171.8 MB / 0.5932 GB, free: 39.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.647e-06/1.587, allocations: 0 / 0.5932 GB, free: 39.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000487/1.588, allocations: 148 kB / 0.5933 GB, free: 39.57 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.03532/1.623, allocations: 8.22 MB / 0.6013 GB, free: 31.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/1.623, allocations: 12.02 kB / 0.6013 GB, free: 31.25 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008364/1.631, allocations: 1.63 MB / 0.6029 GB, free: 29.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05294/1.684, allocations: 6.935 MB / 0.6097 GB, free: 22.65 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03457/1.719, allocations: 9.873 MB / 0.6193 GB, free: 12.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008813/1.72, allocations: 0.5657 MB / 0.6199 GB, free: 12.12 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005576/1.725, allocations: 0.7613 MB / 0.6206 GB, free: 11.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08108/1.807, allocations: 20.78 MB / 0.6409 GB, free: 5.145 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005261/1.807, allocations: 91.19 kB / 0.641 GB, free: 5.055 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00438/1.812, allocations: 363.8 kB / 0.6414 GB, free: 4.699 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005369/1.817, allocations: 1.958 MB / 0.6433 GB, free: 2.738 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3882/2.205, allocations: 18.31 MB / 0.6612 GB, free: 64.1 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1579/2.363, allocations: 82.17 MB / 0.7414 GB, free: 15.51 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02908/2.392, allocations: 7.361 MB / 0.7486 GB, free: 12.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04438/2.437, allocations: 18.22 MB / 0.7664 GB, free: 3.336 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.58e-05/2.437, allocations: 66.62 kB / 0.7665 GB, free: 3.273 MB / 426.7 MB Notification: Performance of pre-optimization done (n=332): time 7.865e-06/2.437, allocations: 0 / 0.7665 GB, free: 3.273 MB / 426.7 MB Notification: Performance of matching and sorting (n=413): time 0.2431/2.68, allocations: 36.26 MB / 0.8019 GB, free: 11.12 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001613/2.68, allocations: 203.8 kB / 0.8021 GB, free: 10.88 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01752/2.698, allocations: 5.815 MB / 0.8077 GB, free: 6.008 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001065/2.699, allocations: 82.56 kB / 0.8078 GB, free: 5.922 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006735/2.706, allocations: 5.256 MB / 0.8129 GB, free: 1.172 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.3592/3.065, allocations: 1.509 MB / 0.8144 GB, free: 97.25 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0022/3.067, allocations: 208.4 kB / 0.8146 GB, free: 97.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001317/3.069, allocations: 0.7581 MB / 0.8154 GB, free: 96.92 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01379/3.082, allocations: 4.185 MB / 0.8194 GB, free: 96.89 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01833/3.101, allocations: 9.997 MB / 0.8292 GB, free: 89.48 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01751/3.118, allocations: 6.341 MB / 0.8354 GB, free: 89.41 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004126/3.119, allocations: 58.31 kB / 0.8355 GB, free: 89.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.05574/3.175, allocations: 15.75 MB / 0.8508 GB, free: 88.67 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000206/3.175, allocations: 93.69 kB / 0.8509 GB, free: 88.67 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003478/3.175, allocations: 204.5 kB / 0.8511 GB, free: 88.67 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01392/3.189, allocations: 2.351 MB / 0.8534 GB, free: 88.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01581/3.205, allocations: 2.441 MB / 0.8558 GB, free: 88.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03098/3.236, allocations: 12.01 MB / 0.8675 GB, free: 84.65 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01355/3.25, allocations: 0.6823 MB / 0.8682 GB, free: 84.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002839/3.252, allocations: 0.5916 MB / 0.8688 GB, free: 84.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 931 * Number of states: 0 () * Number of discrete variables: 46 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[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 (1269): * Single equations (assignments): 1262 * 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%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01235/3.265, allocations: 3.757 MB / 0.8724 GB, free: 82.82 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001699/3.267, allocations: 0.5939 MB / 0.873 GB, free: 82.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03105/3.298, allocations: 8.169 MB / 0.881 GB, free: 79.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001305/3.298, allocations: 62.28 kB / 0.8811 GB, free: 79.89 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.567e-05/3.298, allocations: 13.44 kB / 0.8811 GB, free: 79.89 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001037/3.298, allocations: 20.25 kB / 0.8811 GB, free: 79.89 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06412/3.362, allocations: 18.82 MB / 0.8995 GB, free: 72.63 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.585e-05/3.362, allocations: 11.75 kB / 0.8995 GB, free: 72.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005717/3.368, allocations: 0.6362 MB / 0.9001 GB, free: 72.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01238/3.38, allocations: 1.901 MB / 0.902 GB, free: 72.23 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001051/3.382, allocations: 82.91 kB / 0.902 GB, free: 72.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02722/3.409, allocations: 10.35 MB / 0.9121 GB, free: 64.23 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.578e-05/3.409, allocations: 23.83 kB / 0.9122 GB, free: 64.21 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03668/3.446, allocations: 14.28 MB / 0.9261 GB, free: 51.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004534/3.45, allocations: 1.165 MB / 0.9272 GB, free: 50.12 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001936/3.452, allocations: 76.38 kB / 0.9273 GB, free: 50.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006163/3.458, allocations: 264.1 kB / 0.9276 GB, free: 49.88 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001367/3.46, allocations: 260 kB / 0.9278 GB, free: 49.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004073/3.46, allocations: 107.5 kB / 0.9279 GB, free: 49.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0113/3.471, allocations: 4.072 MB / 0.9319 GB, free: 46.28 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.31e-07/3.472, allocations: 0 / 0.9319 GB, free: 46.28 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01463/3.486, allocations: 1.937 MB / 0.9338 GB, free: 44.37 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * 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 (324): * Single equations (assignments): 317 * 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%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03961/3.526, allocations: 17.24 MB / 0.9506 GB, free: 28.46 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02611/3.552, allocations: 9.831 MB / 0.9602 GB, free: 19.74 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.94e-05/3.552, allocations: 8 kB / 0.9602 GB, free: 19.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008771/3.561, allocations: 3.319 MB / 0.9635 GB, free: 16.75 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00645/3.567, allocations: 0.7344 MB / 0.9642 GB, free: 16.13 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.464/4.031, allocations: 177.1 MB / 1.137 GB, free: 7.375 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01815/4.05, allocations: 5.753 MB / 1.143 GB, free: 6.469 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01112/4.061, allocations: 3.759 MB / 1.146 GB, free: 6.457 MB / 0.5261 GB Notification: Performance of SimCode: time 1.553e-06/4.061, allocations: 0 / 1.146 GB, free: 6.457 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.896/9.957, allocations: 181.1 MB / 1.323 GB, free: 90.79 MB / 0.5261 GB