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.JointUSR.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.279/2.279, allocations: 235.1 MB / 243 MB, free: 15.68 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.881e-05/1.895e-05, allocations: 4 kB / 303.3 MB, free: 3.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3423, allocations: 54.86 MB / 358.1 MB, free: 15.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1969/0.5393, allocations: 110.1 MB / 468.3 MB, free: 1.328 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/0.5396, allocations: 75.97 kB / 468.3 MB, free: 1.254 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9654/1.505, allocations: 168.7 MB / 0.6221 GB, free: 7.383 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.053e-06/1.505, allocations: 4 kB / 0.6221 GB, free: 7.379 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005228/1.506, allocations: 144 kB / 0.6222 GB, free: 7.238 MB / 442.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.0343/1.54, allocations: 7.703 MB / 0.6297 GB, free: 15.45 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/1.54, allocations: 8.031 kB / 0.6297 GB, free: 15.45 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05474/1.595, allocations: 6.947 MB / 0.6365 GB, free: 8.477 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7358/2.331, allocations: 9.822 MB / 0.6461 GB, free: 67.54 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006313/2.331, allocations: 247.3 kB / 0.6464 GB, free: 67.54 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004492/2.336, allocations: 461.1 kB / 0.6468 GB, free: 67.54 MB / 458.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03121/2.367, allocations: 13.15 MB / 0.6596 GB, free: 67.5 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04615/2.413, allocations: 17.61 MB / 0.6768 GB, free: 63.64 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000584/2.414, allocations: 97.25 kB / 0.6769 GB, free: 63.64 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004078/2.418, allocations: 42.41 kB / 0.677 GB, free: 63.64 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004679/2.423, allocations: 1.958 MB / 0.6789 GB, free: 63.63 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1326/2.555, allocations: 78.91 MB / 0.7559 GB, free: 13.82 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01077/2.566, allocations: 5.989 MB / 0.7618 GB, free: 10.62 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007544/2.574, allocations: 3.871 MB / 0.7656 GB, free: 9.016 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04732/2.621, allocations: 17.98 MB / 0.7831 GB, free: 10.19 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.359e-05/2.621, allocations: 73.22 kB / 0.7832 GB, free: 10.12 MB / 474.8 MB Notification: Performance of pre-optimization done (n=334): time 7.805e-06/2.621, allocations: 0 / 0.7832 GB, free: 10.12 MB / 474.8 MB Notification: Performance of matching and sorting (n=426): time 0.1214/2.743, allocations: 26.63 MB / 0.8092 GB, free: 4.156 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/2.743, allocations: 193 kB / 0.8094 GB, free: 3.93 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01329/2.756, allocations: 5.064 MB / 0.8143 GB, free: 15.57 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0009495/2.757, allocations: 25.7 kB / 0.8143 GB, free: 15.54 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.005915/2.763, allocations: 5.394 MB / 0.8196 GB, free: 10.61 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002731/2.766, allocations: 1.515 MB / 0.8211 GB, free: 9.242 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001414/2.767, allocations: 2.969 kB / 0.8211 GB, free: 9.242 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001044/2.768, allocations: 0.7776 MB / 0.8219 GB, free: 8.59 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01067/2.779, allocations: 3.964 MB / 0.8257 GB, free: 5.004 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3645/3.144, allocations: 10.01 MB / 0.8355 GB, free: 101.1 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01802/3.162, allocations: 6.403 MB / 0.8418 GB, free: 101 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005336/3.162, allocations: 61.47 kB / 0.8418 GB, free: 101 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1431) (initialization): time 0.05099/3.213, allocations: 14.67 MB / 0.8561 GB, free: 100.6 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002372/3.214, allocations: 97.47 kB / 0.8562 GB, free: 100.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003813/3.214, allocations: 215.6 kB / 0.8564 GB, free: 100.6 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01359/3.228, allocations: 2.304 MB / 0.8587 GB, free: 100.6 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01687/3.245, allocations: 2.548 MB / 0.8612 GB, free: 100.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0279/3.273, allocations: 11.12 MB / 0.872 GB, free: 98.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01341/3.286, allocations: 0.4926 MB / 0.8725 GB, free: 98.9 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00295/3.289, allocations: 0.62 MB / 0.8731 GB, free: 98.9 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 979 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1330): * Single equations (assignments): 1323 * 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.004646/3.294, allocations: 0.6313 MB / 0.8737 GB, free: 98.57 MB / 0.4949 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02809/3.322, allocations: 7.877 MB / 0.8814 GB, free: 98.37 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002032/3.324, allocations: 0.5662 MB / 0.882 GB, free: 98.37 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02929/3.353, allocations: 7.94 MB / 0.8897 GB, free: 98.11 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001435/3.353, allocations: 65.14 kB / 0.8898 GB, free: 98.11 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.527e-05/3.353, allocations: 13.59 kB / 0.8898 GB, free: 98.11 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.148e-05/3.354, allocations: 19.22 kB / 0.8898 GB, free: 98.11 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05769/3.411, allocations: 17.16 MB / 0.9066 GB, free: 91.42 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-05/3.411, allocations: 10.72 kB / 0.9066 GB, free: 91.42 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005995/3.417, allocations: 0.6503 MB / 0.9072 GB, free: 91.36 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01204/3.429, allocations: 1.807 MB / 0.909 GB, free: 91.05 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008894/3.43, allocations: 26.67 kB / 0.909 GB, free: 91.04 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02365/3.454, allocations: 9.403 MB / 0.9182 GB, free: 86.55 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.926e-05/3.454, allocations: 27.56 kB / 0.9182 GB, free: 86.54 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03459/3.489, allocations: 14 MB / 0.9319 GB, free: 76.08 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004331/3.493, allocations: 1.137 MB / 0.933 GB, free: 75.02 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001961/3.495, allocations: 19 kB / 0.933 GB, free: 75 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006116/3.501, allocations: 195.4 kB / 0.9332 GB, free: 74.9 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001445/3.503, allocations: 261.9 kB / 0.9335 GB, free: 74.73 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004867/3.503, allocations: 115.1 kB / 0.9336 GB, free: 74.62 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.008361/3.512, allocations: 3.366 MB / 0.9369 GB, free: 71.7 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.041e-06/3.512, allocations: 0 / 0.9369 GB, free: 71.7 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01336/3.525, allocations: 1.686 MB / 0.9385 GB, free: 70.04 MB / 0.4949 GB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (337): * Single equations (assignments): 330 * 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.03577/3.561, allocations: 16.99 MB / 0.9551 GB, free: 54.3 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02109/3.582, allocations: 9.373 MB / 0.9643 GB, free: 45.7 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.516e-05/3.582, allocations: 0 / 0.9643 GB, free: 45.7 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.007524/3.59, allocations: 3.25 MB / 0.9674 GB, free: 42.71 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005458/3.595, allocations: 0.5629 MB / 0.968 GB, free: 42.22 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05589/3.651, allocations: 17.87 MB / 0.9854 GB, free: 26.59 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01347/3.665, allocations: 5.773 MB / 0.9911 GB, free: 22.34 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009256/3.674, allocations: 3.746 MB / 0.9947 GB, free: 18.85 MB / 0.4949 GB Notification: Performance of SimCode: time 1.513e-06/3.674, allocations: 3.938 kB / 0.9947 GB, free: 18.84 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.795/9.469, allocations: 180.6 MB / 1.171 GB, free: 3.281 MB / 0.4949 GB