Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.799/1.799, allocations: 171.3 MB / 178.8 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.485e-05/2.497e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2654, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.183/0.4485, allocations: 100.4 MB / 358.7 MB, free: 9.402 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003283/0.4489, allocations: 83.95 kB / 358.8 MB, free: 9.32 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7081/1.157, allocations: 124.2 MB / 483 MB, free: 9.336 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.715e-06/1.157, allocations: 3.938 kB / 483 MB, free: 9.332 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000566/1.158, allocations: 143.9 kB / 483.2 MB, free: 9.191 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: 2354 * Number of variables: 2354 Notification: Performance of Generate backend data structure: time 0.03808/1.196, allocations: 7.067 MB / 490.2 MB, free: 2.047 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.762e-05/1.196, allocations: 8.031 kB / 490.2 MB, free: 2.039 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2989/1.495, allocations: 2.763 MB / 493 MB, free: 34.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02847/1.523, allocations: 7.479 MB / 0.4887 GB, free: 34.33 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004501/1.524, allocations: 226.8 kB / 0.489 GB, free: 34.33 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003628/1.527, allocations: 415 kB / 0.4894 GB, free: 34.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02558/1.553, allocations: 10.07 MB / 0.4992 GB, free: 34.28 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0401/1.593, allocations: 14.59 MB / 0.5134 GB, free: 30.78 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004476/1.594, allocations: 86.75 kB / 0.5135 GB, free: 30.78 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003199/1.597, allocations: 41.28 kB / 0.5136 GB, free: 30.78 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003763/1.601, allocations: 1.495 MB / 0.515 GB, free: 30.77 MB / 330.7 MB Warning: The model contains alias variables with conflicting start and/or 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.1483/1.749, allocations: 72.59 MB / 0.5859 GB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01512/1.764, allocations: 4.817 MB / 0.5906 GB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01175/1.776, allocations: 3.526 MB / 0.5941 GB, free: 7.543 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002323/1.778, allocations: 0.7014 MB / 0.5947 GB, free: 6.797 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001088/1.779, allocations: 68.09 kB / 0.5948 GB, free: 6.727 MB / 362.7 MB Notification: Performance of pre-optimization done (n=270): time 1.049e-05/1.779, allocations: 0 / 0.5948 GB, free: 6.727 MB / 362.7 MB Notification: Performance of matching and sorting (n=353): time 0.4855/2.264, allocations: 41.89 MB / 0.6357 GB, free: 72.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.762e-05/2.264, allocations: 160.8 kB / 0.6359 GB, free: 72.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0103/2.275, allocations: 4.449 MB / 0.6402 GB, free: 72.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001184/2.276, allocations: 29.67 kB / 0.6402 GB, free: 72.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004785/2.281, allocations: 4.654 MB / 0.6448 GB, free: 69.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002644/2.283, allocations: 1.27 MB / 0.646 GB, free: 69.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001398/2.285, allocations: 0 / 0.646 GB, free: 69.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0007628/2.286, allocations: 0.7077 MB / 0.6467 GB, free: 68.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009903/2.295, allocations: 4.017 MB / 0.6506 GB, free: 68.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01369/2.309, allocations: 9.312 MB / 0.6597 GB, free: 61.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01371/2.323, allocations: 6.061 MB / 0.6657 GB, free: 61.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002527/2.323, allocations: 53.94 kB / 0.6657 GB, free: 61.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=1223) (initialization): time 0.06679/2.39, allocations: 17.23 MB / 0.6825 GB, free: 60.13 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001555/2.39, allocations: 89.11 kB / 0.6826 GB, free: 60.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003159/2.391, allocations: 191.6 kB / 0.6828 GB, free: 60.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03309/2.424, allocations: 5.389 MB / 0.6881 GB, free: 59.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01342/2.437, allocations: 2.083 MB / 0.6901 GB, free: 58.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07262/2.51, allocations: 35.5 MB / 0.7248 GB, free: 37.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01355/2.524, allocations: 416.2 kB / 0.7252 GB, free: 36.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002732/2.526, allocations: 0.5839 MB / 0.7257 GB, free: 36.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 862 * 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.cylinderColor[3],joint.cylinderColor[2],joint.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1089): * Single equations (assignments): 1078 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,100.0%) 38,(2,100.0%) 23,(2,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.004125/2.53, allocations: 0.5831 MB / 0.7263 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05113/2.582, allocations: 11.76 MB / 0.7378 GB, free: 26.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002194/2.584, allocations: 0.4975 MB / 0.7383 GB, free: 26.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03789/2.622, allocations: 10.43 MB / 0.7485 GB, free: 18.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001181/2.622, allocations: 48 kB / 0.7485 GB, free: 17.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.3117/2.934, allocations: 8.99 MB / 0.7573 GB, free: 63.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001301/2.934, allocations: 17.84 kB / 0.7573 GB, free: 63.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07523/3.009, allocations: 22.71 MB / 0.7795 GB, free: 62.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.283e-05/3.009, allocations: 7.031 kB / 0.7795 GB, free: 62.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004801/3.014, allocations: 486.7 kB / 0.78 GB, free: 62.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02426/3.038, allocations: 3.789 MB / 0.7837 GB, free: 62.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001033/3.039, allocations: 23.27 kB / 0.7837 GB, free: 62.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05529/3.095, allocations: 25.96 MB / 0.809 GB, free: 54.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02659/3.121, allocations: 11.64 MB / 0.8204 GB, free: 48.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04503/3.166, allocations: 15.35 MB / 0.8354 GB, free: 42.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004673/3.171, allocations: 1.13 MB / 0.8365 GB, free: 41.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002301/3.174, allocations: 15.12 kB / 0.8365 GB, free: 41.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007112/3.181, allocations: 173.4 kB / 0.8367 GB, free: 41.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001848/3.183, allocations: 252.8 kB / 0.8369 GB, free: 41.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004859/3.183, allocations: 99.56 kB / 0.837 GB, free: 41.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007766/3.191, allocations: 2.982 MB / 0.8399 GB, free: 40.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.21e-07/3.191, allocations: 0 / 0.8399 GB, free: 40.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01456/3.205, allocations: 1.829 MB / 0.8417 GB, free: 40.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 4 ($STATESET4539052425.x,$STATESET4539052424.x,joint.phi,joint.R_rel.w[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * Single equations (assignments): 213 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 12,(3,100.0%) 35,(3,100.0%) 25} * Non-linear torn systems: 1 {3 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.04628/3.252, allocations: 17.32 MB / 0.8586 GB, free: 26.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02269/3.275, allocations: 10.42 MB / 0.8688 GB, free: 17.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-05/3.275, allocations: 0 / 0.8688 GB, free: 17.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009144/3.284, allocations: 4.15 MB / 0.8728 GB, free: 13.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006628/3.29, allocations: 0.6363 MB / 0.8735 GB, free: 12.85 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:260:5-270:3:writable] Warning: Variable joint.phi has attribute stateSelect=StateSelect.never, but was selected as a state Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05688/3.347, allocations: 16.53 MB / 0.8896 GB, free: 15.21 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3168/3.664, allocations: 5.144 MB / 0.8946 GB, free: 76.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008585/3.673, allocations: 3.185 MB / 0.8977 GB, free: 76.17 MB / 394.7 MB Notification: Performance of SimCode: time 2.024e-06/3.673, allocations: 0 / 0.8977 GB, free: 76.17 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.677/10.35, allocations: 283.9 MB / 1.175 GB, free: 62.48 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint_res.mat does not exist to compare? outputFormat=mat