Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FreeBodiesEnforceStatesFalse.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodiesEnforceStatesFalse,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_FreeBodiesEnforceStatesFalse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.349/2.349, allocations: 235.1 MB / 243 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.134e-05/2.144e-05, allocations: 0 / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3387, allocations: 54.85 MB / 358.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1777/0.5164, allocations: 98.61 MB / 456.7 MB, free: 12.17 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.5167, allocations: 75.95 kB / 456.8 MB, free: 12.09 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8345/1.351, allocations: 139.1 MB / 0.582 GB, free: 0.9648 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.351, allocations: 0 / 0.582 GB, free: 0.9648 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006038/1.352, allocations: 160 kB / 0.5821 GB, free: 0.8086 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: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.06499/1.417, allocations: 8.675 MB / 0.5906 GB, free: 8.059 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.754e-05/1.417, allocations: 8.031 kB / 0.5906 GB, free: 8.051 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06045/1.477, allocations: 7.748 MB / 0.5982 GB, free: 288 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04326/1.521, allocations: 10.94 MB / 0.6089 GB, free: 5.258 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005749/1.521, allocations: 247.9 kB / 0.6091 GB, free: 5.016 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003916/1.525, allocations: 467.7 kB / 0.6095 GB, free: 4.559 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02923/1.554, allocations: 10.03 MB / 0.6193 GB, free: 10.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3792/1.934, allocations: 15.13 MB / 0.6341 GB, free: 63.07 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007486/1.935, allocations: 109.8 kB / 0.6342 GB, free: 63.07 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003557/1.938, allocations: 45.78 kB / 0.6343 GB, free: 63.07 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004487/1.943, allocations: 1.599 MB / 0.6358 GB, free: 63.06 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1185/2.061, allocations: 77.67 MB / 0.7117 GB, free: 18.11 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008615/2.07, allocations: 4.368 MB / 0.7159 GB, free: 17.43 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005785/2.076, allocations: 3.051 MB / 0.7189 GB, free: 16.16 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003168/2.076, allocations: 51.7 kB / 0.719 GB, free: 16.16 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.51e-05/2.076, allocations: 69.44 kB / 0.719 GB, free: 16.1 MB / 458.7 MB Notification: Performance of pre-optimization done (n=265): time 7.865e-06/2.076, allocations: 0.875 kB / 0.719 GB, free: 16.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=293): time 0.08428/2.16, allocations: 21.64 MB / 0.7402 GB, free: 7.957 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.639e-05/2.161, allocations: 243.3 kB / 0.7404 GB, free: 7.703 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01211/2.173, allocations: 5.143 MB / 0.7454 GB, free: 5.832 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008962/2.174, allocations: 29.52 kB / 0.7454 GB, free: 5.801 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004428/2.178, allocations: 5.125 MB / 0.7505 GB, free: 1.742 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002387/2.18, allocations: 1.176 MB / 0.7516 GB, free: 0.8789 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001387/2.182, allocations: 0 / 0.7516 GB, free: 0.8789 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006954/2.183, allocations: 0.7359 MB / 0.7523 GB, free: 392 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01304/2.196, allocations: 3.952 MB / 0.7562 GB, free: 0 / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01486/2.211, allocations: 9.592 MB / 0.7655 GB, free: 6.68 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01341/2.224, allocations: 5.846 MB / 0.7713 GB, free: 4.48 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002195/2.224, allocations: 61.78 kB / 0.7713 GB, free: 4.48 MB / 474.7 MB Notification: Performance of matching and sorting (n=1301) (initialization): time 0.06067/2.285, allocations: 15.03 MB / 0.786 GB, free: 11.87 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001771/2.285, allocations: 96 kB / 0.7861 GB, free: 11.78 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03437/2.32, allocations: 7.527 MB / 0.7934 GB, free: 5.879 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03036/2.35, allocations: 3.856 MB / 0.7972 GB, free: 3.305 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0151/2.365, allocations: 2.355 MB / 0.7995 GB, free: 1.281 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02494/2.39, allocations: 13.13 MB / 0.8123 GB, free: 5.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0144/2.405, allocations: 0.6852 MB / 0.813 GB, free: 4.605 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002461/2.407, allocations: 0.6054 MB / 0.8136 GB, free: 4.023 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 957 * Number of states: 0 () * Number of discrete variables: 75 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1225): * Single equations (assignments): 1200 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002352/2.409, allocations: 0.6428 MB / 0.8142 GB, free: 3.383 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3854/2.795, allocations: 7.853 MB / 0.8219 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002207/2.797, allocations: 0.5549 MB / 0.8224 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02512/2.822, allocations: 7.334 MB / 0.8296 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02237/2.845, allocations: 6.577 MB / 0.836 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-05/2.845, allocations: 6.844 kB / 0.836 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001169/2.845, allocations: 13.08 kB / 0.836 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03101/2.876, allocations: 11.06 MB / 0.8468 GB, free: 105 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-05/2.876, allocations: 11.48 kB / 0.8468 GB, free: 105 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006428/2.882, allocations: 0.6048 MB / 0.8474 GB, free: 105 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01667/2.899, allocations: 3.069 MB / 0.8504 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009021/2.9, allocations: 66.75 kB / 0.8505 GB, free: 104.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02115/2.921, allocations: 13.8 MB / 0.864 GB, free: 97.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004206/2.926, allocations: 5.787 MB / 0.8696 GB, free: 92.32 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03361/2.959, allocations: 11.53 MB / 0.8809 GB, free: 91.52 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002879/2.962, allocations: 0.6026 MB / 0.8815 GB, free: 91.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003108/2.965, allocations: 38.62 kB / 0.8815 GB, free: 91.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01007/2.975, allocations: 327 kB / 0.8818 GB, free: 91.43 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001878/2.977, allocations: 224 kB / 0.882 GB, free: 91.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008472/2.978, allocations: 88.42 kB / 0.8821 GB, free: 91.43 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009323/2.988, allocations: 3.454 MB / 0.8855 GB, free: 90.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.263e-06/2.988, allocations: 0 / 0.8855 GB, free: 90.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01334/3.001, allocations: 1.882 MB / 0.8873 GB, free: 90.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.x[1],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.frame_a.r_0[1],bodyShape.body.frame_a.r_0[2],bodyShape.body.frame_a.r_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.frame_a.r_0[1],bodyBox.body.frame_a.r_0[2],bodyBox.body.frame_a.r_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.frame_a.r_0[1],bodyCylinder.body.frame_a.r_0[2],bodyCylinder.body.frame_a.r_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (239): * Single equations (assignments): 222 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03366/3.035, allocations: 12.36 MB / 0.8994 GB, free: 85.99 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02688/3.062, allocations: 10.74 MB / 0.9099 GB, free: 81.94 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/3.062, allocations: 3.938 kB / 0.9099 GB, free: 81.94 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01595/3.078, allocations: 5.281 MB / 0.915 GB, free: 78.93 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006937/3.085, allocations: 0.7027 MB / 0.9157 GB, free: 78.35 MB / 0.4948 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:1838:5-1840:74:writable] Warning: Variable pointMass.v_0[3] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:1838:5-1840:74:writable] Warning: Variable pointMass.v_0[2] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:1838:5-1840:74:writable] Warning: Variable pointMass.v_0[1] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:1835:5-1837:74:writable] Warning: Variable pointMass.r_0[3] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:1835:5-1837:74:writable] Warning: Variable pointMass.r_0[2] has attribute stateSelect=StateSelect.never, but was selected as a state [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:1835:5-1837:74:writable] Warning: Variable pointMass.r_0[1] 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.0699/3.155, allocations: 19.54 MB / 0.9348 GB, free: 62.07 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01622/3.171, allocations: 5.413 MB / 0.9401 GB, free: 58.11 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01127/3.182, allocations: 3.668 MB / 0.9437 GB, free: 54.73 MB / 0.4948 GB Notification: Performance of SimCode: time 2.174e-06/3.182, allocations: 0 / 0.9437 GB, free: 54.73 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.96/11.14, allocations: 0.5421 GB / 1.486 GB, free: 105.4 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FreeBodiesEnforceStatesFalse_res.mat does not exist to compare? outputFormat=mat