Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.631/1.631, allocations: 171.1 MB / 186.7 MB, free: 1.141 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004923/0.0004925, allocations: 8 kB / 233.2 MB, free: 2.977 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08193/0.08247, allocations: 38.78 MB / 272 MB, free: 12.12 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint): time 0.3237/0.4062, allocations: 70.3 MB / 342.3 MB, free: 7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.04903/0.4553, allocations: 16.63 MB / 359 MB, free: 6.328 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01714/0.4725, allocations: 367.1 kB / 359.3 MB, free: 5.969 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01324/0.4857, allocations: 3.624 MB / 362.9 MB, free: 2.328 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03897/0.5248, allocations: 9.904 MB / 372.8 MB, free: 8.398 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008135/0.533, allocations: 1.221 MB / 374.1 MB, free: 7.176 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01062/0.5436, allocations: 3.965 MB / 378 MB, free: 3.199 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01971/0.5634, allocations: 9.423 MB / 387.5 MB, free: 9.703 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00445/0.5679, allocations: 1.655 MB / 389.1 MB, free: 8.043 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004648/0.5726, allocations: 2.017 MB / 391.1 MB, free: 6.02 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001443/0.5741, allocations: 224 kB / 391.3 MB, free: 5.801 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004705/0.5788, allocations: 1.424 MB / 392.8 MB, free: 4.375 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004477/0.5833, allocations: 2.615 MB / 395.4 MB, free: 1.754 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002389/0.5858, allocations: 1.341 MB / 396.7 MB, free: 412 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01511/0.6009, allocations: 9.563 MB / 406.3 MB, free: 6.816 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.601, allocations: 8 kB / 406.3 MB, free: 6.809 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.601, allocations: 0 / 406.3 MB, free: 6.809 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004405/0.6014, allocations: 0 / 406.3 MB, free: 6.809 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2366 * Number of variables: 2366 Notification: Performance of Generate backend data structure: time 0.0267/0.6282, allocations: 7.191 MB / 413.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/0.6282, allocations: 12.03 kB / 413.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00416/0.6324, allocations: 1.136 MB / 414.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0175/0.6499, allocations: 2.701 MB / 417.3 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01379/0.6638, allocations: 4.767 MB / 422.1 MB, free: 6.812 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005369/0.6644, allocations: 427 kB / 422.5 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003422/0.6678, allocations: 0.6557 MB / 423.2 MB, free: 5.738 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05156/0.7194, allocations: 16.95 MB / 440.1 MB, free: 3.863 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002864/0.7198, allocations: 59.45 kB / 440.2 MB, free: 3.805 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001871/0.7217, allocations: 267.8 kB / 440.4 MB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006705/0.7284, allocations: 2.557 MB / 443 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.477/1.205, allocations: 14.59 MB / 457.6 MB, free: 118.4 MB / 362.8 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1068/1.312, allocations: 63.75 MB / 0.5091 GB, free: 59.49 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03493/1.347, allocations: 7.326 MB / 0.5163 GB, free: 52.01 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03618/1.384, allocations: 15.98 MB / 0.5319 GB, free: 35.7 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.003e-05/1.384, allocations: 68.5 kB / 0.5319 GB, free: 35.62 MB / 362.8 MB Notification: Performance of pre-optimization done (n=248): time 6.682e-06/1.384, allocations: 0 / 0.5319 GB, free: 35.62 MB / 362.8 MB Notification: Performance of matching and sorting (n=264): time 0.11/1.494, allocations: 27.83 MB / 0.5591 GB, free: 7.426 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001318/1.495, allocations: 1.627 MB / 0.5607 GB, free: 5.633 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2349/1.73, allocations: 6.198 MB / 0.5668 GB, free: 112.8 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007719/1.731, allocations: 64.33 kB / 0.5668 GB, free: 112.8 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004152/1.735, allocations: 4.67 MB / 0.5714 GB, free: 110.6 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00178/1.737, allocations: 1.04 MB / 0.5724 GB, free: 109.9 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008991/1.738, allocations: 172.1 kB / 0.5726 GB, free: 109.8 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0006058/1.738, allocations: 0.6912 MB / 0.5732 GB, free: 109.3 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008924/1.747, allocations: 3.341 MB / 0.5765 GB, free: 108.2 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01221/1.76, allocations: 8.756 MB / 0.585 GB, free: 99.77 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01193/1.772, allocations: 5.261 MB / 0.5902 GB, free: 97.73 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002435/1.772, allocations: 54.84 kB / 0.5902 GB, free: 97.73 MB / 362.8 MB Notification: Performance of matching and sorting (n=1163) (initialization): time 0.03628/1.808, allocations: 13.63 MB / 0.6035 GB, free: 92.61 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001523/1.808, allocations: 86.75 kB / 0.6036 GB, free: 92.61 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01731/1.826, allocations: 5.848 MB / 0.6093 GB, free: 90.61 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01056/1.836, allocations: 2.264 MB / 0.6115 GB, free: 89.18 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01192/1.848, allocations: 2.092 MB / 0.6136 GB, free: 87.16 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03836/1.887, allocations: 14.55 MB / 0.6278 GB, free: 71.82 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01052/1.897, allocations: 0.5695 MB / 0.6284 GB, free: 71.25 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00178/1.899, allocations: 0.5331 MB / 0.6289 GB, free: 70.72 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 872 * Number of states: 0 () * Number of discrete variables: 57 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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],springOfConstraint.color[3],springOfConstraint.color[2],springOfConstraint.color[1],springOfConstraint.massColor[3],springOfConstraint.massColor[2],springOfConstraint.massColor[1],springOfJoint.color[3],springOfJoint.color[2],springOfJoint.color[1],springOfJoint.massColor[3],springOfJoint.massColor[2],springOfJoint.massColor[1],bodyOfConstraint.color[3],bodyOfConstraint.color[2],bodyOfConstraint.color[1],bodyOfConstraint.body.sphereColor[3],bodyOfConstraint.body.sphereColor[2],bodyOfConstraint.body.sphereColor[1],bodyOfConstraint.frameTranslation.color[3],bodyOfConstraint.frameTranslation.color[2],bodyOfConstraint.frameTranslation.color[1],bodyOfJoint.color[3],bodyOfJoint.color[2],bodyOfJoint.color[1],bodyOfJoint.body.sphereColor[3],bodyOfJoint.body.sphereColor[2],bodyOfJoint.body.sphereColor[1],bodyOfJoint.frameTranslation.color[3],bodyOfJoint.frameTranslation.color[2],bodyOfJoint.frameTranslation.color[1],sensorConstraintRelative.arrowColor[3],sensorConstraintRelative.arrowColor[2],sensorConstraintRelative.arrowColor[1],constraint.sphereColor[3],constraint.sphereColor[2],constraint.sphereColor[1],joint.sphereColor[3],joint.sphereColor[2],joint.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1099): * Single equations (assignments): 1083 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 3,(3,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.008021/1.907, allocations: 3.216 MB / 0.632 GB, free: 67.5 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/1.908, allocations: 0.5128 MB / 0.6325 GB, free: 66.98 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01968/1.928, allocations: 6.522 MB / 0.6389 GB, free: 60.36 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0172/1.945, allocations: 5.611 MB / 0.6444 GB, free: 54.66 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0166/1.962, allocations: 5.45 MB / 0.6497 GB, free: 49.12 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-05/1.962, allocations: 11.95 kB / 0.6497 GB, free: 49.11 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04636/2.008, allocations: 17.26 MB / 0.6666 GB, free: 31.66 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.478e-05/2.009, allocations: 12.73 kB / 0.6666 GB, free: 31.65 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004571/2.013, allocations: 500 kB / 0.667 GB, free: 31.16 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009722/2.023, allocations: 1.858 MB / 0.6689 GB, free: 29.29 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006541/2.024, allocations: 75.91 kB / 0.6689 GB, free: 29.21 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01834/2.042, allocations: 9.96 MB / 0.6787 GB, free: 18.86 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001109/2.043, allocations: 1.477 MB / 0.6801 GB, free: 17.23 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02495/2.068, allocations: 9.751 MB / 0.6896 GB, free: 7.273 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001855/2.07, allocations: 0.584 MB / 0.6902 GB, free: 6.664 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001825/2.072, allocations: 60.27 kB / 0.6903 GB, free: 6.605 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005011/2.077, allocations: 217.6 kB / 0.6905 GB, free: 6.395 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007972/2.078, allocations: 197.5 kB / 0.6907 GB, free: 6.199 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002984/2.078, allocations: 85.38 kB / 0.6907 GB, free: 6.117 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.008298/2.086, allocations: 3.91 MB / 0.6946 GB, free: 2.207 MB / 362.8 MB Notification: Performance of sort global known variables: time 7.92e-07/2.086, allocations: 3.938 kB / 0.6946 GB, free: 2.203 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0106/2.097, allocations: 1.693 MB / 0.6962 GB, free: 0.5195 MB / 362.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],joint.w_rel[1],joint.w_rel[2],joint.w_rel[3],bodyOfConstraint.body.w_a[1],bodyOfConstraint.body.w_a[2],bodyOfConstraint.body.w_a[3],freeMotionScalarInit.derd[1].u,freeMotionScalarInit.derd[2].u,freeMotionScalarInit.derd[3].u) * 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 (221): * Single equations (assignments): 211 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 3,(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3145/2.411, allocations: 10.41 MB / 0.7064 GB, free: 113.7 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.02321/2.435, allocations: 8.972 MB / 0.7151 GB, free: 110.2 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/2.435, allocations: 0 / 0.7151 GB, free: 110.2 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009409/2.444, allocations: 3.354 MB / 0.7184 GB, free: 108.7 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006947/2.451, allocations: 0.7745 MB / 0.7192 GB, free: 108.4 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06176/2.513, allocations: 34.1 MB / 0.7525 GB, free: 79.6 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01043/2.523, allocations: 4.972 MB / 0.7573 GB, free: 75.91 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006865/2.53, allocations: 3.189 MB / 0.7604 GB, free: 72.95 MB / 378.8 MB Notification: Performance of SimCode: time 1.653e-06/2.53, allocations: 0 / 0.7604 GB, free: 72.95 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.183/8.713, allocations: 315.2 MB / 1.068 GB, free: 74.36 MB / 410.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint_res.mat does not exist to compare? outputFormat=mat