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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.172/2.172, allocations: 234.9 MB / 250.5 MB, free: 9.535 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004328/0.0004329, allocations: 12 kB / 314.4 MB, free: 9.543 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2801, allocations: 54.85 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1586/0.4388, allocations: 103 MB / 472.2 MB, free: 3.574 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.439, allocations: 79.91 kB / 472.3 MB, free: 3.496 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6739/1.113, allocations: 126.3 MB / 0.5846 GB, free: 2.082 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.311e-06/1.113, allocations: 0 / 0.5846 GB, free: 2.082 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003727/1.113, allocations: 127.9 kB / 0.5848 GB, free: 1.957 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.0236/1.137, allocations: 6.778 MB / 0.5914 GB, free: 11.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/1.137, allocations: 8.031 kB / 0.5914 GB, free: 11.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04553/1.183, allocations: 8.31 MB / 0.5995 GB, free: 2.754 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02375/1.206, allocations: 7.396 MB / 0.6067 GB, free: 11.3 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007158/1.207, allocations: 451.8 kB / 0.6071 GB, free: 10.86 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003088/1.21, allocations: 0.5779 MB / 0.6077 GB, free: 10.28 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0436/1.254, allocations: 15.72 MB / 0.6231 GB, free: 9.395 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003668/1.254, allocations: 75.25 kB / 0.6231 GB, free: 9.32 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002763/1.257, allocations: 283.8 kB / 0.6234 GB, free: 9.043 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003286/1.26, allocations: 1.616 MB / 0.625 GB, free: 7.426 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03697/1.297, allocations: 14 MB / 0.6386 GB, free: 9.398 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3665/1.664, allocations: 64 MB / 0.7012 GB, free: 52.73 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01864/1.683, allocations: 6.468 MB / 0.7075 GB, free: 51.48 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02841/1.711, allocations: 14.43 MB / 0.7216 GB, free: 47.89 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/1.711, allocations: 62.38 kB / 0.7216 GB, free: 47.85 MB / 474.7 MB Notification: Performance of pre-optimization done (n=289): time 7.332e-06/1.711, allocations: 0 / 0.7216 GB, free: 47.85 MB / 474.7 MB Notification: Performance of matching and sorting (n=339): time 0.1917/1.903, allocations: 42.33 MB / 0.763 GB, free: 37.84 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.629e-05/1.903, allocations: 212.2 kB / 0.7632 GB, free: 37.61 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009615/1.913, allocations: 4.818 MB / 0.7679 GB, free: 33.85 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006986/1.914, allocations: 74.36 kB / 0.7679 GB, free: 33.77 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00308/1.917, allocations: 4.278 MB / 0.7721 GB, free: 30.15 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001603/1.918, allocations: 1.258 MB / 0.7734 GB, free: 29.04 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009867/1.919, allocations: 168 kB / 0.7735 GB, free: 28.88 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006145/1.92, allocations: 0.6915 MB / 0.7742 GB, free: 28.28 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008473/1.928, allocations: 4.557 MB / 0.7786 GB, free: 24.36 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01136/1.94, allocations: 9.504 MB / 0.7879 GB, free: 13.42 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01131/1.951, allocations: 6.454 MB / 0.7942 GB, free: 7.746 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001311/1.951, allocations: 48 kB / 0.7943 GB, free: 7.699 MB / 474.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.05559/2.007, allocations: 18.66 MB / 0.8125 GB, free: 7.77 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001708/2.007, allocations: 80 kB / 0.8126 GB, free: 7.691 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002525/2.007, allocations: 172 kB / 0.8127 GB, free: 7.523 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02776/2.035, allocations: 5.632 MB / 0.8182 GB, free: 1.887 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009976/2.045, allocations: 2.062 MB / 0.8202 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3436/2.389, allocations: 24.29 MB / 0.844 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009124/2.398, allocations: 0.5421 MB / 0.8445 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001765/2.4, allocations: 0.5036 MB / 0.845 GB, free: 111.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1058): * Single equations (assignments): 1050 * 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.007605/2.407, allocations: 3.092 MB / 0.848 GB, free: 111.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001207/2.409, allocations: 0.4937 MB / 0.8485 GB, free: 111.7 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03736/2.446, allocations: 12.43 MB / 0.8606 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/2.446, allocations: 53.61 kB / 0.8607 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.411e-05/2.446, allocations: 10.09 kB / 0.8607 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.838e-05/2.446, allocations: 20.64 kB / 0.8607 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06273/2.509, allocations: 24.04 MB / 0.8842 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.462e-05/2.509, allocations: 3.562 kB / 0.8842 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004008/2.513, allocations: 0.5735 MB / 0.8847 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02423/2.537, allocations: 4.645 MB / 0.8893 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007583/2.538, allocations: 57.2 kB / 0.8893 GB, free: 105 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03279/2.571, allocations: 19.59 MB / 0.9085 GB, free: 95.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.973e-06/2.571, allocations: 3.906 kB / 0.9085 GB, free: 95.59 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04247/2.613, allocations: 17.49 MB / 0.9255 GB, free: 88.89 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003759/2.617, allocations: 1.224 MB / 0.9267 GB, free: 88.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001615/2.619, allocations: 56.05 kB / 0.9268 GB, free: 88.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004531/2.623, allocations: 247.2 kB / 0.927 GB, free: 88.23 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001135/2.625, allocations: 197.8 kB / 0.9272 GB, free: 88.15 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004266/2.625, allocations: 84.7 kB / 0.9273 GB, free: 88.07 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007632/2.633, allocations: 3.36 MB / 0.9306 GB, free: 85.33 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.279e-06/2.633, allocations: 0 / 0.9306 GB, free: 85.33 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009952/2.643, allocations: 1.707 MB / 0.9322 GB, free: 83.63 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 () * Number of clocked 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.001002/2.644, allocations: 212.3 kB / 0.9325 GB, free: 83.46 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01835/2.662, allocations: 10.52 MB / 0.9427 GB, free: 74.66 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.243e-06/2.662, allocations: 3.719 kB / 0.9427 GB, free: 74.66 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00694/2.669, allocations: 3.99 MB / 0.9466 GB, free: 71.14 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0039/2.673, allocations: 0.5795 MB / 0.9472 GB, free: 70.65 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03324/2.706, allocations: 19.05 MB / 0.9658 GB, free: 53.54 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01007/2.717, allocations: 4.75 MB / 0.9704 GB, free: 49.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002411/2.719, allocations: 415.5 kB / 0.9708 GB, free: 49.2 MB / 0.4948 GB Notification: Performance of SimCode: time 2.36e-06/2.719, allocations: 0 / 0.9708 GB, free: 49.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.492/3.211, allocations: 142.5 MB / 1.11 GB, free: 76.65 MB / 0.4948 GB