Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",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.04867/0.04867, allocations: 103.5 kB / 15.05 MB, free: 5.555 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.001809/0.001809, allocations: 168.5 kB / 15.93 MB, free: 5.527 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.915/1.915, allocations: 170.9 MB / 187.5 MB, free: 0.8516 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.2942/0.2942, allocations: 38.09 MB / 265.1 MB, free: 3.941 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004733/0.0004735, allocations: 15.94 kB / 323.6 MB, free: 29.63 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09583/0.09635, allocations: 48.71 MB / 372.3 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.04444/0.1408, allocations: 28.08 MB / 400.4 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02099/0.1619, allocations: 7.251 MB / 407.6 MB, free: 9.41 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007001/0.1689, allocations: 131.7 kB / 407.7 MB, free: 9.281 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006917/0.176, allocations: 1.454 MB / 409.2 MB, free: 7.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02089/0.1969, allocations: 4.243 MB / 413.4 MB, free: 3.566 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002757/0.1997, allocations: 443.2 kB / 413.9 MB, free: 3.133 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005487/0.2053, allocations: 2.125 MB / 416 MB, free: 1.004 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007457/0.2128, allocations: 3.345 MB / 419.3 MB, free: 13.61 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002354/0.2152, allocations: 0.9303 MB / 420.3 MB, free: 12.68 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002988/0.2182, allocations: 1.296 MB / 421.6 MB, free: 11.38 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001033/0.2193, allocations: 148 kB / 421.7 MB, free: 11.23 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00298/0.2223, allocations: 0.8582 MB / 422.6 MB, free: 10.37 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002853/0.2252, allocations: 1.551 MB / 424.1 MB, free: 8.816 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001526/0.2268, allocations: 0.8427 MB / 425 MB, free: 7.965 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009433/0.2363, allocations: 5.65 MB / 430.6 MB, free: 2.301 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2363, allocations: 4 kB / 430.6 MB, free: 2.297 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2364, allocations: 0 / 430.6 MB, free: 2.297 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002479/0.2366, allocations: 0 / 430.6 MB, free: 2.297 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: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.2849/0.5215, allocations: 4.142 MB / 434.8 MB, free: 59.58 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.5216, allocations: 9.781 kB / 434.8 MB, free: 59.58 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002835/0.5244, allocations: 0.8005 MB / 435.6 MB, free: 59.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02362/0.5481, allocations: 3.804 MB / 439.4 MB, free: 58.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008076/0.5562, allocations: 2.339 MB / 441.7 MB, free: 56.87 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004514/0.5567, allocations: 226.1 kB / 441.9 MB, free: 56.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002112/0.5588, allocations: 295.6 kB / 442.2 MB, free: 56.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03075/0.5896, allocations: 11.95 MB / 454.2 MB, free: 48.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001982/0.5899, allocations: 27.81 kB / 454.2 MB, free: 48.38 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001797/0.5917, allocations: 131.5 kB / 454.3 MB, free: 48.3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006937/0.5986, allocations: 2.712 MB / 457 MB, free: 45.61 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03162/0.6303, allocations: 11.15 MB / 468.2 MB, free: 34.45 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07891/0.7093, allocations: 37.11 MB / 0.4935 GB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02136/0.7307, allocations: 4.688 MB / 0.498 GB, free: 7.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002543/0.7333, allocations: 1.314 MB / 0.4993 GB, free: 6.387 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.962e-05/0.7334, allocations: 56.56 kB / 0.4994 GB, free: 6.324 MB / 346.7 MB Notification: Performance of pre-optimization done (n=244): time 1.018e-05/0.7334, allocations: 0 / 0.4994 GB, free: 6.324 MB / 346.7 MB Notification: Performance of matching and sorting (n=256): time 0.08355/0.817, allocations: 14.09 MB / 0.5131 GB, free: 8.047 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.054e-05/0.8171, allocations: 69.41 kB / 0.5132 GB, free: 7.965 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006721/0.8238, allocations: 2.917 MB / 0.516 GB, free: 5.035 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006165/0.8245, allocations: 57.7 kB / 0.5161 GB, free: 4.973 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003419/0.8279, allocations: 2.958 MB / 0.519 GB, free: 2.012 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001729/0.8297, allocations: 0.9348 MB / 0.5199 GB, free: 1.086 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005928/0.8303, allocations: 116 kB / 0.52 GB, free: 0.9727 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000575/0.8309, allocations: 0.5539 MB / 0.5206 GB, free: 420 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006719/0.8377, allocations: 2.272 MB / 0.5228 GB, free: 14.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01048/0.8482, allocations: 5.404 MB / 0.5281 GB, free: 7.188 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009486/0.8577, allocations: 3.517 MB / 0.5315 GB, free: 3.668 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001362/0.8579, allocations: 36 kB / 0.5315 GB, free: 3.633 MB / 378.7 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.02775/0.8857, allocations: 8.385 MB / 0.5397 GB, free: 11.23 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.8859, allocations: 56.88 kB / 0.5398 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001892/0.8861, allocations: 108 kB / 0.5399 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00672/0.8928, allocations: 1.032 MB / 0.5409 GB, free: 10.03 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008624/0.9014, allocations: 1.318 MB / 0.5422 GB, free: 8.707 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004738/0.9062, allocations: 2.502 MB / 0.5446 GB, free: 6.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005674/0.9119, allocations: 311.7 kB / 0.5449 GB, free: 5.766 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001461/0.9134, allocations: 332 kB / 0.5452 GB, free: 5.441 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 499 * 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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 (711): * Single equations (assignments): 702 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(2,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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006772/0.9203, allocations: 2.274 MB / 0.5474 GB, free: 3.156 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007584/0.921, allocations: 288.2 kB / 0.5477 GB, free: 2.871 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02337/0.9444, allocations: 4.903 MB / 0.5525 GB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000115/0.9446, allocations: 51.98 kB / 0.5526 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.9446, allocations: 8 kB / 0.5526 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-05/0.9446, allocations: 7.969 kB / 0.5526 GB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03536/0.98, allocations: 11.47 MB / 0.5638 GB, free: 2.234 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.738e-05/0.9801, allocations: 12 kB / 0.5638 GB, free: 2.223 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003809/0.9839, allocations: 411.5 kB / 0.5642 GB, free: 1.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0054/0.9894, allocations: 0.6109 MB / 0.5648 GB, free: 1.199 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005631/0.99, allocations: 55.98 kB / 0.5648 GB, free: 1.145 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003914/0.9939, allocations: 2.092 MB / 0.5669 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.313e-05/0.994, allocations: 15.94 kB / 0.5669 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02131/1.015, allocations: 7.72 MB / 0.5744 GB, free: 6.793 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/1.016, allocations: 345.3 kB / 0.5748 GB, free: 6.434 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00106/1.017, allocations: 51.91 kB / 0.5748 GB, free: 6.387 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002814/1.02, allocations: 123.8 kB / 0.5749 GB, free: 6.266 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000747/1.021, allocations: 161.6 kB / 0.5751 GB, free: 6.105 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002933/1.021, allocations: 71.98 kB / 0.5751 GB, free: 6.035 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00554/1.027, allocations: 1.795 MB / 0.5769 GB, free: 4.234 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.52e-07/1.027, allocations: 0 / 0.5769 GB, free: 4.234 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009573/1.037, allocations: 1.002 MB / 0.5779 GB, free: 3.238 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.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 (207): * Single equations (assignments): 198 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3824/1.419, allocations: 10.69 MB / 0.5883 GB, free: 134.1 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1987:5-1989:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1984:5-1986:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01576/1.435, allocations: 5.955 MB / 0.5941 GB, free: 132.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-05/1.435, allocations: 7.812 kB / 0.5941 GB, free: 132.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006922/1.442, allocations: 2.374 MB / 0.5965 GB, free: 131.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003185/1.445, allocations: 392.1 kB / 0.5968 GB, free: 131 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09117/1.536, allocations: 107.7 MB / 0.702 GB, free: 29.39 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006635/1.543, allocations: 3.601 MB / 0.7055 GB, free: 25.76 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.008244/1.551, allocations: 2.073 MB / 0.7076 GB, free: 23.68 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00424/1.556, allocations: 1.925 MB / 0.7094 GB, free: 21.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.923e-06/1.556, allocations: 0 / 0.7094 GB, free: 21.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4508/2.006, allocations: 70.28 MB / 0.7781 GB, free: 133.7 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002282/2.007, allocations: 205.1 kB / 0.7783 GB, free: 133.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.96/6.966, allocations: 0 / 0.7783 GB, free: 133.5 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat