Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical2.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.Joints.SphericalSpherical2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.438/2.438, allocations: 235 MB / 248.1 MB, free: 14.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.558e-05/3.569e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3906/0.3907, allocations: 54.85 MB / 364.6 MB, free: 5.395 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1946/0.5854, allocations: 110.9 MB / 475.6 MB, free: 1.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/0.5857, allocations: 73.06 kB / 475.6 MB, free: 1.359 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.175/1.761, allocations: 229.8 MB / 0.6889 GB, free: 2.883 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.761, allocations: 0 / 0.6889 GB, free: 2.883 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009263/1.762, allocations: 283.9 kB / 0.6892 GB, free: 2.605 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: 4609 * Number of variables: 4609 Notification: Performance of Generate backend data structure: time 0.08749/1.85, allocations: 13.78 MB / 0.7027 GB, free: 4.719 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/1.85, allocations: 11.97 kB / 0.7027 GB, free: 4.707 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01419/1.864, allocations: 2.807 MB / 0.7054 GB, free: 1.887 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.457/2.321, allocations: 10.93 MB / 0.7161 GB, free: 43.48 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06587/2.387, allocations: 15.52 MB / 0.7313 GB, free: 42.95 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001866/2.389, allocations: 1.087 MB / 0.7323 GB, free: 42.92 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009534/2.399, allocations: 1.452 MB / 0.7337 GB, free: 42.9 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1047/2.503, allocations: 32.02 MB / 0.765 GB, free: 36.42 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00169/2.505, allocations: 155.8 kB / 0.7651 GB, free: 36.41 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01087/2.516, allocations: 0.6672 MB / 0.7658 GB, free: 36.41 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009335/2.525, allocations: 2.327 MB / 0.7681 GB, free: 36.38 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09915/2.625, allocations: 25.56 MB / 0.793 GB, free: 31.47 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7777/3.402, allocations: 130.6 MB / 0.9206 GB, free: 30.46 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06556/3.468, allocations: 12.37 MB / 0.9327 GB, free: 29.78 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01175/3.48, allocations: 5.751 MB / 0.9383 GB, free: 29.72 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006249/3.486, allocations: 4.84 MB / 0.943 GB, free: 25.73 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001259/3.486, allocations: 93.61 kB / 0.9431 GB, free: 25.69 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=435): time 9.317e-06/3.486, allocations: 0 / 0.9431 GB, free: 25.69 MB / 0.5261 GB Notification: Performance of matching and sorting (n=569): time 0.5706/4.057, allocations: 110.7 MB / 1.051 GB, free: 0.543 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.06114/4.118, allocations: 24.77 MB / 1.075 GB, free: 8.129 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02571/4.144, allocations: 8.331 MB / 1.084 GB, free: 15.99 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001951/4.146, allocations: 111.7 kB / 1.084 GB, free: 15.88 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.009951/4.156, allocations: 8.569 MB / 1.092 GB, free: 7.32 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.005039/4.161, allocations: 2.193 MB / 1.094 GB, free: 5.145 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003608/4.165, allocations: 319 kB / 1.094 GB, free: 4.836 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.002305/4.167, allocations: 0.9928 MB / 1.095 GB, free: 3.832 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02544/4.192, allocations: 9.213 MB / 1.104 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03506/4.228, allocations: 18.42 MB / 1.122 GB, free: 3.793 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03331/4.261, allocations: 12.76 MB / 1.135 GB, free: 7.262 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003322/4.261, allocations: 96 kB / 1.135 GB, free: 7.168 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2101) (initialization): time 0.5339/4.795, allocations: 36.04 MB / 1.17 GB, free: 169.4 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.000226/4.796, allocations: 141.5 kB / 1.17 GB, free: 169.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09073/4.886, allocations: 23.29 MB / 1.193 GB, free: 168.9 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06598/4.952, allocations: 10.93 MB / 1.204 GB, free: 168.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02501/4.977, allocations: 3.86 MB / 1.207 GB, free: 168.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09941/5.077, allocations: 51.25 MB / 1.258 GB, free: 146 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02859/5.105, allocations: 1.807 MB / 1.259 GB, free: 145.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004535/5.11, allocations: 0.9749 MB / 1.26 GB, free: 145.7 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1475 * Number of states: 0 () * Number of discrete variables: 75 (freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.arrowColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],rs3.arrowColor[3],rs3.arrowColor[2],rs3.arrowColor[1],rs2.arrowColor[3],rs2.arrowColor[2],rs2.arrowColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],sphericalSpherical1.massColor[3],sphericalSpherical1.massColor[2],sphericalSpherical1.massColor[1],sphericalSpherical1.sphereColor[3],sphericalSpherical1.sphereColor[2],sphericalSpherical1.sphereColor[1],sphericalSpherical1.rodColor[3],sphericalSpherical1.rodColor[2],sphericalSpherical1.rodColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],rs1.arrowColor[3],rs1.arrowColor[2],rs1.arrowColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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],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 (1925): * Single equations (assignments): 1896 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 6 {1,1,4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(8,82.8%) 32,(1,100.0%) 3,(4,93.8%) 20,(7,63.3%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006726/5.117, allocations: 1.303 MB / 1.262 GB, free: 144.7 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003003/5.12, allocations: 0.8804 MB / 1.262 GB, free: 144.7 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.13/5.25, allocations: 28.87 MB / 1.291 GB, free: 132.5 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1529/5.403, allocations: 27.1 MB / 1.317 GB, free: 108.3 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.119e-05/5.403, allocations: 24 kB / 1.317 GB, free: 108.3 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001476/5.403, allocations: 32.61 kB / 1.317 GB, free: 108.3 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.603/6.006, allocations: 63.18 MB / 1.379 GB, free: 157.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.119e-05/6.006, allocations: 3.875 kB / 1.379 GB, free: 157.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009911/6.016, allocations: 1.015 MB / 1.38 GB, free: 157.8 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09735/6.114, allocations: 15.68 MB / 1.395 GB, free: 157.7 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00198/6.116, allocations: 182.6 kB / 1.395 GB, free: 157.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1349/6.251, allocations: 64.65 MB / 1.458 GB, free: 145.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05222/6.303, allocations: 24.55 MB / 1.482 GB, free: 131.9 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1395/6.442, allocations: 41.05 MB / 1.522 GB, free: 118.1 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003737/6.446, allocations: 0.9428 MB / 1.523 GB, free: 117.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004281/6.45, allocations: 138.6 kB / 1.524 GB, free: 117.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01605/6.467, allocations: 0.9022 MB / 1.524 GB, free: 117.8 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003666/6.47, allocations: 456.3 kB / 1.525 GB, free: 117.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001803/6.472, allocations: 186.5 kB / 1.525 GB, free: 117.7 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.01574/6.488, allocations: 5.749 MB / 1.531 GB, free: 115.7 MB / 0.6198 GB Notification: Performance of sort global known variables: time 9.22e-07/6.488, allocations: 0 / 1.531 GB, free: 115.7 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.02478/6.513, allocations: 4.43 MB / 1.535 GB, free: 111.8 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 32 ($STATESET6.x[2],$STATESET6.x[1],$STATESET5.x[5],$STATESET5.x[4],$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[6],$STATESET4.x[5],$STATESET4.x[4],$STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyBox1.body.w_a[1],bodyBox1.body.w_a[2],bodyBox1.body.w_a[3],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (412): * Single equations (assignments): 397 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {3,8,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,93.8%) 17,(3,100.0%) 3,(8,82.8%) 29,(7,93.9%) 12,(7,63.3%) 20} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.1423/6.655, allocations: 42.36 MB / 1.576 GB, free: 71.84 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.05523/6.71, allocations: 23.61 MB / 1.599 GB, free: 49.04 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/6.71, allocations: 5.938 kB / 1.599 GB, free: 49.04 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.4263/7.137, allocations: 11.59 MB / 1.611 GB, free: 176.8 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01313/7.15, allocations: 1.343 MB / 1.612 GB, free: 176.8 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1371/7.287, allocations: 38 MB / 1.649 GB, free: 171 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02651/7.314, allocations: 9.452 MB / 1.658 GB, free: 170 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01816/7.332, allocations: 6.546 MB / 1.665 GB, free: 170 MB / 0.6198 GB Notification: Performance of SimCode: time 1.693e-06/7.332, allocations: 5.75 kB / 1.665 GB, free: 170 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.23/18.56, allocations: 0.9328 GB / 2.598 GB, free: 116.2 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical2_res.mat does not exist to compare? outputFormat=mat