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.FreeBodies.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_FreeBodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.446/2.446, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004421/0.000442, allocations: 8 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3688/0.3693, allocations: 54.87 MB / 369.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2257/0.595, allocations: 99.35 MB / 468.7 MB, free: 7.098 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/0.5953, allocations: 79.95 kB / 468.8 MB, free: 7.02 MB / 394.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6721:35-6721:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6722:13-6722:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6743:35-6743:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6744:13-6744:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6765:35-6765:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6766:13-6766:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6793:35-6793:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6794:13-6794:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6805:35-6805:45:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/MultiBody.mo:6806:13-6806:23:writable] Warning: Non-array modification 'true' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd - DAE generated: time 0.8534/1.449, allocations: 142.5 MB / 0.5969 GB, free: 5.176 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.449, allocations: 0 / 0.5969 GB, free: 5.176 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006809/1.449, allocations: 163.9 kB / 0.5971 GB, free: 5.012 MB / 426.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.06882/1.518, allocations: 9.279 MB / 0.6061 GB, free: 11.65 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.058e-05/1.518, allocations: 8.031 kB / 0.6061 GB, free: 11.64 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007342/1.526, allocations: 1.307 MB / 0.6074 GB, free: 10.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06339/1.589, allocations: 7.743 MB / 0.615 GB, free: 2.559 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04319/1.632, allocations: 10.99 MB / 0.6257 GB, free: 7.484 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008988/1.633, allocations: 0.5577 MB / 0.6263 GB, free: 6.926 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00439/1.638, allocations: 0.7574 MB / 0.627 GB, free: 6.168 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4173/2.055, allocations: 17.61 MB / 0.6442 GB, free: 58.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006986/2.056, allocations: 107.2 kB / 0.6443 GB, free: 58.98 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003718/2.06, allocations: 359.2 kB / 0.6446 GB, free: 58.98 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003937/2.064, allocations: 1.6 MB / 0.6462 GB, free: 58.96 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04834/2.112, allocations: 14.3 MB / 0.6602 GB, free: 58.9 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1291/2.241, allocations: 79.03 MB / 0.7373 GB, free: 24.98 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03454/2.276, allocations: 6.944 MB / 0.7441 GB, free: 22.84 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03607/2.312, allocations: 14.69 MB / 0.7585 GB, free: 15.39 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.955e-05/2.312, allocations: 62.22 kB / 0.7585 GB, free: 15.33 MB / 474.7 MB Notification: Performance of pre-optimization done (n=259): time 6.893e-06/2.312, allocations: 1.422 kB / 0.7585 GB, free: 15.33 MB / 474.7 MB Notification: Performance of matching and sorting (n=287): time 0.1385/2.451, allocations: 28.23 MB / 0.7861 GB, free: 14.1 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00686/2.457, allocations: 6.311 MB / 0.7923 GB, free: 7.441 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0164/2.474, allocations: 5.844 MB / 0.798 GB, free: 2.555 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009766/2.475, allocations: 69.06 kB / 0.798 GB, free: 2.484 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006047/2.481, allocations: 5.06 MB / 0.803 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002559/2.484, allocations: 1.179 MB / 0.8041 GB, free: 12.85 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001473/2.485, allocations: 199.8 kB / 0.8043 GB, free: 12.66 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0008564/2.486, allocations: 0.7208 MB / 0.805 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01144/2.497, allocations: 3.925 MB / 0.8089 GB, free: 8.75 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3895/2.887, allocations: 9.717 MB / 0.8183 GB, free: 97.42 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01626/2.903, allocations: 5.97 MB / 0.8242 GB, free: 97.37 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003144/2.904, allocations: 58.56 kB / 0.8242 GB, free: 97.37 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.0588/2.963, allocations: 16.13 MB / 0.84 GB, free: 96.66 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001857/2.963, allocations: 95.91 kB / 0.8401 GB, free: 96.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03408/2.997, allocations: 7.699 MB / 0.8476 GB, free: 96.39 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02867/3.026, allocations: 3.913 MB / 0.8514 GB, free: 96.27 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01436/3.04, allocations: 2.304 MB / 0.8537 GB, free: 96.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02382/3.064, allocations: 13.99 MB / 0.8673 GB, free: 88.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0145/3.078, allocations: 0.8652 MB / 0.8682 GB, free: 88.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002666/3.081, allocations: 0.5892 MB / 0.8687 GB, free: 88.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 933 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1195): * Single equations (assignments): 1170 * 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.01078/3.092, allocations: 3.419 MB / 0.8721 GB, free: 87.88 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001801/3.094, allocations: 0.5878 MB / 0.8727 GB, free: 87.88 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02687/3.121, allocations: 7.582 MB / 0.8801 GB, free: 87.54 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02383/3.145, allocations: 6.751 MB / 0.8867 GB, free: 85.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.897e-05/3.145, allocations: 10.28 kB / 0.8867 GB, free: 85.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.599e-05/3.145, allocations: 10.36 kB / 0.8867 GB, free: 85.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0202/3.165, allocations: 7.429 MB / 0.8939 GB, free: 82.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.643e-05/3.165, allocations: 6.484 kB / 0.8939 GB, free: 82.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006296/3.171, allocations: 0.5985 MB / 0.8945 GB, free: 82.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.017/3.188, allocations: 3.136 MB / 0.8976 GB, free: 82.31 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009631/3.189, allocations: 94.72 kB / 0.8977 GB, free: 82.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02191/3.211, allocations: 14.3 MB / 0.9116 GB, free: 72.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004628/3.216, allocations: 6.076 MB / 0.9176 GB, free: 66.91 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04064/3.257, allocations: 11.74 MB / 0.929 GB, free: 59.77 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002817/3.26, allocations: 0.635 MB / 0.9297 GB, free: 59.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003215/3.263, allocations: 75.59 kB / 0.9297 GB, free: 59.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009818/3.273, allocations: 380.2 kB / 0.9301 GB, free: 58.97 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001872/3.275, allocations: 216 kB / 0.9303 GB, free: 58.85 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008183/3.276, allocations: 88.73 kB / 0.9304 GB, free: 58.78 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01512/3.291, allocations: 4.095 MB / 0.9344 GB, free: 55.44 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.142e-06/3.291, allocations: 7.391 kB / 0.9344 GB, free: 55.43 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01907/3.31, allocations: 2.028 MB / 0.9364 GB, free: 53.42 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$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],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.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.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 216 * 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.03445/3.344, allocations: 12.59 MB / 0.9487 GB, free: 42.66 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02973/3.374, allocations: 11.29 MB / 0.9597 GB, free: 32.65 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/3.374, allocations: 0 / 0.9597 GB, free: 32.65 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01641/3.391, allocations: 5.358 MB / 0.9649 GB, free: 27.88 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007515/3.398, allocations: 0.8185 MB / 0.9657 GB, free: 27.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6212/4.019, allocations: 214.4 MB / 1.175 GB, free: 19.95 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01438/4.034, allocations: 5.414 MB / 1.18 GB, free: 19.07 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009848/4.044, allocations: 3.674 MB / 1.184 GB, free: 19.07 MB / 0.573 GB Notification: Performance of SimCode: time 1.012e-06/4.044, allocations: 0 / 1.184 GB, free: 19.07 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.903/12.95, allocations: 0.545 GB / 1.729 GB, free: 140 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FreeBodies_res.mat does not exist to compare? outputFormat=mat