Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.28/2.28, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.3e-05/3.305e-05, allocations: 8 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4904/0.4905, allocations: 54.84 MB / 364.6 MB, free: 5.445 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2037/0.6943, allocations: 101.1 MB / 465.7 MB, free: 11.28 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.6946, allocations: 75.97 kB / 465.8 MB, free: 11.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7673/1.462, allocations: 103.3 MB / 0.5557 GB, free: 105.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.462, allocations: 0 / 0.5557 GB, free: 105.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005372/1.463, allocations: 106.8 kB / 0.5558 GB, free: 105.6 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: 1726 * Number of variables: 1726 Notification: Performance of Generate backend data structure: time 0.02553/1.488, allocations: 5.201 MB / 0.5609 GB, free: 103.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.129e-05/1.488, allocations: 7.75 kB / 0.5609 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004742/1.493, allocations: 1.016 MB / 0.5619 GB, free: 103.4 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04945/1.542, allocations: 6.893 MB / 0.5687 GB, free: 103 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02679/1.569, allocations: 7.481 MB / 0.576 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004749/1.57, allocations: 380.2 kB / 0.5763 GB, free: 101.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003109/1.573, allocations: 0.4957 MB / 0.5768 GB, free: 101.6 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06164/1.635, allocations: 12.24 MB / 0.5888 GB, free: 95.33 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000564/1.635, allocations: 77.53 kB / 0.5888 GB, free: 95.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003119/1.639, allocations: 240.9 kB / 0.5891 GB, free: 95.15 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002356/1.641, allocations: 1.137 MB / 0.5902 GB, free: 94.93 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03134/1.672, allocations: 10.13 MB / 0.6001 GB, free: 89.54 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07916/1.752, allocations: 55.62 MB / 0.6544 GB, free: 33.19 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02331/1.775, allocations: 5.671 MB / 0.6599 GB, free: 27.37 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005076/1.78, allocations: 2.826 MB / 0.6627 GB, free: 24.54 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01986/1.8, allocations: 8.792 MB / 0.6713 GB, free: 15.65 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.759e-05/1.8, allocations: 63.77 kB / 0.6713 GB, free: 15.58 MB / 458.7 MB Notification: Performance of pre-optimization done (n=206): time 6.763e-06/1.8, allocations: 7.938 kB / 0.6713 GB, free: 15.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=265): time 0.2003/2, allocations: 29.41 MB / 0.7001 GB, free: 2.16 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001699/2.001, allocations: 213.8 kB / 0.7003 GB, free: 1.906 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4232/2.424, allocations: 4.154 MB / 0.7043 GB, free: 110.6 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007899/2.425, allocations: 66.47 kB / 0.7044 GB, free: 110.6 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003716/2.428, allocations: 3.435 MB / 0.7077 GB, free: 109.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00189/2.43, allocations: 0.9819 MB / 0.7087 GB, free: 109 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001103/2.432, allocations: 135.4 kB / 0.7088 GB, free: 109 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006808/2.432, allocations: 0.5921 MB / 0.7094 GB, free: 108.7 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008537/2.441, allocations: 2.944 MB / 0.7123 GB, free: 108.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01243/2.453, allocations: 6.739 MB / 0.7189 GB, free: 103.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01178/2.465, allocations: 4.413 MB / 0.7232 GB, free: 103.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000274/2.465, allocations: 38.53 kB / 0.7232 GB, free: 103.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.04457/2.51, allocations: 12.77 MB / 0.7357 GB, free: 100.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000152/2.51, allocations: 60.56 kB / 0.7357 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000224/2.51, allocations: 133.6 kB / 0.7359 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02094/2.531, allocations: 4.077 MB / 0.7398 GB, free: 99.67 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009219/2.541, allocations: 1.409 MB / 0.7412 GB, free: 99.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05834/2.599, allocations: 25.8 MB / 0.7664 GB, free: 86.69 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009416/2.609, allocations: 397 kB / 0.7668 GB, free: 86.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001935/2.611, allocations: 407 kB / 0.7672 GB, free: 86.51 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 607 * Number of states: 0 () * Number of discrete variables: 39 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (760): * Single equations (assignments): 754 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.003312/2.614, allocations: 0.6052 MB / 0.7678 GB, free: 86.02 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001532/2.615, allocations: 446.7 kB / 0.7682 GB, free: 85.78 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02988/2.645, allocations: 8.061 MB / 0.7761 GB, free: 83.05 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.092e-05/2.646, allocations: 28.03 kB / 0.7761 GB, free: 83.05 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.143e-05/2.646, allocations: 16.3 kB / 0.7761 GB, free: 83.05 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.309e-05/2.646, allocations: 12.05 kB / 0.7761 GB, free: 83.05 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05431/2.7, allocations: 16.66 MB / 0.7924 GB, free: 72.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.174e-05/2.7, allocations: 5.859 kB / 0.7924 GB, free: 72.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00293/2.703, allocations: 300 kB / 0.7927 GB, free: 72.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01903/2.722, allocations: 3.769 MB / 0.7964 GB, free: 69.65 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007606/2.723, allocations: 49.19 kB / 0.7964 GB, free: 69.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05108/2.774, allocations: 24.54 MB / 0.8204 GB, free: 47.69 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.939e-06/2.774, allocations: 7.938 kB / 0.8204 GB, free: 47.68 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03504/2.809, allocations: 12.56 MB / 0.8327 GB, free: 34.82 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003884/2.813, allocations: 0.9442 MB / 0.8336 GB, free: 33.86 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001829/2.815, allocations: 54.48 kB / 0.8336 GB, free: 33.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005155/2.82, allocations: 163.8 kB / 0.8338 GB, free: 33.64 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001357/2.822, allocations: 194.1 kB / 0.834 GB, free: 33.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003406/2.822, allocations: 68.84 kB / 0.834 GB, free: 33.39 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00774/2.83, allocations: 2.938 MB / 0.8369 GB, free: 30.46 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.022e-06/2.83, allocations: 0 / 0.8369 GB, free: 30.46 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009571/2.839, allocations: 1.423 MB / 0.8383 GB, free: 29.04 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (161): * Single equations (assignments): 155 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.03655/2.876, allocations: 14.35 MB / 0.8523 GB, free: 14.48 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02109/2.897, allocations: 8.016 MB / 0.8601 GB, free: 6.441 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.187e-05/2.897, allocations: 0.8438 kB / 0.8601 GB, free: 6.441 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009534/2.907, allocations: 3.419 MB / 0.8635 GB, free: 2.98 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005579/2.912, allocations: 0.5437 MB / 0.864 GB, free: 2.449 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04503/2.958, allocations: 12.64 MB / 0.8764 GB, free: 5.703 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3595/3.317, allocations: 4.04 MB / 0.8803 GB, free: 114.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005739/3.323, allocations: 2.427 MB / 0.8827 GB, free: 114.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.212e-06/3.323, allocations: 1.188 kB / 0.8827 GB, free: 114.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.887/8.21, allocations: 166.8 MB / 1.046 GB, free: 1.758 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat does not exist to compare? outputFormat=mat