Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadModel(ModelicaTest): time 1.917/1.917, allocations: 209.3 MB / 224.9 MB, free: 188 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004425/0.0004427, allocations: 8 kB / 282.6 MB, free: 9.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2899, allocations: 48.71 MB / 331.3 MB, free: 6.469 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1439/0.4338, allocations: 96.17 MB / 427.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002563/0.4341, allocations: 75.97 kB / 427.5 MB, free: 14.13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7257/1.16, allocations: 126.3 MB / 0.5408 GB, free: 55.6 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.714e-06/1.16, allocations: 0 / 0.5408 GB, free: 55.6 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003225/1.16, allocations: 112 kB / 0.5409 GB, free: 55.49 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2238 * Number of variables: 2238 Notification: Performance of Generate backend data structure: time 0.02128/1.181, allocations: 6.791 MB / 0.5476 GB, free: 48.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/1.182, allocations: 8.031 kB / 0.5476 GB, free: 48.61 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04068/1.222, allocations: 8.306 MB / 0.5557 GB, free: 40.28 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02061/1.243, allocations: 7.397 MB / 0.5629 GB, free: 32.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005194/1.243, allocations: 455.7 kB / 0.5633 GB, free: 32.38 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002884/1.246, allocations: 0.5779 MB / 0.5639 GB, free: 31.8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03726/1.284, allocations: 15.71 MB / 0.5793 GB, free: 14.92 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003334/1.284, allocations: 79.3 kB / 0.5793 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002366/1.286, allocations: 283.8 kB / 0.5796 GB, free: 14.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002475/1.289, allocations: 1.616 MB / 0.5812 GB, free: 12.94 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03188/1.321, allocations: 14 MB / 0.5949 GB, free: 14.91 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3565/1.677, allocations: 63.97 MB / 0.6573 GB, free: 49.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01802/1.695, allocations: 6.475 MB / 0.6636 GB, free: 47.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02814/1.724, allocations: 14.45 MB / 0.6778 GB, free: 44.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.594e-05/1.724, allocations: 61.91 kB / 0.6778 GB, free: 44.26 MB / 426.7 MB Notification: Performance of pre-optimization done (n=289): time 7.59e-06/1.724, allocations: 0 / 0.6778 GB, free: 44.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.1847/1.908, allocations: 42.33 MB / 0.7192 GB, free: 35.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.53e-05/1.909, allocations: 213.2 kB / 0.7194 GB, free: 35.74 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01026/1.919, allocations: 4.82 MB / 0.7241 GB, free: 33.67 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006963/1.92, allocations: 74.64 kB / 0.7241 GB, free: 33.59 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003092/1.923, allocations: 4.285 MB / 0.7283 GB, free: 29.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00166/1.924, allocations: 1.251 MB / 0.7295 GB, free: 28.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/1.925, allocations: 178.7 kB / 0.7297 GB, free: 28.47 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006505/1.926, allocations: 0.683 MB / 0.7304 GB, free: 27.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008561/1.935, allocations: 4.566 MB / 0.7348 GB, free: 23.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01127/1.946, allocations: 9.492 MB / 0.7441 GB, free: 12.99 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01124/1.957, allocations: 6.435 MB / 0.7504 GB, free: 7.32 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001232/1.957, allocations: 52 kB / 0.7504 GB, free: 7.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.07834/2.036, allocations: 18.74 MB / 0.7688 GB, free: 6.383 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002615/2.036, allocations: 79.98 kB / 0.7688 GB, free: 6.305 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000411/2.037, allocations: 176 kB / 0.769 GB, free: 6.133 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05176/2.088, allocations: 5.631 MB / 0.7745 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01717/2.106, allocations: 2.059 MB / 0.7765 GB, free: 14.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05876/2.164, allocations: 24.3 MB / 0.8002 GB, free: 5.863 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01819/2.183, allocations: 0.5397 MB / 0.8008 GB, free: 5.324 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003387/2.186, allocations: 0.5 MB / 0.8013 GB, free: 4.824 MB / 474.7 MB 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.01511/2.201, allocations: 3.098 MB / 0.8043 GB, free: 1.719 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002764/2.204, allocations: 0.4975 MB / 0.8048 GB, free: 1.215 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3115/2.515, allocations: 12.43 MB / 0.8169 GB, free: 127.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001113/2.516, allocations: 54.81 kB / 0.817 GB, free: 127.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.78e-05/2.516, allocations: 8.5 kB / 0.817 GB, free: 127.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.516e-05/2.516, allocations: 13.23 kB / 0.817 GB, free: 127.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06348/2.579, allocations: 24.06 MB / 0.8405 GB, free: 123.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-05/2.579, allocations: 2.625 kB / 0.8405 GB, free: 123.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003742/2.583, allocations: 0.5701 MB / 0.841 GB, free: 123.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02414/2.607, allocations: 4.645 MB / 0.8456 GB, free: 122.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007172/2.608, allocations: 59.36 kB / 0.8456 GB, free: 122.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03213/2.64, allocations: 19.57 MB / 0.8647 GB, free: 113.3 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.719e-06/2.64, allocations: 7.969 kB / 0.8647 GB, free: 113.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04212/2.682, allocations: 17.49 MB / 0.8818 GB, free: 106.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003703/2.686, allocations: 1.218 MB / 0.883 GB, free: 106 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001619/2.688, allocations: 55.88 kB / 0.8831 GB, free: 105.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004269/2.692, allocations: 251.3 kB / 0.8833 GB, free: 105.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001059/2.693, allocations: 197.2 kB / 0.8835 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004363/2.694, allocations: 84 kB / 0.8836 GB, free: 105.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007434/2.701, allocations: 3.362 MB / 0.8869 GB, free: 102.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.373e-06/2.701, allocations: 0 / 0.8869 GB, free: 102.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009958/2.711, allocations: 1.704 MB / 0.8885 GB, free: 101.1 MB / 474.7 MB 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.0009643/2.712, allocations: 218.5 kB / 0.8887 GB, free: 100.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01841/2.73, allocations: 10.51 MB / 0.899 GB, free: 91.98 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/2.731, allocations: 2.344 kB / 0.899 GB, free: 91.98 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007033/2.738, allocations: 4.012 MB / 0.9029 GB, free: 88.41 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003925/2.742, allocations: 0.5738 MB / 0.9035 GB, free: 87.92 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03247/2.774, allocations: 19.05 MB / 0.9221 GB, free: 70.33 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008611/2.783, allocations: 4.757 MB / 0.9267 GB, free: 65.58 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002397/2.785, allocations: 419.5 kB / 0.9271 GB, free: 65.17 MB / 474.7 MB Notification: Performance of SimCode: time 1.544e-06/2.785, allocations: 2.938 kB / 0.9271 GB, free: 65.17 MB / 474.7 MB Notification: Performance of Templates: time 0.4627/3.248, allocations: 142.5 MB / 1.066 GB, free: 69.45 MB / 474.7 MB