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.SphericalSpherical.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.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.231/2.231, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.979e-05/1.976e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3319, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1735/0.5055, allocations: 99.49 MB / 457.6 MB, free: 11.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.5058, allocations: 79.95 kB / 457.7 MB, free: 11.13 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6921/1.198, allocations: 92.91 MB / 0.5377 GB, free: 30.46 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.074e-06/1.198, allocations: 0 / 0.5377 GB, free: 30.46 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002952/1.198, allocations: 92 kB / 0.5378 GB, free: 30.37 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01741/1.216, allocations: 4.605 MB / 0.5423 GB, free: 25.69 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/1.216, allocations: 12.03 kB / 0.5423 GB, free: 25.68 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04778/1.264, allocations: 6.729 MB / 0.5489 GB, free: 18.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02155/1.285, allocations: 6.294 MB / 0.555 GB, free: 12.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002576/1.285, allocations: 140 kB / 0.5551 GB, free: 12.44 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002273/1.288, allocations: 260.3 kB / 0.5554 GB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01581/1.304, allocations: 6.592 MB / 0.5618 GB, free: 5.586 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02431/1.328, allocations: 9.558 MB / 0.5712 GB, free: 11.01 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002904/1.328, allocations: 67.39 kB / 0.5712 GB, free: 10.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001453/1.33, allocations: 36 kB / 0.5713 GB, free: 10.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002433/1.332, allocations: 1.015 MB / 0.5723 GB, free: 9.883 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07409/1.406, allocations: 45.92 MB / 0.6171 GB, free: 10.52 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006657/1.413, allocations: 3.085 MB / 0.6201 GB, free: 7.285 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003907/1.417, allocations: 1.727 MB / 0.6218 GB, free: 5.547 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002745/1.42, allocations: 1.929 MB / 0.6237 GB, free: 3.305 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.877e-05/1.42, allocations: 59.8 kB / 0.6237 GB, free: 3.238 MB / 458.7 MB Notification: Performance of pre-optimization done (n=186): time 6.101e-06/1.42, allocations: 0 / 0.6237 GB, free: 3.238 MB / 458.7 MB Notification: Performance of matching and sorting (n=242): time 0.4333/1.853, allocations: 26.22 MB / 0.6493 GB, free: 103.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.063e-05/1.853, allocations: 210.7 kB / 0.6495 GB, free: 103.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00669/1.86, allocations: 3.275 MB / 0.6527 GB, free: 103 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006842/1.861, allocations: 25.7 kB / 0.6528 GB, free: 103 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002712/1.863, allocations: 3.207 MB / 0.6559 GB, free: 101.3 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001507/1.865, allocations: 0.8723 MB / 0.6568 GB, free: 100.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008444/1.866, allocations: 0 / 0.6568 GB, free: 100.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004031/1.866, allocations: 0.5868 MB / 0.6573 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006856/1.873, allocations: 3.302 MB / 0.6606 GB, free: 100.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009585/1.883, allocations: 7.037 MB / 0.6674 GB, free: 94.79 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009633/1.893, allocations: 4.705 MB / 0.672 GB, free: 93.18 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001276/1.893, allocations: 39.5 kB / 0.6721 GB, free: 93.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=852) (initialization): time 0.05965/1.952, allocations: 14.55 MB / 0.6863 GB, free: 89.39 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.833e-05/1.952, allocations: 64.25 kB / 0.6863 GB, free: 89.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001636/1.953, allocations: 137.4 kB / 0.6865 GB, free: 89.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04071/1.993, allocations: 5.922 MB / 0.6922 GB, free: 87.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009382/2.003, allocations: 1.49 MB / 0.6937 GB, free: 86.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04563/2.048, allocations: 22.88 MB / 0.716 GB, free: 66.83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008526/2.057, allocations: 275.8 kB / 0.7163 GB, free: 66.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001657/2.059, allocations: 395.8 kB / 0.7167 GB, free: 66.25 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 39 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 (775): * Single equations (assignments): 770 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001786/2.061, allocations: 449.4 kB / 0.7171 GB, free: 65.82 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04821/2.109, allocations: 10.61 MB / 0.7275 GB, free: 56.77 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001513/2.11, allocations: 371.2 kB / 0.7278 GB, free: 56.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04838/2.159, allocations: 10.56 MB / 0.7381 GB, free: 45.82 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.68e-05/2.159, allocations: 28 kB / 0.7382 GB, free: 45.79 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.937e-05/2.159, allocations: 8 kB / 0.7382 GB, free: 45.79 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.595e-05/2.159, allocations: 15.95 kB / 0.7382 GB, free: 45.77 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06992/2.229, allocations: 19.45 MB / 0.7572 GB, free: 25.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.924e-05/2.229, allocations: 12.06 kB / 0.7572 GB, free: 25.89 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003741/2.233, allocations: 383.4 kB / 0.7576 GB, free: 25.52 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03605/2.269, allocations: 4.974 MB / 0.7624 GB, free: 20.53 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006255/2.269, allocations: 19.94 kB / 0.7624 GB, free: 20.51 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03829/2.308, allocations: 18.44 MB / 0.7804 GB, free: 1.848 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.195e-05/2.308, allocations: 11.94 kB / 0.7805 GB, free: 1.836 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05669/2.365, allocations: 14.35 MB / 0.7945 GB, free: 3.238 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003553/2.368, allocations: 0.9257 MB / 0.7954 GB, free: 2.289 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001217/2.369, allocations: 19.3 kB / 0.7954 GB, free: 2.273 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004389/2.374, allocations: 135.8 kB / 0.7955 GB, free: 2.141 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001034/2.375, allocations: 167.2 kB / 0.7957 GB, free: 1.984 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003488/2.375, allocations: 66.52 kB / 0.7957 GB, free: 1.922 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007422/2.383, allocations: 2.206 MB / 0.7979 GB, free: 15.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.71e-07/2.383, allocations: 0 / 0.7979 GB, free: 15.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01346/2.396, allocations: 1.156 MB / 0.799 GB, free: 14.55 MB / 490.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 (173): * Single equations (assignments): 168 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3921/2.788, allocations: 16.17 MB / 0.8148 GB, free: 125.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01599/2.804, allocations: 7.635 MB / 0.8223 GB, free: 125.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/2.805, allocations: 3.562 kB / 0.8223 GB, free: 125.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006479/2.811, allocations: 3.036 MB / 0.8252 GB, free: 125.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003773/2.815, allocations: 402.2 kB / 0.8256 GB, free: 125 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03243/2.847, allocations: 11.68 MB / 0.837 GB, free: 122 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007318/2.855, allocations: 3.603 MB / 0.8406 GB, free: 120.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005772/2.861, allocations: 2.102 MB / 0.8426 GB, free: 119 MB / 490.7 MB Notification: Performance of SimCode: time 1.894e-06/2.861, allocations: 3.5 kB / 0.8426 GB, free: 119 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.389/7.249, allocations: 129.8 MB / 0.9694 GB, free: 11.78 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat