Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.371/2.371, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.818e-05/3.828e-05, allocations: 4 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3895/0.3896, allocations: 54.85 MB / 364.6 MB, free: 5.551 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1911/0.5808, allocations: 105.7 MB / 470.4 MB, free: 6.68 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002866/0.5812, allocations: 79.94 kB / 470.4 MB, free: 6.602 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9622/1.543, allocations: 135.8 MB / 0.592 GB, free: 99.29 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.543, allocations: 0 / 0.592 GB, free: 99.29 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005111/1.544, allocations: 125.3 kB / 0.5922 GB, free: 99.29 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: 2299 * Number of variables: 2299 Notification: Performance of Generate backend data structure: time 0.03062/1.575, allocations: 7.052 MB / 0.5991 GB, free: 94.69 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/1.575, allocations: 8.031 kB / 0.5991 GB, free: 94.68 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00564/1.58, allocations: 1.146 MB / 0.6002 GB, free: 93.56 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05682/1.637, allocations: 7.57 MB / 0.6076 GB, free: 85.98 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03571/1.673, allocations: 9.788 MB / 0.6171 GB, free: 76.24 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006698/1.674, allocations: 0.4922 MB / 0.6176 GB, free: 75.79 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003885/1.678, allocations: 0.6517 MB / 0.6182 GB, free: 75.17 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05281/1.73, allocations: 16.56 MB / 0.6344 GB, free: 57.16 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005303/1.731, allocations: 103.1 kB / 0.6345 GB, free: 57.06 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00323/1.734, allocations: 315.8 kB / 0.6348 GB, free: 56.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003726/1.738, allocations: 1.58 MB / 0.6364 GB, free: 55.17 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04447/1.783, allocations: 13.49 MB / 0.6495 GB, free: 41.64 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5083/2.291, allocations: 74.31 MB / 0.7221 GB, free: 58.76 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04032/2.331, allocations: 7.687 MB / 0.7296 GB, free: 58.07 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009194/2.341, allocations: 3.981 MB / 0.7335 GB, free: 58.02 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05414/2.395, allocations: 18.71 MB / 0.7518 GB, free: 53.57 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.394e-05/2.395, allocations: 67.69 kB / 0.7518 GB, free: 53.54 MB / 474.7 MB Notification: Performance of pre-optimization done (n=286): time 6.312e-06/2.395, allocations: 0 / 0.7518 GB, free: 53.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=367): time 0.2316/2.627, allocations: 40.3 MB / 0.7912 GB, free: 43.02 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/2.627, allocations: 268.8 kB / 0.7915 GB, free: 42.7 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01264/2.639, allocations: 5.294 MB / 0.7966 GB, free: 38 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001004/2.64, allocations: 79.3 kB / 0.7967 GB, free: 37.92 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003952/2.644, allocations: 4.551 MB / 0.8011 GB, free: 33.78 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002223/2.647, allocations: 1.354 MB / 0.8025 GB, free: 32.58 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00127/2.648, allocations: 184 kB / 0.8026 GB, free: 32.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005875/2.649, allocations: 0.6963 MB / 0.8033 GB, free: 31.81 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009341/2.658, allocations: 3.686 MB / 0.8069 GB, free: 28.48 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01288/2.671, allocations: 8.876 MB / 0.8156 GB, free: 17.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01305/2.684, allocations: 5.611 MB / 0.8211 GB, free: 13.22 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001887/2.684, allocations: 52 kB / 0.8211 GB, free: 13.17 MB / 474.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.06141/2.746, allocations: 16.17 MB / 0.8369 GB, free: 392 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/2.746, allocations: 84 kB / 0.837 GB, free: 308 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002832/2.746, allocations: 180 kB / 0.8372 GB, free: 128 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03036/2.776, allocations: 4.196 MB / 0.8413 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01437/2.791, allocations: 2.043 MB / 0.8433 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06175/2.853, allocations: 21.73 MB / 0.8645 GB, free: 4.383 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01199/2.865, allocations: 0.554 MB / 0.865 GB, free: 3.828 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002636/2.867, allocations: 0.5312 MB / 0.8655 GB, free: 3.297 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (1083): * Single equations (assignments): 1078 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003959/2.871, allocations: 0.8018 MB / 0.8663 GB, free: 2.488 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001867/2.873, allocations: 0.5746 MB / 0.8669 GB, free: 1.906 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04329/2.917, allocations: 9.684 MB / 0.8763 GB, free: 8.168 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.74e-05/2.917, allocations: 36 kB / 0.8764 GB, free: 8.133 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-05/2.917, allocations: 16 kB / 0.8764 GB, free: 8.117 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001007/2.917, allocations: 19.94 kB / 0.8764 GB, free: 8.098 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09571/3.013, allocations: 19.1 MB / 0.8951 GB, free: 4.891 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-05/3.013, allocations: 0 / 0.8951 GB, free: 4.891 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005554/3.018, allocations: 0.5071 MB / 0.8956 GB, free: 4.383 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02286/3.041, allocations: 3.563 MB / 0.899 GB, free: 0.8086 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001072/3.042, allocations: 63.5 kB / 0.8991 GB, free: 0.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4539/3.496, allocations: 18.71 MB / 0.9174 GB, free: 168.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/3.496, allocations: 4.672 kB / 0.9174 GB, free: 168.9 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0519/3.548, allocations: 14.12 MB / 0.9312 GB, free: 168.2 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004715/3.553, allocations: 1.116 MB / 0.9323 GB, free: 168.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002077/3.555, allocations: 61.53 kB / 0.9323 GB, free: 168.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006531/3.562, allocations: 224.1 kB / 0.9325 GB, free: 168.1 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001597/3.563, allocations: 233.3 kB / 0.9328 GB, free: 168.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005269/3.564, allocations: 90.06 kB / 0.9328 GB, free: 168.1 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.009912/3.574, allocations: 3.707 MB / 0.9365 GB, free: 167.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.202e-06/3.574, allocations: 0 / 0.9365 GB, free: 167.8 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0117/3.586, allocations: 1.846 MB / 0.9383 GB, free: 167.8 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 265 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0457/3.631, allocations: 14.97 MB / 0.9529 GB, free: 165.7 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02285/3.654, allocations: 9.523 MB / 0.9622 GB, free: 162.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/3.654, allocations: 0 / 0.9622 GB, free: 162.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009442/3.664, allocations: 3.722 MB / 0.9658 GB, free: 161 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006271/3.67, allocations: 0.7228 MB / 0.9665 GB, free: 160.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05093/3.721, allocations: 16.04 MB / 0.9822 GB, free: 155 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01124/3.732, allocations: 5.014 MB / 0.9871 GB, free: 153.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007588/3.74, allocations: 3.326 MB / 0.9903 GB, free: 150.1 MB / 0.5417 GB Notification: Performance of SimCode: time 1.253e-06/3.74, allocations: 2.188 kB / 0.9903 GB, free: 150.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.166/9.906, allocations: 187 MB / 1.173 GB, free: 155.5 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat