Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadModel(ModelicaTest): time 2.1/2.1, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.478e-05/1.487e-05, allocations: 4 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2741, allocations: 54.85 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1545/0.4286, allocations: 102.2 MB / 460.3 MB, free: 8.578 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/0.4289, allocations: 79.95 kB / 460.3 MB, free: 8.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6577/1.087, allocations: 124 MB / 0.5707 GB, free: 12.69 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.758e-06/1.087, allocations: 4 kB / 0.5707 GB, free: 12.68 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003637/1.087, allocations: 119.9 kB / 0.5708 GB, free: 12.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: 2239 * Number of variables: 2239 Notification: Performance of Generate backend data structure: time 0.02145/1.109, allocations: 6.321 MB / 0.5769 GB, free: 6.172 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/1.109, allocations: 8.031 kB / 0.577 GB, free: 6.164 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04379/1.152, allocations: 8.314 MB / 0.5851 GB, free: 13.83 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02408/1.177, allocations: 7.358 MB / 0.5923 GB, free: 6.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003961/1.177, allocations: 196 kB / 0.5924 GB, free: 6.219 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002815/1.18, allocations: 347.9 kB / 0.5928 GB, free: 5.879 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02438/1.204, allocations: 10.16 MB / 0.6027 GB, free: 11.71 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03484/1.239, allocations: 14.08 MB / 0.6164 GB, free: 12.48 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002749/1.239, allocations: 71.34 kB / 0.6165 GB, free: 12.41 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001503/1.241, allocations: 36 kB / 0.6165 GB, free: 12.37 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002963/1.244, allocations: 1.616 MB / 0.6181 GB, free: 10.75 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3574/1.601, allocations: 61.41 MB / 0.6781 GB, free: 50.91 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007567/1.609, allocations: 5.596 MB / 0.6836 GB, free: 49.68 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005172/1.614, allocations: 3.432 MB / 0.6869 GB, free: 49.64 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02731/1.641, allocations: 14.13 MB / 0.7007 GB, free: 44.35 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.452e-05/1.642, allocations: 72.12 kB / 0.7008 GB, free: 44.29 MB / 458.7 MB Notification: Performance of pre-optimization done (n=289): time 7.97e-06/1.642, allocations: 3.828 kB / 0.7008 GB, free: 44.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=339): time 0.08834/1.73, allocations: 30.94 MB / 0.731 GB, free: 33.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.941e-05/1.73, allocations: 212.1 kB / 0.7312 GB, free: 33.57 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008577/1.739, allocations: 4.274 MB / 0.7354 GB, free: 31.03 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006866/1.739, allocations: 25.7 kB / 0.7354 GB, free: 31 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003032/1.742, allocations: 4.428 MB / 0.7397 GB, free: 27.17 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001593/1.744, allocations: 1.215 MB / 0.7409 GB, free: 26.08 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009748/1.745, allocations: 4 kB / 0.7409 GB, free: 26.08 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000693/1.746, allocations: 0.7081 MB / 0.7416 GB, free: 25.47 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008005/1.754, allocations: 4.396 MB / 0.7459 GB, free: 21.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01085/1.765, allocations: 9.56 MB / 0.7552 GB, free: 10.16 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01101/1.776, allocations: 6.398 MB / 0.7615 GB, free: 5.035 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001494/1.776, allocations: 52 kB / 0.7615 GB, free: 4.984 MB / 458.7 MB Notification: Performance of matching and sorting (n=1197) (initialization): time 0.0528/1.829, allocations: 17.59 MB / 0.7787 GB, free: 7.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001628/1.829, allocations: 85.56 kB / 0.7788 GB, free: 7.258 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002628/1.829, allocations: 187.8 kB / 0.779 GB, free: 7.078 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02692/1.856, allocations: 5.628 MB / 0.7845 GB, free: 3.676 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009384/1.866, allocations: 2.15 MB / 0.7866 GB, free: 1.832 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04537/1.911, allocations: 21.84 MB / 0.8079 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00925/1.92, allocations: 399.2 kB / 0.8083 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002064/1.922, allocations: 0.5234 MB / 0.8088 GB, free: 12.31 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 838 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (1106): * Single equations (assignments): 1098 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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 prepare postOptimizeDAE: time 0.002386/1.925, allocations: 0.5561 MB / 0.8093 GB, free: 11.75 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001308/1.926, allocations: 481.8 kB / 0.8098 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3204/2.246, allocations: 12.09 MB / 0.8216 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001251/2.247, allocations: 54.72 kB / 0.8216 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-05/2.247, allocations: 11.53 kB / 0.8216 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.706e-05/2.247, allocations: 15.28 kB / 0.8217 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05551/2.302, allocations: 22.59 MB / 0.8437 GB, free: 118.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-05/2.302, allocations: 3.688 kB / 0.8437 GB, free: 118.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004085/2.306, allocations: 0.578 MB / 0.8443 GB, free: 118.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02187/2.328, allocations: 4.631 MB / 0.8488 GB, free: 118.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000655/2.329, allocations: 14.95 kB / 0.8488 GB, free: 118.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02677/2.356, allocations: 17.32 MB / 0.8657 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-05/2.356, allocations: 11.48 kB / 0.8657 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03818/2.394, allocations: 17.1 MB / 0.8824 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003603/2.398, allocations: 1.18 MB / 0.8836 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001229/2.399, allocations: 11.09 kB / 0.8836 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003815/2.403, allocations: 206.1 kB / 0.8838 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008768/2.404, allocations: 186.1 kB / 0.884 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000412/2.404, allocations: 88.38 kB / 0.8841 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005397/2.41, allocations: 2.844 MB / 0.8868 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.201e-06/2.41, allocations: 1.688 kB / 0.8868 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009921/2.42, allocations: 1.492 MB / 0.8883 GB, free: 106.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008343/2.42, allocations: 175.4 kB / 0.8885 GB, free: 106.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01683/2.437, allocations: 10.07 MB / 0.8983 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.739e-06/2.437, allocations: 0 / 0.8983 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006384/2.444, allocations: 3.871 MB / 0.9021 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003012/2.447, allocations: 466.7 kB / 0.9025 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02791/2.475, allocations: 14.06 MB / 0.9163 GB, free: 88.46 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008215/2.483, allocations: 4.757 MB / 0.9209 GB, free: 84.93 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002297/2.485, allocations: 410.1 kB / 0.9213 GB, free: 84.54 MB / 0.4948 GB Notification: Performance of SimCode: time 2.216e-06/2.485, allocations: 0 / 0.9213 GB, free: 84.54 MB / 0.4948 GB Notification: Performance of Templates: time 0.4641/2.949, allocations: 139.9 MB / 1.058 GB, free: 109 MB / 0.4948 GB