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.388/2.388, allocations: 235 MB / 248.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.246e-05/3.255e-05, allocations: 4 kB / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.3846, allocations: 54.85 MB / 364.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1775/0.5621, allocations: 99.27 MB / 463.9 MB, free: 13.15 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.5624, allocations: 71.95 kB / 464 MB, free: 13.08 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.9277/1.49, allocations: 142.6 MB / 0.5923 GB, free: 96.65 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.515e-06/1.49, allocations: 0 / 0.5923 GB, free: 96.65 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005503/1.491, allocations: 152.7 kB / 0.5925 GB, free: 96.64 MB / 458.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.06142/1.552, allocations: 8.68 MB / 0.601 GB, free: 91.53 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.071e-05/1.552, allocations: 13.33 kB / 0.601 GB, free: 91.53 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007149/1.559, allocations: 1.295 MB / 0.6022 GB, free: 90.57 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0582/1.618, allocations: 7.752 MB / 0.6098 GB, free: 82.79 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04019/1.658, allocations: 10.95 MB / 0.6205 GB, free: 71.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006935/1.659, allocations: 0.5616 MB / 0.621 GB, free: 71.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004096/1.663, allocations: 0.7573 MB / 0.6218 GB, free: 70.45 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06592/1.729, allocations: 17.45 MB / 0.6388 GB, free: 51.46 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000677/1.73, allocations: 103 kB / 0.6389 GB, free: 51.36 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003854/1.733, allocations: 363.9 kB / 0.6393 GB, free: 51 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005092/1.739, allocations: 1.6 MB / 0.6408 GB, free: 49.4 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05363/1.792, allocations: 14.03 MB / 0.6545 GB, free: 35.34 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5353/2.328, allocations: 79.02 MB / 0.7317 GB, free: 50.23 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0362/2.364, allocations: 6.898 MB / 0.7384 GB, free: 49.55 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007202/2.371, allocations: 3.208 MB / 0.7416 GB, free: 49.52 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03692/2.408, allocations: 14.71 MB / 0.7559 GB, free: 46.3 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.021e-05/2.408, allocations: 67.92 kB / 0.756 GB, free: 46.26 MB / 474.7 MB Notification: Performance of pre-optimization done (n=259): time 6.612e-06/2.408, allocations: 0 / 0.756 GB, free: 46.26 MB / 474.7 MB Notification: Performance of matching and sorting (n=287): time 0.1079/2.516, allocations: 22.99 MB / 0.7784 GB, free: 40.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004786/2.521, allocations: 6.24 MB / 0.7845 GB, free: 34.22 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01504/2.536, allocations: 5.757 MB / 0.7902 GB, free: 32.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009709/2.537, allocations: 71.81 kB / 0.7902 GB, free: 32.04 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004687/2.542, allocations: 5.059 MB / 0.7952 GB, free: 28.02 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002204/2.544, allocations: 1.181 MB / 0.7963 GB, free: 27.17 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001396/2.545, allocations: 196.9 kB / 0.7965 GB, free: 27.02 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007611/2.546, allocations: 0.7236 MB / 0.7972 GB, free: 26.53 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009908/2.556, allocations: 3.82 MB / 0.8009 GB, free: 25.23 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01382/2.57, allocations: 9.608 MB / 0.8103 GB, free: 16.17 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01361/2.584, allocations: 5.931 MB / 0.8161 GB, free: 13.88 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000242/2.584, allocations: 56 kB / 0.8162 GB, free: 13.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=1271) (initialization): time 0.05659/2.641, allocations: 15.92 MB / 0.8317 GB, free: 1.027 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001507/2.641, allocations: 92 kB / 0.8318 GB, free: 0.9375 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04272/2.684, allocations: 8.044 MB / 0.8397 GB, free: 11.94 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03076/2.714, allocations: 3.908 MB / 0.8435 GB, free: 9.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01543/2.73, allocations: 2.299 MB / 0.8457 GB, free: 7.227 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02809/2.758, allocations: 13.56 MB / 0.859 GB, free: 8.887 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01494/2.773, allocations: 0.8631 MB / 0.8598 GB, free: 8.023 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002928/2.776, allocations: 0.596 MB / 0.8604 GB, free: 7.43 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 () * 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.004206/2.78, allocations: 0.859 MB / 0.8612 GB, free: 6.57 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002016/2.782, allocations: 0.5823 MB / 0.8618 GB, free: 5.98 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03117/2.814, allocations: 7.538 MB / 0.8692 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0266/2.84, allocations: 6.693 MB / 0.8757 GB, free: 7.641 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.931e-05/2.84, allocations: 11.98 kB / 0.8757 GB, free: 7.629 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.944e-05/2.84, allocations: 15.91 kB / 0.8757 GB, free: 7.613 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0234/2.864, allocations: 7.42 MB / 0.883 GB, free: 212 kB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-05/2.864, allocations: 4 kB / 0.883 GB, free: 208 kB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006814/2.871, allocations: 0.6006 MB / 0.8836 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01844/2.889, allocations: 3.133 MB / 0.8866 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001039/2.89, allocations: 97.03 kB / 0.8867 GB, free: 12.33 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02537/2.916, allocations: 13.99 MB / 0.9004 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005948/2.922, allocations: 6.023 MB / 0.9063 GB, free: 6.988 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4243/3.346, allocations: 11.64 MB / 0.9176 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002574/3.349, allocations: 0.6363 MB / 0.9182 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002769/3.351, allocations: 74.47 kB / 0.9183 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007912/3.359, allocations: 377.8 kB / 0.9187 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001615/3.361, allocations: 220.8 kB / 0.9189 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007657/3.362, allocations: 89.97 kB / 0.919 GB, free: 162.4 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01305/3.375, allocations: 4 MB / 0.9229 GB, free: 162.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.363e-06/3.375, allocations: 1.156 kB / 0.9229 GB, free: 162.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.015/3.39, allocations: 2.037 MB / 0.9249 GB, free: 162.1 MB / 0.5417 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 () * 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.03714/3.427, allocations: 12.51 MB / 0.9371 GB, free: 160.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.03022/3.458, allocations: 11.13 MB / 0.948 GB, free: 159.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/3.458, allocations: 2.469 kB / 0.948 GB, free: 159.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01707/3.475, allocations: 5.302 MB / 0.9531 GB, free: 157.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008457/3.483, allocations: 0.8263 MB / 0.954 GB, free: 156.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0644/3.548, allocations: 19.85 MB / 0.9733 GB, free: 149 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01261/3.56, allocations: 5.406 MB / 0.9786 GB, free: 147.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008708/3.569, allocations: 3.674 MB / 0.9822 GB, free: 144.3 MB / 0.5417 GB Notification: Performance of SimCode: time 1.102e-06/3.569, allocations: 0 / 0.9822 GB, free: 144.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.075/11.64, allocations: 0.5456 GB / 1.528 GB, free: 161.5 MB / 0.5417 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