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.Planar.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.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.479/2.479, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.836e-05/2.849e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.355, allocations: 54.85 MB / 358.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2046/0.5597, allocations: 99.1 MB / 457.2 MB, free: 11.69 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000302/0.56, allocations: 79.89 kB / 457.3 MB, free: 11.61 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7678/1.328, allocations: 114.5 MB / 0.5584 GB, free: 8.664 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.328, allocations: 0 / 0.5584 GB, free: 8.664 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000244/1.328, allocations: 92 kB / 0.5585 GB, free: 8.574 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: 1911 * Number of variables: 1911 Notification: Performance of Generate backend data structure: time 0.01692/1.345, allocations: 4.451 MB / 0.5629 GB, free: 4.059 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/1.345, allocations: 8.031 kB / 0.5629 GB, free: 4.051 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02751/1.373, allocations: 3.651 MB / 0.5664 GB, free: 396 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01909/1.392, allocations: 4.812 MB / 0.5711 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000392/1.392, allocations: 164 kB / 0.5713 GB, free: 11.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003111/1.395, allocations: 287.9 kB / 0.5716 GB, free: 11.08 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02351/1.419, allocations: 8.451 MB / 0.5798 GB, free: 2.625 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03634/1.455, allocations: 11.2 MB / 0.5908 GB, free: 6.887 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002809/1.456, allocations: 35.66 kB / 0.5908 GB, free: 6.852 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002315/1.458, allocations: 16 kB / 0.5908 GB, free: 6.836 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003902/1.462, allocations: 1.393 MB / 0.5922 GB, free: 5.445 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4602/1.922, allocations: 39.73 MB / 0.631 GB, free: 82.27 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01065/1.933, allocations: 4.383 MB / 0.6352 GB, free: 81.09 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006175/1.939, allocations: 2.361 MB / 0.6376 GB, free: 81.07 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002081/1.941, allocations: 1.317 MB / 0.6388 GB, free: 79.94 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.106e-05/1.942, allocations: 60.53 kB / 0.6389 GB, free: 79.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=252): time 9.467e-06/1.942, allocations: 0 / 0.6389 GB, free: 79.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=271): time 0.06926/2.011, allocations: 18.88 MB / 0.6573 GB, free: 77.98 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.175e-05/2.011, allocations: 98.89 kB / 0.6574 GB, free: 77.88 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005382/2.016, allocations: 2.642 MB / 0.66 GB, free: 77.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005792/2.017, allocations: 25.7 kB / 0.66 GB, free: 77.54 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002526/2.02, allocations: 3.376 MB / 0.6633 GB, free: 75.76 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001417/2.021, allocations: 0.9633 MB / 0.6643 GB, free: 75.17 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006635/2.022, allocations: 0 / 0.6643 GB, free: 75.17 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004656/2.022, allocations: 0.5891 MB / 0.6648 GB, free: 74.85 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005305/2.027, allocations: 2.391 MB / 0.6672 GB, free: 74.83 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00818/2.036, allocations: 6.021 MB / 0.6731 GB, free: 70.16 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008113/2.044, allocations: 3.826 MB / 0.6768 GB, free: 69.82 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001311/2.044, allocations: 36.28 kB / 0.6768 GB, free: 69.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=859) (initialization): time 0.02468/2.069, allocations: 8.513 MB / 0.6851 GB, free: 67.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001118/2.069, allocations: 58.69 kB / 0.6852 GB, free: 67.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002015/2.069, allocations: 129.1 kB / 0.6853 GB, free: 67.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00548/2.075, allocations: 1.073 MB / 0.6864 GB, free: 67.58 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009173/2.084, allocations: 1.483 MB / 0.6878 GB, free: 67.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/2.094, allocations: 4.873 MB / 0.6926 GB, free: 64.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006474/2.101, allocations: 212.5 kB / 0.6928 GB, free: 64.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001549/2.102, allocations: 390.9 kB / 0.6932 GB, free: 64.91 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 39 (axis1.color[3],axis1.color[2],axis1.color[1],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],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (797): * Single equations (assignments): 790 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001407/2.104, allocations: 436.2 kB / 0.6936 GB, free: 64.55 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01294/2.117, allocations: 4.651 MB / 0.6981 GB, free: 61.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001182/2.118, allocations: 311.1 kB / 0.6984 GB, free: 61.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01488/2.133, allocations: 5.198 MB / 0.7035 GB, free: 57.28 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001186/2.133, allocations: 47.69 kB / 0.7035 GB, free: 57.23 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/2.133, allocations: 7.5 kB / 0.7035 GB, free: 57.23 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.642e-05/2.133, allocations: 11.3 kB / 0.7035 GB, free: 57.23 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04363/2.177, allocations: 12.02 MB / 0.7153 GB, free: 47.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.899e-05/2.177, allocations: 12 kB / 0.7153 GB, free: 47.17 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004962/2.182, allocations: 430.6 kB / 0.7157 GB, free: 46.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007309/2.189, allocations: 0.8793 MB / 0.7166 GB, free: 46.28 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00084/2.19, allocations: 27.19 kB / 0.7166 GB, free: 46.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01015/2.2, allocations: 4.222 MB / 0.7207 GB, free: 42.55 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.761e-05/2.2, allocations: 15.94 kB / 0.7207 GB, free: 42.54 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01984/2.22, allocations: 8.964 MB / 0.7295 GB, free: 34.09 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002899/2.223, allocations: 0.7311 MB / 0.7302 GB, free: 33.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001181/2.224, allocations: 18.94 kB / 0.7302 GB, free: 33.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003228/2.228, allocations: 111.5 kB / 0.7303 GB, free: 33.33 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008762/2.228, allocations: 166.8 kB / 0.7305 GB, free: 33.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002749/2.229, allocations: 82.44 kB / 0.7306 GB, free: 33.14 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004119/2.233, allocations: 1.733 MB / 0.7323 GB, free: 31.64 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.22e-07/2.233, allocations: 0 / 0.7323 GB, free: 31.64 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007869/2.241, allocations: 0.9732 MB / 0.7332 GB, free: 30.68 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 205 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01992/2.261, allocations: 12.6 MB / 0.7455 GB, free: 18.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01248/2.273, allocations: 5.81 MB / 0.7512 GB, free: 13.57 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.932e-05/2.273, allocations: 7.938 kB / 0.7512 GB, free: 13.56 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004859/2.278, allocations: 2.174 MB / 0.7533 GB, free: 11.59 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00281/2.281, allocations: 276.3 kB / 0.7536 GB, free: 11.36 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03541/2.317, allocations: 11.74 MB / 0.765 GB, free: 1.102 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01069/2.327, allocations: 3.955 MB / 0.7689 GB, free: 14.15 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006847/2.334, allocations: 2.25 MB / 0.7711 GB, free: 12.06 MB / 474.7 MB Notification: Performance of SimCode: time 1.663e-06/2.334, allocations: 0 / 0.7711 GB, free: 12.06 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.768/7.103, allocations: 110.6 MB / 0.8792 GB, free: 118.9 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat