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.37/2.37, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004279/0.0004282, allocations: 8 kB / 314.3 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2839, allocations: 54.86 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.06065/0.3446, allocations: 43.92 MB / 413.1 MB, free: 14.68 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02739/0.372, allocations: 10.76 MB / 423.9 MB, free: 3.883 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008749/0.3808, allocations: 223.4 kB / 424.1 MB, free: 3.664 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00696/0.3878, allocations: 2.228 MB / 426.3 MB, free: 1.426 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02198/0.4098, allocations: 6.468 MB / 432.8 MB, free: 10.94 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003702/0.4136, allocations: 0.8581 MB / 433.6 MB, free: 10.08 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.03968/0.4533, allocations: 18.64 MB / 452.3 MB, free: 7.43 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009668/0.463, allocations: 5.092 MB / 457.4 MB, free: 2.273 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00355/0.4666, allocations: 1.569 MB / 458.9 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004372/0.471, allocations: 2.302 MB / 461.2 MB, free: 14.39 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001221/0.4723, allocations: 240 kB / 461.5 MB, free: 14.15 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003394/0.4757, allocations: 1.159 MB / 462.6 MB, free: 13 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003782/0.4795, allocations: 2.392 MB / 465 MB, free: 10.6 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002155/0.4817, allocations: 1.205 MB / 466.2 MB, free: 9.383 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01272/0.4945, allocations: 8.129 MB / 474.3 MB, free: 1.234 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.591e-06/0.4945, allocations: 0 / 474.3 MB, free: 1.234 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.538e-06/0.4945, allocations: 0 / 474.3 MB, free: 1.234 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002049/0.4947, allocations: 4 kB / 474.4 MB, free: 1.23 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: 2239 * Number of variables: 2239 Notification: Performance of Generate backend data structure: time 0.2718/0.7666, allocations: 6.509 MB / 480.9 MB, free: 93.03 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.7666, allocations: 9.625 kB / 480.9 MB, free: 93.03 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06217/0.8288, allocations: 9.721 MB / 490.6 MB, free: 86.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01151/0.8404, allocations: 4.689 MB / 495.3 MB, free: 81.81 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003918/0.8408, allocations: 317.2 kB / 495.6 MB, free: 81.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001974/0.8428, allocations: 427.8 kB / 496 MB, free: 81.2 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03241/0.8752, allocations: 15.81 MB / 0.4998 GB, free: 64.63 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002291/0.8755, allocations: 51.53 kB / 0.4999 GB, free: 64.58 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001449/0.877, allocations: 205.2 kB / 0.5001 GB, free: 64.44 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005227/0.8822, allocations: 3.164 MB / 0.5032 GB, free: 61.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03228/0.9145, allocations: 14.08 MB / 0.5169 GB, free: 47.19 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08523/0.9998, allocations: 57.47 MB / 0.573 GB, free: 4.543 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02074/1.021, allocations: 6.581 MB / 0.5795 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03484/1.055, allocations: 14.56 MB / 0.5937 GB, free: 14.62 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.274e-05/1.056, allocations: 60.55 kB / 0.5937 GB, free: 14.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=289): time 8.562e-06/1.056, allocations: 0 / 0.5937 GB, free: 14.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=339): time 0.1996/1.255, allocations: 42.96 MB / 0.6357 GB, free: 3.387 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001695/1.255, allocations: 210 kB / 0.6359 GB, free: 3.137 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2787/1.534, allocations: 5.7 MB / 0.6415 GB, free: 157.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007632/1.535, allocations: 72.11 kB / 0.6415 GB, free: 157.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003247/1.538, allocations: 4.269 MB / 0.6457 GB, free: 154.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001701/1.54, allocations: 1.255 MB / 0.6469 GB, free: 153.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009665/1.541, allocations: 171.6 kB / 0.6471 GB, free: 153.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006067/1.542, allocations: 0.6855 MB / 0.6478 GB, free: 152.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009514/1.551, allocations: 4.608 MB / 0.6523 GB, free: 151.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01202/1.563, allocations: 9.559 MB / 0.6616 GB, free: 142.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01257/1.576, allocations: 6.479 MB / 0.6679 GB, free: 140.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000141/1.576, allocations: 51.81 kB / 0.668 GB, free: 140.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.05136/1.627, allocations: 18.76 MB / 0.6863 GB, free: 125.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001465/1.628, allocations: 84.17 kB / 0.6864 GB, free: 125.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002013/1.628, allocations: 177 kB / 0.6865 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0261/1.654, allocations: 5.821 MB / 0.6922 GB, free: 119.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008607/1.663, allocations: 2.063 MB / 0.6942 GB, free: 117.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0408/1.703, allocations: 24.94 MB / 0.7186 GB, free: 91.89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008793/1.712, allocations: 0.5461 MB / 0.7191 GB, free: 91.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001569/1.714, allocations: 0.5095 MB / 0.7196 GB, free: 90.84 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 786 * 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 (1055): * Single equations (assignments): 1047 * 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.00663/1.721, allocations: 3.084 MB / 0.7226 GB, free: 87.74 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001314/1.722, allocations: 0.4971 MB / 0.7231 GB, free: 87.24 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03731/1.759, allocations: 12.68 MB / 0.7355 GB, free: 74.49 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.223e-05/1.759, allocations: 52.86 kB / 0.7355 GB, free: 74.44 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.095e-05/1.759, allocations: 8 kB / 0.7356 GB, free: 74.43 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.602e-05/1.759, allocations: 26.66 kB / 0.7356 GB, free: 74.41 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06921/1.829, allocations: 24.45 MB / 0.7595 GB, free: 49.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.482e-05/1.829, allocations: 4 kB / 0.7595 GB, free: 49.49 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003655/1.832, allocations: 0.5772 MB / 0.76 GB, free: 48.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02272/1.855, allocations: 4.837 MB / 0.7647 GB, free: 44.07 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007426/1.856, allocations: 61.39 kB / 0.7648 GB, free: 44.01 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03255/1.889, allocations: 20.2 MB / 0.7845 GB, free: 23.54 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.679e-06/1.889, allocations: 8 kB / 0.7845 GB, free: 23.53 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04261/1.931, allocations: 17.1 MB / 0.8012 GB, free: 6.262 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003733/1.935, allocations: 1.252 MB / 0.8025 GB, free: 4.984 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00156/1.937, allocations: 54.42 kB / 0.8025 GB, free: 4.934 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004411/1.941, allocations: 259.6 kB / 0.8028 GB, free: 4.68 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001128/1.942, allocations: 193.7 kB / 0.8029 GB, free: 4.488 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00044/1.943, allocations: 87.03 kB / 0.803 GB, free: 4.406 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007353/1.95, allocations: 3.592 MB / 0.8065 GB, free: 0.8359 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.241e-06/1.95, allocations: 0 / 0.8065 GB, free: 0.8359 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01003/1.96, allocations: 1.732 MB / 0.8082 GB, free: 15.11 MB / 490.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.001183/1.961, allocations: 222.4 kB / 0.8084 GB, free: 14.89 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.2908/2.252, allocations: 10.59 MB / 0.8188 GB, free: 165 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.888e-06/2.252, allocations: 0.9688 kB / 0.8188 GB, free: 165 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008412/2.261, allocations: 4.04 MB / 0.8227 GB, free: 164.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004115/2.265, allocations: 0.5784 MB / 0.8233 GB, free: 163.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03592/2.301, allocations: 19.16 MB / 0.842 GB, free: 154.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008619/2.309, allocations: 4.757 MB / 0.8467 GB, free: 151.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002537/2.312, allocations: 419 kB / 0.8471 GB, free: 151.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.968e-06/2.312, allocations: 0 / 0.8471 GB, free: 151.1 MB / 490.7 MB Notification: Performance of Templates: time 0.1901/2.502, allocations: 143.4 MB / 0.9871 GB, free: 8.77 MB / 490.7 MB