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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 2.086/2.086, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.265e-05/1.274e-05, allocations: 0 / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2636, allocations: 48.68 MB / 320 MB, free: 14.42 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1468/0.4105, allocations: 95.42 MB / 415.4 MB, free: 1.008 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.4108, allocations: 75.95 kB / 415.5 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6931/1.104, allocations: 124 MB / 0.5268 GB, free: 33.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.093e-06/1.104, allocations: 0 / 0.5268 GB, free: 33.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003085/1.104, allocations: 123.9 kB / 0.5269 GB, free: 33.29 MB / 378.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.01866/1.123, allocations: 6.317 MB / 0.5331 GB, free: 26.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/1.123, allocations: 12.02 kB / 0.5331 GB, free: 26.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04113/1.164, allocations: 8.318 MB / 0.5412 GB, free: 18.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02083/1.185, allocations: 7.365 MB / 0.5484 GB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003491/1.185, allocations: 192 kB / 0.5486 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002775/1.188, allocations: 347.9 kB / 0.549 GB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01956/1.208, allocations: 10.15 MB / 0.5589 GB, free: 444 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0319/1.24, allocations: 14.07 MB / 0.5726 GB, free: 1.199 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002641/1.24, allocations: 83.23 kB / 0.5727 GB, free: 1.117 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00108/1.241, allocations: 39.95 kB / 0.5727 GB, free: 1.078 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002906/1.244, allocations: 1.608 MB / 0.5743 GB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3323/1.576, allocations: 61.39 MB / 0.6343 GB, free: 42.6 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01293/1.589, allocations: 5.595 MB / 0.6397 GB, free: 41.37 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00995/1.599, allocations: 3.434 MB / 0.6431 GB, free: 41.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04835/1.648, allocations: 14.14 MB / 0.6569 GB, free: 35.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.698e-05/1.648, allocations: 60.12 kB / 0.6569 GB, free: 35.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=289): time 1.406e-05/1.648, allocations: 0 / 0.6569 GB, free: 35.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=339): time 0.1001/1.748, allocations: 30.96 MB / 0.6872 GB, free: 25.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.13e-05/1.748, allocations: 212.8 kB / 0.6874 GB, free: 24.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008315/1.757, allocations: 4.271 MB / 0.6915 GB, free: 21.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006722/1.757, allocations: 29.7 kB / 0.6916 GB, free: 21.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003008/1.76, allocations: 4.428 MB / 0.6959 GB, free: 18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001592/1.762, allocations: 1.22 MB / 0.6971 GB, free: 16.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000883/1.763, allocations: 0 / 0.6971 GB, free: 16.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005926/1.763, allocations: 0.6983 MB / 0.6978 GB, free: 16.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007785/1.771, allocations: 4.399 MB / 0.7021 GB, free: 12.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01079/1.782, allocations: 9.569 MB / 0.7114 GB, free: 0.9844 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02515/1.807, allocations: 7.104 MB / 0.7183 GB, free: 13.63 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001845/1.808, allocations: 52 kB / 0.7184 GB, free: 13.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=1197) (initialization): time 0.05438/1.862, allocations: 17.58 MB / 0.7356 GB, free: 15.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001653/1.862, allocations: 87.61 kB / 0.7356 GB, free: 15.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002716/1.862, allocations: 184 kB / 0.7358 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0279/1.89, allocations: 5.626 MB / 0.7413 GB, free: 10.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009799/1.9, allocations: 2.148 MB / 0.7434 GB, free: 8.547 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2986/2.199, allocations: 21.62 MB / 0.7645 GB, free: 96.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0093/2.208, allocations: 387 kB / 0.7649 GB, free: 96.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002019/2.21, allocations: 0.5297 MB / 0.7654 GB, free: 96.77 MB / 442.7 MB 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.0029/2.213, allocations: 0.5545 MB / 0.766 GB, free: 96.66 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001243/2.214, allocations: 489.3 kB / 0.7664 GB, free: 96.66 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03739/2.252, allocations: 12.1 MB / 0.7782 GB, free: 96.44 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001083/2.252, allocations: 56.89 kB / 0.7783 GB, free: 96.44 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.296e-05/2.252, allocations: 7.562 kB / 0.7783 GB, free: 96.44 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.419e-05/2.252, allocations: 17.55 kB / 0.7783 GB, free: 96.44 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05972/2.312, allocations: 22.58 MB / 0.8004 GB, free: 88.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-05/2.312, allocations: 7.406 kB / 0.8004 GB, free: 88.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00393/2.316, allocations: 0.5713 MB / 0.8009 GB, free: 88.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02355/2.339, allocations: 4.639 MB / 0.8055 GB, free: 87.96 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007625/2.34, allocations: 10.31 kB / 0.8055 GB, free: 87.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02821/2.369, allocations: 17.33 MB / 0.8224 GB, free: 79.44 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-05/2.369, allocations: 10.47 kB / 0.8224 GB, free: 79.44 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0395/2.408, allocations: 17.09 MB / 0.8391 GB, free: 69.43 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003389/2.412, allocations: 1.19 MB / 0.8403 GB, free: 68.33 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001323/2.413, allocations: 4 kB / 0.8403 GB, free: 68.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004238/2.417, allocations: 205.3 kB / 0.8405 GB, free: 68.22 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001052/2.418, allocations: 193.5 kB / 0.8406 GB, free: 68.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000401/2.419, allocations: 85.19 kB / 0.8407 GB, free: 68.03 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005881/2.425, allocations: 2.851 MB / 0.8435 GB, free: 65.57 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.067e-06/2.425, allocations: 0 / 0.8435 GB, free: 65.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01008/2.435, allocations: 1.493 MB / 0.845 GB, free: 64.09 MB / 442.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 () * 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.0009614/2.436, allocations: 168 kB / 0.8451 GB, free: 63.97 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01708/2.453, allocations: 10.07 MB / 0.855 GB, free: 55.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.683e-06/2.453, allocations: 0 / 0.855 GB, free: 55.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006559/2.459, allocations: 3.866 MB / 0.8587 GB, free: 51.37 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003278/2.463, allocations: 467.3 kB / 0.8592 GB, free: 50.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03018/2.493, allocations: 14.07 MB / 0.8729 GB, free: 36.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009805/2.503, allocations: 4.747 MB / 0.8775 GB, free: 32.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002427/2.505, allocations: 406.3 kB / 0.8779 GB, free: 31.68 MB / 442.7 MB Notification: Performance of SimCode: time 1.913e-06/2.505, allocations: 0 / 0.8779 GB, free: 31.68 MB / 442.7 MB Notification: Performance of Templates: time 0.4631/2.968, allocations: 139.8 MB / 1.015 GB, free: 55.14 MB / 458.7 MB