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/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.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.346/2.346, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004432/0.0004433, allocations: 12 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3497, allocations: 54.86 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1909/0.5407, allocations: 105.7 MB / 475.1 MB, free: 0.7148 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/0.541, allocations: 79.95 kB / 475.2 MB, free: 0.6367 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8475/1.389, allocations: 135.7 MB / 0.5966 GB, free: 6.379 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.455e-06/1.389, allocations: 0 / 0.5966 GB, free: 6.379 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005772/1.389, allocations: 132 kB / 0.5967 GB, free: 6.25 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.03785/1.427, allocations: 7.647 MB / 0.6041 GB, free: 14.51 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/1.427, allocations: 8.031 kB / 0.6042 GB, free: 14.5 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006217/1.433, allocations: 1.153 MB / 0.6053 GB, free: 13.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05997/1.493, allocations: 7.553 MB / 0.6127 GB, free: 5.766 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03854/1.532, allocations: 9.829 MB / 0.6223 GB, free: 11.85 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008246/1.533, allocations: 496.8 kB / 0.6227 GB, free: 11.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003954/1.537, allocations: 0.6442 MB / 0.6234 GB, free: 10.72 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4285/1.965, allocations: 16.7 MB / 0.6397 GB, free: 65.22 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005819/1.966, allocations: 106 kB / 0.6398 GB, free: 65.22 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003258/1.969, allocations: 310.9 kB / 0.6401 GB, free: 65.22 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004102/1.973, allocations: 1.579 MB / 0.6416 GB, free: 65.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04613/2.02, allocations: 13.73 MB / 0.655 GB, free: 65.15 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1284/2.148, allocations: 74.27 MB / 0.7276 GB, free: 18.87 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04976/2.198, allocations: 7.701 MB / 0.7351 GB, free: 16.56 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04521/2.243, allocations: 18.62 MB / 0.7533 GB, free: 6.848 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.365e-05/2.243, allocations: 59.06 kB / 0.7533 GB, free: 6.793 MB / 458.7 MB Notification: Performance of pre-optimization done (n=280): time 9.578e-06/2.243, allocations: 3.562 kB / 0.7533 GB, free: 6.793 MB / 458.7 MB Notification: Performance of matching and sorting (n=361): time 0.3651/2.609, allocations: 50.12 MB / 0.8023 GB, free: 6.035 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000195/2.609, allocations: 273.7 kB / 0.8025 GB, free: 5.711 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01558/2.624, allocations: 5.386 MB / 0.8078 GB, free: 444 kB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001062/2.625, allocations: 80.98 kB / 0.8079 GB, free: 360 kB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006062/2.632, allocations: 4.558 MB / 0.8123 GB, free: 11.85 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002907/2.635, allocations: 1.331 MB / 0.8136 GB, free: 10.53 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001665/2.636, allocations: 180 kB / 0.8138 GB, free: 10.35 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0009168/2.637, allocations: 0.7031 MB / 0.8145 GB, free: 9.637 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01169/2.649, allocations: 3.777 MB / 0.8182 GB, free: 5.852 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3865/3.035, allocations: 8.955 MB / 0.8269 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02364/3.059, allocations: 5.643 MB / 0.8324 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004193/3.06, allocations: 54.97 kB / 0.8325 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.09013/3.15, allocations: 16.46 MB / 0.8485 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003138/3.15, allocations: 81.44 kB / 0.8486 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004662/3.151, allocations: 185.4 kB / 0.8488 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03547/3.186, allocations: 4.168 MB / 0.8529 GB, free: 105 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01824/3.204, allocations: 2.031 MB / 0.8549 GB, free: 104.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06568/3.27, allocations: 22.91 MB / 0.8772 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0119/3.282, allocations: 0.551 MB / 0.8778 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002559/3.285, allocations: 0.5258 MB / 0.8783 GB, free: 100.2 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1077): * Single equations (assignments): 1072 * 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.009971/3.295, allocations: 3.119 MB / 0.8813 GB, free: 98.91 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001577/3.296, allocations: 0.5706 MB / 0.8819 GB, free: 98.91 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04077/3.337, allocations: 9.82 MB / 0.8915 GB, free: 95.82 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.62e-05/3.337, allocations: 35.22 kB / 0.8915 GB, free: 95.82 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.111e-05/3.337, allocations: 20.25 kB / 0.8915 GB, free: 95.82 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.753e-05/3.338, allocations: 21.38 kB / 0.8916 GB, free: 95.82 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06875/3.406, allocations: 19.19 MB / 0.9103 GB, free: 89.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.087e-05/3.406, allocations: 7.625 kB / 0.9103 GB, free: 89.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005038/3.411, allocations: 0.4964 MB / 0.9108 GB, free: 89.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02328/3.435, allocations: 3.667 MB / 0.9144 GB, free: 87.79 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001284/3.436, allocations: 59.66 kB / 0.9144 GB, free: 87.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06847/3.505, allocations: 19.8 MB / 0.9337 GB, free: 71.03 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/3.505, allocations: 0 / 0.9337 GB, free: 71.03 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04837/3.553, allocations: 14.27 MB / 0.9477 GB, free: 59.48 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004421/3.558, allocations: 1.121 MB / 0.9488 GB, free: 58.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002029/3.56, allocations: 53.41 kB / 0.9488 GB, free: 58.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006454/3.566, allocations: 235.6 kB / 0.9491 GB, free: 58.25 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001618/3.568, allocations: 225.8 kB / 0.9493 GB, free: 58.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004422/3.568, allocations: 97.66 kB / 0.9494 GB, free: 58.02 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0108/3.579, allocations: 3.786 MB / 0.9531 GB, free: 54.93 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.012e-06/3.579, allocations: 0 / 0.9531 GB, free: 54.93 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01257/3.592, allocations: 1.847 MB / 0.9549 GB, free: 53.1 MB / 0.4948 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (264): * Single equations (assignments): 259 * 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.04833/3.64, allocations: 15.13 MB / 0.9696 GB, free: 39.79 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02398/3.664, allocations: 9.627 MB / 0.979 GB, free: 30.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/3.664, allocations: 7.844 kB / 0.979 GB, free: 30.15 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009362/3.674, allocations: 3.746 MB / 0.9827 GB, free: 26.38 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006255/3.68, allocations: 0.7123 MB / 0.9834 GB, free: 25.69 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6171/4.297, allocations: 191.7 MB / 1.171 GB, free: 21.5 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01633/4.313, allocations: 5.002 MB / 1.176 GB, free: 20.63 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01129/4.325, allocations: 3.321 MB / 1.179 GB, free: 20.63 MB / 0.5573 GB Notification: Performance of SimCode: time 2.725e-06/4.325, allocations: 0 / 1.179 GB, free: 20.63 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.04/10.37, allocations: 186.4 MB / 1.361 GB, free: 102.8 MB / 0.5573 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