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.249/2.249, allocations: 235 MB / 248.1 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.357e-05/3.368e-05, allocations: 4 kB / 309.8 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4106/0.4107, allocations: 54.86 MB / 364.6 MB, free: 5.434 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1986/0.6093, allocations: 105.7 MB / 470.3 MB, free: 6.676 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/0.6097, allocations: 76.7 kB / 470.4 MB, free: 6.602 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9108/1.52, allocations: 135.8 MB / 0.592 GB, free: 99.19 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.844e-06/1.521, allocations: 0 / 0.592 GB, free: 99.19 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005021/1.521, allocations: 132.6 kB / 0.5921 GB, free: 99.19 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.03041/1.551, allocations: 7.032 MB / 0.599 GB, free: 94.57 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/1.552, allocations: 8.031 kB / 0.599 GB, free: 94.56 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005232/1.557, allocations: 1.142 MB / 0.6001 GB, free: 93.45 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07872/1.636, allocations: 7.562 MB / 0.6075 GB, free: 85.87 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03535/1.671, allocations: 9.805 MB / 0.6171 GB, free: 76.12 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005379/1.672, allocations: 485.1 kB / 0.6175 GB, free: 75.68 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003709/1.675, allocations: 0.655 MB / 0.6182 GB, free: 75.07 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05134/1.727, allocations: 16.55 MB / 0.6343 GB, free: 57.07 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008158/1.728, allocations: 103 kB / 0.6344 GB, free: 56.96 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004006/1.732, allocations: 311.8 kB / 0.6347 GB, free: 56.66 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003787/1.735, allocations: 1.576 MB / 0.6363 GB, free: 55.08 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04353/1.779, allocations: 13.48 MB / 0.6494 GB, free: 41.57 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5873/2.366, allocations: 74.23 MB / 0.7219 GB, free: 58.77 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06385/2.43, allocations: 7.655 MB / 0.7294 GB, free: 58.06 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01391/2.444, allocations: 3.914 MB / 0.7332 GB, free: 58.02 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07079/2.515, allocations: 18.63 MB / 0.7514 GB, free: 53.57 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000101/2.515, allocations: 59.16 kB / 0.7514 GB, free: 53.53 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 9.598e-06/2.515, allocations: 2 kB / 0.7515 GB, free: 53.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=361): time 0.2425/2.758, allocations: 40.42 MB / 0.7909 GB, free: 43.12 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/2.758, allocations: 269.4 kB / 0.7912 GB, free: 42.8 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0133/2.771, allocations: 5.295 MB / 0.7963 GB, free: 38.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00106/2.772, allocations: 82.41 kB / 0.7964 GB, free: 38.02 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004076/2.777, allocations: 4.555 MB / 0.8009 GB, free: 33.88 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002183/2.779, allocations: 1.332 MB / 0.8022 GB, free: 32.7 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001242/2.78, allocations: 180 kB / 0.8023 GB, free: 32.52 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000603/2.781, allocations: 0.7044 MB / 0.803 GB, free: 31.92 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009486/2.79, allocations: 3.653 MB / 0.8066 GB, free: 28.62 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01314/2.803, allocations: 8.839 MB / 0.8152 GB, free: 17.97 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01308/2.817, allocations: 5.574 MB / 0.8207 GB, free: 13.38 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001911/2.817, allocations: 52 kB / 0.8207 GB, free: 13.33 MB / 474.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.05625/2.873, allocations: 16.16 MB / 0.8365 GB, free: 0.5938 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001341/2.873, allocations: 80 kB / 0.8366 GB, free: 0.5156 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002657/2.874, allocations: 184 kB / 0.8368 GB, free: 344 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0273/2.901, allocations: 4.202 MB / 0.8409 GB, free: 12.55 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01445/2.915, allocations: 2.034 MB / 0.8429 GB, free: 10.52 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07422/2.99, allocations: 21.75 MB / 0.8641 GB, free: 4.512 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0172/3.007, allocations: 0.554 MB / 0.8646 GB, free: 3.957 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003103/3.01, allocations: 0.5267 MB / 0.8651 GB, free: 3.434 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 (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.004834/3.015, allocations: 0.8117 MB / 0.8659 GB, free: 2.617 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002524/3.017, allocations: 0.5708 MB / 0.8665 GB, free: 2.039 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04703/3.065, allocations: 9.658 MB / 0.8759 GB, free: 8.324 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.381e-05/3.065, allocations: 40 kB / 0.876 GB, free: 8.285 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.5e-05/3.065, allocations: 19.95 kB / 0.876 GB, free: 8.266 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001062/3.065, allocations: 15.94 kB / 0.876 GB, free: 8.25 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08229/3.147, allocations: 19.02 MB / 0.8946 GB, free: 5.121 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.393e-05/3.147, allocations: 0 / 0.8946 GB, free: 5.121 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005422/3.153, allocations: 0.4954 MB / 0.8951 GB, free: 4.625 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02361/3.176, allocations: 3.61 MB / 0.8986 GB, free: 1.004 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001035/3.177, allocations: 63.98 kB / 0.8986 GB, free: 0.9414 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.456/3.633, allocations: 18.7 MB / 0.9169 GB, free: 168.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/3.634, allocations: 1.375 kB / 0.9169 GB, free: 168.9 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05183/3.685, allocations: 14.05 MB / 0.9306 GB, free: 168.3 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00543/3.691, allocations: 1.114 MB / 0.9317 GB, free: 168.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002582/3.693, allocations: 60.17 kB / 0.9318 GB, free: 168.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006859/3.7, allocations: 236 kB / 0.932 GB, free: 168.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001702/3.702, allocations: 219.3 kB / 0.9322 GB, free: 168.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006064/3.703, allocations: 90.42 kB / 0.9323 GB, free: 168.2 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01085/3.714, allocations: 3.705 MB / 0.9359 GB, free: 167.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.082e-06/3.714, allocations: 3.844 kB / 0.9359 GB, free: 167.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01295/3.727, allocations: 1.851 MB / 0.9377 GB, free: 167.9 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 (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.04908/3.776, allocations: 14.89 MB / 0.9523 GB, free: 165.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0246/3.8, allocations: 9.431 MB / 0.9615 GB, free: 162.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/3.801, allocations: 2.25 kB / 0.9615 GB, free: 162.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01002/3.811, allocations: 3.672 MB / 0.9651 GB, free: 161.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006994/3.818, allocations: 0.7198 MB / 0.9658 GB, free: 161 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.057/3.875, allocations: 16.01 MB / 0.9814 GB, free: 155.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01283/3.888, allocations: 5.008 MB / 0.9863 GB, free: 153.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008511/3.896, allocations: 3.316 MB / 0.9895 GB, free: 150.6 MB / 0.5417 GB Notification: Performance of SimCode: time 1.653e-06/3.896, allocations: 0 / 0.9895 GB, free: 150.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.919/9.815, allocations: 186.6 MB / 1.172 GB, free: 156 MB / 0.5417 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