Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01227/0.01227, allocations: 103 kB / 15.05 MB, free: 6.031 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001826/0.001826, allocations: 174 kB / 15.93 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.977/1.977, allocations: 170.9 MB / 187.5 MB, free: 1.012 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2869/0.2869, allocations: 38.1 MB / 265.1 MB, free: 3.977 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006544/0.0006545, allocations: 12 kB / 323.6 MB, free: 29.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1041, allocations: 48.71 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.03817/0.1423, allocations: 24.35 MB / 396.6 MB, free: 4.434 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01921/0.1616, allocations: 6.489 MB / 403.1 MB, free: 13.93 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005/0.1667, allocations: 111.8 kB / 403.2 MB, free: 13.82 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004792/0.1715, allocations: 1.276 MB / 404.5 MB, free: 12.54 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0148/0.1864, allocations: 3.775 MB / 408.3 MB, free: 8.75 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002625/0.1891, allocations: 427.3 kB / 408.7 MB, free: 8.332 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005654/0.1948, allocations: 2.199 MB / 410.9 MB, free: 6.133 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004719/0.1995, allocations: 2.194 MB / 413.1 MB, free: 3.879 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001736/0.2013, allocations: 0.8875 MB / 414 MB, free: 2.988 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002221/0.2036, allocations: 1.242 MB / 415.2 MB, free: 1.742 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005583/0.2042, allocations: 136 kB / 415.4 MB, free: 1.609 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002416/0.2066, allocations: 0.866 MB / 416.2 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002029/0.2086, allocations: 1.457 MB / 417.7 MB, free: 15.28 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001034/0.2097, allocations: 0.7725 MB / 418.5 MB, free: 14.5 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008537/0.2182, allocations: 4.907 MB / 423.4 MB, free: 9.582 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2183, allocations: 0 / 423.4 MB, free: 9.582 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.035e-06/0.2183, allocations: 0 / 423.4 MB, free: 9.582 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002262/0.2186, allocations: 0 / 423.4 MB, free: 9.582 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1557 * Number of variables: 1557 Notification: Performance of Generate backend data structure: time 0.01135/0.2299, allocations: 3.66 MB / 427 MB, free: 5.852 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.23, allocations: 11.97 kB / 427 MB, free: 5.84 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002355/0.2324, allocations: 0.7244 MB / 427.8 MB, free: 5.105 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02497/0.2574, allocations: 3.84 MB / 431.6 MB, free: 1.254 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3289/0.5863, allocations: 2.411 MB / 434 MB, free: 56.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003807/0.5868, allocations: 188.9 kB / 434.2 MB, free: 56.72 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002665/0.5894, allocations: 336 kB / 434.5 MB, free: 56.72 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03855/0.6281, allocations: 10.82 MB / 445.3 MB, free: 52.53 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001933/0.6283, allocations: 26.09 kB / 445.4 MB, free: 52.52 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001098/0.6294, allocations: 116.7 kB / 445.5 MB, free: 52.48 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00933/0.6388, allocations: 2.568 MB / 448.1 MB, free: 52.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03866/0.6775, allocations: 10.32 MB / 458.4 MB, free: 44.4 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07316/0.7507, allocations: 35.87 MB / 494.2 MB, free: 8.047 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01361/0.7644, allocations: 4.43 MB / 498.7 MB, free: 3.391 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001536/0.766, allocations: 1.317 MB / 500 MB, free: 1.863 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.7661, allocations: 56.56 kB / 0.4883 GB, free: 1.801 MB / 330.7 MB Notification: Performance of pre-optimization done (n=245): time 6.472e-06/0.7661, allocations: 0 / 0.4883 GB, free: 1.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=261): time 0.07362/0.8397, allocations: 17.64 MB / 0.5055 GB, free: 15.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001849/0.8416, allocations: 1.535 MB / 0.507 GB, free: 14.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006797/0.8484, allocations: 2.981 MB / 0.51 GB, free: 11.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006467/0.8492, allocations: 57.7 kB / 0.51 GB, free: 11.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003102/0.8523, allocations: 2.726 MB / 0.5127 GB, free: 8.426 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001835/0.8542, allocations: 0.9612 MB / 0.5136 GB, free: 7.473 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006642/0.8549, allocations: 107.8 kB / 0.5137 GB, free: 7.371 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0006575/0.8555, allocations: 0.5537 MB / 0.5143 GB, free: 6.809 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00711/0.8627, allocations: 2.432 MB / 0.5166 GB, free: 4.371 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01039/0.8731, allocations: 5.432 MB / 0.5219 GB, free: 13.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01001/0.8832, allocations: 3.642 MB / 0.5255 GB, free: 9.828 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001206/0.8834, allocations: 28 kB / 0.5255 GB, free: 9.801 MB / 378.7 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.0309/0.9143, allocations: 8.885 MB / 0.5342 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00011/0.9145, allocations: 52.69 kB / 0.5342 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01616/0.9306, allocations: 3.989 MB / 0.5381 GB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00923/0.9399, allocations: 1.408 MB / 0.5395 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008546/0.9485, allocations: 1.291 MB / 0.5408 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009535/0.9581, allocations: 4.413 MB / 0.5451 GB, free: 5.445 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006411/0.9646, allocations: 395.6 kB / 0.5455 GB, free: 5.059 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001261/0.9659, allocations: 326.4 kB / 0.5458 GB, free: 4.742 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 478 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (689): * Single equations (assignments): 677 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.00622/0.9721, allocations: 2.114 MB / 0.5478 GB, free: 2.617 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007805/0.9729, allocations: 280.3 kB / 0.5481 GB, free: 2.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02022/0.9932, allocations: 5.435 MB / 0.5534 GB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01793/1.011, allocations: 4.68 MB / 0.558 GB, free: 8.102 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.816e-05/1.011, allocations: 4 kB / 0.558 GB, free: 8.098 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.938e-05/1.011, allocations: 11.95 kB / 0.558 GB, free: 8.086 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04598/1.057, allocations: 14.73 MB / 0.5724 GB, free: 9.152 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-05/1.057, allocations: 12 kB / 0.5724 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003927/1.061, allocations: 423.3 kB / 0.5728 GB, free: 8.727 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008712/1.07, allocations: 1.244 MB / 0.574 GB, free: 7.469 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006587/1.071, allocations: 67.91 kB / 0.5741 GB, free: 7.402 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008292/1.079, allocations: 4.519 MB / 0.5785 GB, free: 2.617 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001681/1.081, allocations: 1.49 MB / 0.58 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3111/1.392, allocations: 8.949 MB / 0.5887 GB, free: 132.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/1.393, allocations: 347.9 kB / 0.589 GB, free: 132.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009781/1.394, allocations: 55.11 kB / 0.5891 GB, free: 132.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003548/1.398, allocations: 197.9 kB / 0.5893 GB, free: 132.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001181/1.399, allocations: 169.6 kB / 0.5894 GB, free: 132.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003286/1.399, allocations: 80.33 kB / 0.5895 GB, free: 132.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004945/1.404, allocations: 1.857 MB / 0.5913 GB, free: 131.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.032e-06/1.404, allocations: 0 / 0.5913 GB, free: 131.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007477/1.412, allocations: 1.075 MB / 0.5924 GB, free: 131.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (202): * Single equations (assignments): 192 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02391/1.436, allocations: 12.01 MB / 0.6041 GB, free: 124.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01616/1.452, allocations: 6.44 MB / 0.6104 GB, free: 122.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.469e-05/1.452, allocations: 0 / 0.6104 GB, free: 122.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008617/1.461, allocations: 2.894 MB / 0.6132 GB, free: 121.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004553/1.465, allocations: 354.6 kB / 0.6135 GB, free: 121.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08917/1.554, allocations: 105.1 MB / 0.7162 GB, free: 15.45 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005974/1.56, allocations: 3.387 MB / 0.7195 GB, free: 12.03 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.008603/1.569, allocations: 2.109 MB / 0.7215 GB, free: 9.914 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004295/1.573, allocations: 1.804 MB / 0.7233 GB, free: 8.109 MB / 426.7 MB Notification: Performance of SimCode: time 1.383e-06/1.573, allocations: 0 / 0.7233 GB, free: 8.109 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6526/2.226, allocations: 71.07 MB / 0.7927 GB, free: 122.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000324/2.226, allocations: 213.8 kB / 0.7929 GB, free: 122.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.905/7.131, allocations: 0 / 0.7929 GB, free: 122.4 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat