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.UniversalSpherical.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.365/2.365, allocations: 234.9 MB / 251.1 MB, free: 9.469 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000715/0.0007153, allocations: 12 kB / 314.9 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3701, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1922/0.5623, allocations: 103 MB / 472.8 MB, free: 3.598 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003253/0.5627, allocations: 75.97 kB / 472.9 MB, free: 3.523 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8783/1.441, allocations: 127.1 MB / 0.5859 GB, free: 1.324 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.216e-06/1.441, allocations: 0 / 0.5859 GB, free: 1.324 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004402/1.442, allocations: 116 kB / 0.586 GB, free: 1.211 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.0317/1.473, allocations: 6.786 MB / 0.5926 GB, free: 10.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/1.473, allocations: 8.031 kB / 0.5927 GB, free: 10.34 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06347/1.537, allocations: 8.298 MB / 0.6008 GB, free: 2.012 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02994/1.567, allocations: 7.404 MB / 0.608 GB, free: 10.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007939/1.568, allocations: 455.7 kB / 0.6084 GB, free: 10.1 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004016/1.572, allocations: 0.5896 MB / 0.609 GB, free: 9.512 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05356/1.625, allocations: 15.76 MB / 0.6244 GB, free: 8.59 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003535/1.626, allocations: 75.31 kB / 0.6245 GB, free: 8.516 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002666/1.628, allocations: 279.8 kB / 0.6247 GB, free: 8.242 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004097/1.633, allocations: 1.612 MB / 0.6263 GB, free: 6.629 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04764/1.68, allocations: 14 MB / 0.64 GB, free: 8.602 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4998/2.18, allocations: 64.01 MB / 0.7025 GB, free: 53.16 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02284/2.203, allocations: 6.451 MB / 0.7088 GB, free: 51.91 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03733/2.24, allocations: 14.43 MB / 0.7229 GB, free: 48.32 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.114e-05/2.241, allocations: 65.38 kB / 0.7229 GB, free: 48.27 MB / 474.7 MB Notification: Performance of pre-optimization done (n=289): time 8.005e-06/2.241, allocations: 3.844 kB / 0.7229 GB, free: 48.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=339): time 0.2713/2.512, allocations: 42.57 MB / 0.7645 GB, free: 37.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/2.512, allocations: 210 kB / 0.7647 GB, free: 37.05 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01213/2.524, allocations: 5.417 MB / 0.77 GB, free: 32.65 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009595/2.525, allocations: 72.91 kB / 0.7701 GB, free: 32.57 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003712/2.529, allocations: 4.273 MB / 0.7742 GB, free: 29 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002087/2.531, allocations: 1.253 MB / 0.7755 GB, free: 27.89 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001359/2.533, allocations: 179.3 kB / 0.7756 GB, free: 27.72 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006838/2.533, allocations: 0.6905 MB / 0.7763 GB, free: 27.13 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01076/2.544, allocations: 4.564 MB / 0.7808 GB, free: 23.21 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01597/2.56, allocations: 9.527 MB / 0.7901 GB, free: 12.23 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01477/2.575, allocations: 6.448 MB / 0.7964 GB, free: 6.555 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002197/2.575, allocations: 55.83 kB / 0.7964 GB, free: 6.504 MB / 474.7 MB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.07902/2.654, allocations: 18.52 MB / 0.8145 GB, free: 6.25 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000174/2.654, allocations: 80 kB / 0.8146 GB, free: 6.172 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003536/2.655, allocations: 172.8 kB / 0.8148 GB, free: 6.004 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04317/2.698, allocations: 5.633 MB / 0.8203 GB, free: 372 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0154/2.713, allocations: 2.055 MB / 0.8223 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4499/3.163, allocations: 24.29 MB / 0.846 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01197/3.175, allocations: 0.541 MB / 0.8465 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002547/3.178, allocations: 0.5018 MB / 0.847 GB, free: 111.6 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.01052/3.189, allocations: 3.092 MB / 0.85 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002242/3.191, allocations: 0.4957 MB / 0.8505 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0574/3.248, allocations: 12.43 MB / 0.8626 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001299/3.249, allocations: 53.73 kB / 0.8627 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.89e-05/3.249, allocations: 15.77 kB / 0.8627 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.342e-05/3.249, allocations: 13.83 kB / 0.8627 GB, free: 111.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08962/3.338, allocations: 24.04 MB / 0.8862 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.045e-05/3.338, allocations: 3.281 kB / 0.8862 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005892/3.344, allocations: 0.5701 MB / 0.8868 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03541/3.38, allocations: 4.653 MB / 0.8913 GB, free: 104.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009867/3.381, allocations: 57.92 kB / 0.8914 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04252/3.423, allocations: 19.57 MB / 0.9105 GB, free: 94.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/3.423, allocations: 7.688 kB / 0.9105 GB, free: 94.68 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06052/3.484, allocations: 16.76 MB / 0.9268 GB, free: 88.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004776/3.489, allocations: 1.224 MB / 0.928 GB, free: 88.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002138/3.491, allocations: 59.94 kB / 0.9281 GB, free: 88.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006007/3.497, allocations: 249.6 kB / 0.9283 GB, free: 88.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001264/3.498, allocations: 191.3 kB / 0.9285 GB, free: 87.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005028/3.499, allocations: 88.48 kB / 0.9286 GB, free: 87.88 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008327/3.507, allocations: 3.357 MB / 0.9319 GB, free: 85.14 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.903e-06/3.507, allocations: 0 / 0.9319 GB, free: 85.14 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01099/3.518, allocations: 1.709 MB / 0.9335 GB, free: 83.45 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.00145/3.52, allocations: 210.3 kB / 0.9337 GB, free: 83.28 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02319/3.543, allocations: 10.51 MB / 0.944 GB, free: 74.47 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/3.543, allocations: 4 kB / 0.944 GB, free: 74.47 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009183/3.552, allocations: 3.986 MB / 0.9479 GB, free: 70.96 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005459/3.558, allocations: 0.5672 MB / 0.9485 GB, free: 70.48 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04124/3.599, allocations: 19.1 MB / 0.9671 GB, free: 53.31 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01016/3.609, allocations: 4.765 MB / 0.9718 GB, free: 49.22 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003072/3.612, allocations: 414.2 kB / 0.9722 GB, free: 48.82 MB / 0.4948 GB Notification: Performance of SimCode: time 1.212e-06/3.612, allocations: 0 / 0.9722 GB, free: 48.82 MB / 0.4948 GB Notification: Performance of Templates: time 0.6554/4.268, allocations: 142.5 MB / 1.111 GB, free: 74.51 MB / 0.4948 GB