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.ForceWithTwoMasses2.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.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.447/2.447, allocations: 235.1 MB / 243 MB, free: 15.68 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.865e-05/2.903e-05, allocations: 4 kB / 303.3 MB, free: 3.344 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4136/0.4137, allocations: 54.86 MB / 358.1 MB, free: 15.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2037/0.6175, allocations: 105 MB / 463.1 MB, free: 6.586 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.6178, allocations: 79.95 kB / 463.2 MB, free: 6.508 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8517/1.47, allocations: 133.1 MB / 0.5823 GB, free: 16.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.365e-06/1.47, allocations: 0 / 0.5823 GB, free: 16.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004936/1.47, allocations: 132 kB / 0.5824 GB, free: 16.27 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02994/1.5, allocations: 7.035 MB / 0.5893 GB, free: 9.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/1.5, allocations: 12.03 kB / 0.5893 GB, free: 9.148 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05519/1.555, allocations: 7.561 MB / 0.5967 GB, free: 1.566 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03867/1.594, allocations: 9.786 MB / 0.6063 GB, free: 7.695 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005125/1.595, allocations: 208 kB / 0.6065 GB, free: 7.492 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003866/1.598, allocations: 399.7 kB / 0.6068 GB, free: 7.102 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02932/1.628, allocations: 9.656 MB / 0.6163 GB, free: 13.43 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04298/1.671, allocations: 14.2 MB / 0.6301 GB, free: 13.79 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006234/1.672, allocations: 103 kB / 0.6302 GB, free: 13.69 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003216/1.675, allocations: 44 kB / 0.6303 GB, free: 13.64 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004432/1.679, allocations: 1.576 MB / 0.6318 GB, free: 12.06 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4625/2.142, allocations: 73.61 MB / 0.7037 GB, free: 36.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01039/2.152, allocations: 5.13 MB / 0.7087 GB, free: 35.38 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007266/2.16, allocations: 3.703 MB / 0.7123 GB, free: 35.34 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003561/2.163, allocations: 2.264 MB / 0.7145 GB, free: 33.34 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.511e-05/2.163, allocations: 71.88 kB / 0.7146 GB, free: 33.3 MB / 458.7 MB Notification: Performance of pre-optimization done (n=295): time 6.302e-06/2.163, allocations: 0 / 0.7146 GB, free: 33.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=374): time 0.1626/2.326, allocations: 39.61 MB / 0.7533 GB, free: 21.41 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/2.326, allocations: 272.4 kB / 0.7536 GB, free: 21.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01106/2.337, allocations: 4.641 MB / 0.7581 GB, free: 17.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001106/2.338, allocations: 29.7 kB / 0.7581 GB, free: 17.68 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004379/2.343, allocations: 4.622 MB / 0.7626 GB, free: 13.82 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002386/2.345, allocations: 1.331 MB / 0.7639 GB, free: 12.62 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001265/2.346, allocations: 3.562 kB / 0.7639 GB, free: 12.62 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007324/2.347, allocations: 0.7117 MB / 0.7646 GB, free: 12.01 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00882/2.356, allocations: 3.62 MB / 0.7682 GB, free: 8.766 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01302/2.369, allocations: 8.894 MB / 0.7768 GB, free: 14.02 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0149/2.384, allocations: 5.557 MB / 0.7823 GB, free: 9.551 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000272/2.384, allocations: 56 kB / 0.7823 GB, free: 9.496 MB / 474.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.06063/2.445, allocations: 15.37 MB / 0.7973 GB, free: 13.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001726/2.445, allocations: 87.5 kB / 0.7974 GB, free: 13.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003352/2.446, allocations: 188 kB / 0.7976 GB, free: 13.17 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02456/2.47, allocations: 4.122 MB / 0.8016 GB, free: 10.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0144/2.485, allocations: 2.095 MB / 0.8037 GB, free: 8.488 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05887/2.544, allocations: 21.16 MB / 0.8243 GB, free: 6.652 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01168/2.555, allocations: 387.1 kB / 0.8247 GB, free: 6.355 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002757/2.558, allocations: 0.5462 MB / 0.8252 GB, free: 5.824 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 852 * 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 (1114): * Single equations (assignments): 1109 * 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 {(1,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004018/2.562, allocations: 0.5799 MB / 0.8258 GB, free: 5.246 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3995/2.962, allocations: 9.897 MB / 0.8355 GB, free: 116.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00206/2.964, allocations: 0.5365 MB / 0.836 GB, free: 116.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03812/3.002, allocations: 9.565 MB / 0.8453 GB, free: 116.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.986e-05/3.002, allocations: 38.84 kB / 0.8454 GB, free: 116.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.17e-05/3.002, allocations: 19.52 kB / 0.8454 GB, free: 116.7 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.301e-05/3.002, allocations: 17.77 kB / 0.8454 GB, free: 116.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06232/3.065, allocations: 18.09 MB / 0.8631 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.307e-05/3.065, allocations: 7.312 kB / 0.8631 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005308/3.07, allocations: 0.5167 MB / 0.8636 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02171/3.092, allocations: 3.571 MB / 0.8671 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009792/3.093, allocations: 12.83 kB / 0.8671 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04444/3.137, allocations: 17.67 MB / 0.8843 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.249e-05/3.137, allocations: 3 kB / 0.8843 GB, free: 111.1 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04743/3.185, allocations: 14.25 MB / 0.8983 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005479/3.19, allocations: 1.082 MB / 0.8993 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00236/3.193, allocations: 3.938 kB / 0.8993 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008537/3.201, allocations: 185.9 kB / 0.8995 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00202/3.203, allocations: 232.8 kB / 0.8997 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007577/3.204, allocations: 98.97 kB / 0.8998 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01071/3.215, allocations: 3.119 MB / 0.9029 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.332e-06/3.215, allocations: 0 / 0.9029 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01659/3.232, allocations: 1.606 MB / 0.9044 GB, free: 104.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (277): * Single equations (assignments): 272 * 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.05333/3.285, allocations: 15.46 MB / 0.9195 GB, free: 95.08 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02095/3.306, allocations: 9.145 MB / 0.9285 GB, free: 87.24 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/3.306, allocations: 0 / 0.9285 GB, free: 87.24 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008722/3.315, allocations: 3.633 MB / 0.932 GB, free: 84.01 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005822/3.321, allocations: 0.5817 MB / 0.9326 GB, free: 83.52 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05026/3.371, allocations: 15.66 MB / 0.9479 GB, free: 70.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01177/3.383, allocations: 5.006 MB / 0.9528 GB, free: 66.38 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00746/3.39, allocations: 3.307 MB / 0.956 GB, free: 63.07 MB / 0.4948 GB Notification: Performance of SimCode: time 1.623e-06/3.39, allocations: 2.953 kB / 0.956 GB, free: 63.07 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.655/9.046, allocations: 183.3 MB / 1.135 GB, free: 45.4 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat