Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.Planar.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.Planar,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_Planar",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.01225/0.01226, allocations: 104.9 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.001533/0.001532, allocations: 167.2 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.872/1.872, 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.2996/0.2996, allocations: 38.09 MB / 265.1 MB, free: 3.934 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004887/0.0004888, allocations: 12 kB / 323.6 MB, free: 29.62 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1044, allocations: 48.71 MB / 372.3 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.06272/0.1672, allocations: 38.71 MB / 411 MB, free: 6.012 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02787/0.1952, allocations: 9.248 MB / 420.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008077/0.2033, allocations: 183.6 kB / 420.4 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007795/0.2112, allocations: 1.987 MB / 422.4 MB, free: 10.56 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02365/0.2349, allocations: 5.661 MB / 428.1 MB, free: 4.883 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003756/0.2387, allocations: 0.5265 MB / 428.6 MB, free: 4.355 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006766/0.2455, allocations: 2.436 MB / 431 MB, free: 1.918 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3149/0.5605, allocations: 3.547 MB / 434.6 MB, free: 11.57 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003596/0.5641, allocations: 1.173 MB / 435.8 MB, free: 11.56 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00434/0.5685, allocations: 1.538 MB / 437.3 MB, free: 11.56 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001657/0.5702, allocations: 173.7 kB / 437.5 MB, free: 11.56 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003888/0.5742, allocations: 0.8333 MB / 438.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004055/0.5782, allocations: 1.702 MB / 440 MB, free: 11.55 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002907/0.5812, allocations: 0.9497 MB / 441 MB, free: 11.52 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01167/0.5929, allocations: 6.156 MB / 447.1 MB, free: 11.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.593, allocations: 0 / 447.1 MB, free: 11.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.677e-06/0.593, allocations: 3.094 kB / 447.1 MB, free: 11.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003499/0.5934, allocations: 0 / 447.1 MB, free: 11.09 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: 1910 * Number of variables: 1910 Notification: Performance of Generate backend data structure: time 0.02071/0.6141, allocations: 4.449 MB / 451.6 MB, free: 8.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.472e-05/0.6142, allocations: 8.594 kB / 451.6 MB, free: 8.52 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004102/0.6183, allocations: 0.889 MB / 452.5 MB, free: 8.258 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.033/0.6513, allocations: 3.85 MB / 456.3 MB, free: 6.535 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01106/0.6625, allocations: 2.616 MB / 458.9 MB, free: 5.68 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004459/0.663, allocations: 260.5 kB / 459.2 MB, free: 5.672 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002822/0.6658, allocations: 343.1 kB / 459.5 MB, free: 5.668 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03636/0.7022, allocations: 12.73 MB / 472.2 MB, free: 1.918 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002438/0.7025, allocations: 38.98 kB / 472.3 MB, free: 1.898 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002294/0.7048, allocations: 168.3 kB / 472.4 MB, free: 1.852 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00856/0.7134, allocations: 2.971 MB / 475.4 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04067/0.7542, allocations: 11.39 MB / 486.8 MB, free: 7.422 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1172/0.8714, allocations: 42.29 MB / 0.5167 GB, free: 2.055 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01659/0.888, allocations: 4.71 MB / 0.5213 GB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002036/0.8901, allocations: 1.314 MB / 0.5226 GB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.66e-05/0.8902, allocations: 56.56 kB / 0.5226 GB, free: 11.53 MB / 394.7 MB Notification: Performance of pre-optimization done (n=250): time 7.024e-06/0.8902, allocations: 0 / 0.5226 GB, free: 11.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=268): time 0.08481/0.975, allocations: 20.04 MB / 0.5422 GB, free: 7.273 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.08e-05/0.9752, allocations: 105.7 kB / 0.5423 GB, free: 7.152 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008285/0.9835, allocations: 3.34 MB / 0.5456 GB, free: 3.809 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007432/0.9843, allocations: 61.7 kB / 0.5456 GB, free: 3.742 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003755/0.9881, allocations: 3.265 MB / 0.5488 GB, free: 500 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002023/0.9901, allocations: 0.9793 MB / 0.5498 GB, free: 15.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008228/0.991, allocations: 123.5 kB / 0.5499 GB, free: 15.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007244/0.9918, allocations: 0.5625 MB / 0.5504 GB, free: 14.83 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007462/0.9992, allocations: 2.461 MB / 0.5528 GB, free: 12.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01128/1.011, allocations: 5.813 MB / 0.5585 GB, free: 4.941 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01022/1.021, allocations: 3.773 MB / 0.5622 GB, free: 1.273 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001155/1.021, allocations: 33.64 kB / 0.5622 GB, free: 1.242 MB / 426.7 MB Notification: Performance of matching and sorting (n=806) (initialization): time 0.02976/1.051, allocations: 9.078 MB / 0.5711 GB, free: 8.543 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001131/1.051, allocations: 56.62 kB / 0.5711 GB, free: 8.488 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000206/1.051, allocations: 124.2 kB / 0.5713 GB, free: 8.367 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006007/1.057, allocations: 1.066 MB / 0.5723 GB, free: 7.297 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009365/1.067, allocations: 1.38 MB / 0.5737 GB, free: 5.914 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/1.079, allocations: 5.291 MB / 0.5788 GB, free: 0.4961 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006351/1.086, allocations: 335.7 kB / 0.5791 GB, free: 172 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00162/1.087, allocations: 344 kB / 0.5795 GB, free: 15.83 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 536 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 737 * 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.008054/1.096, allocations: 2.478 MB / 0.5819 GB, free: 13.35 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009151/1.096, allocations: 319.9 kB / 0.5822 GB, free: 13.03 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01712/1.114, allocations: 5.357 MB / 0.5874 GB, free: 7.609 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000143/1.114, allocations: 55.34 kB / 0.5875 GB, free: 7.559 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/1.114, allocations: 0 / 0.5875 GB, free: 7.559 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.668e-05/1.114, allocations: 15.95 kB / 0.5875 GB, free: 7.543 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3374/1.451, allocations: 13.32 MB / 0.6005 GB, free: 163.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.74e-05/1.451, allocations: 11.53 kB / 0.6005 GB, free: 163.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003845/1.455, allocations: 426.2 kB / 0.6009 GB, free: 163.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005361/1.461, allocations: 0.8929 MB / 0.6018 GB, free: 163.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006817/1.461, allocations: 61.66 kB / 0.6019 GB, free: 163.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01002/1.471, allocations: 4.641 MB / 0.6064 GB, free: 161.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-05/1.471, allocations: 17.81 kB / 0.6064 GB, free: 161.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02169/1.493, allocations: 9.102 MB / 0.6153 GB, free: 156.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002981/1.496, allocations: 0.7333 MB / 0.616 GB, free: 156.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001171/1.497, allocations: 56.48 kB / 0.6161 GB, free: 156.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003301/1.501, allocations: 150 kB / 0.6162 GB, free: 156.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001063/1.502, allocations: 172.1 kB / 0.6164 GB, free: 156.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003732/1.502, allocations: 86.25 kB / 0.6165 GB, free: 156.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005597/1.508, allocations: 2.055 MB / 0.6185 GB, free: 155.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.508, allocations: 0 / 0.6185 GB, free: 155.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00849/1.516, allocations: 1.125 MB / 0.6196 GB, free: 155.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (209): * Single equations (assignments): 202 * 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.02212/1.539, allocations: 12.63 MB / 0.6319 GB, free: 146.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01389/1.553, allocations: 6.023 MB / 0.6378 GB, free: 141.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/1.553, allocations: 4 kB / 0.6378 GB, free: 141.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005381/1.558, allocations: 2.248 MB / 0.64 GB, free: 139.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003231/1.561, allocations: 382.9 kB / 0.6403 GB, free: 139.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1037/1.665, allocations: 117.1 MB / 0.7546 GB, free: 20.71 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008908/1.674, allocations: 3.929 MB / 0.7585 GB, free: 16.75 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.009294/1.683, allocations: 2.171 MB / 0.7606 GB, free: 14.57 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005089/1.688, allocations: 2.198 MB / 0.7628 GB, free: 12.37 MB / 458.7 MB Notification: Performance of SimCode: time 1.673e-06/1.688, allocations: 0 / 0.7628 GB, free: 12.37 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4826/2.171, allocations: 78.46 MB / 0.8394 GB, free: 118.5 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002367/2.171, allocations: 200 kB / 0.8396 GB, free: 118.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.125/7.296, allocations: 1.859 kB / 0.8396 GB, free: 118.3 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat