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.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.295/2.295, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.269e-05/2.27e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3549, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1908/0.5457, allocations: 95.27 MB / 453.4 MB, free: 15.44 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.546, allocations: 71.97 kB / 453.5 MB, free: 15.37 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6582/1.204, allocations: 84.14 MB / 0.525 GB, free: 42.66 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.244e-06/1.204, allocations: 0 / 0.525 GB, free: 42.66 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001714/1.205, allocations: 71.98 kB / 0.5251 GB, free: 42.59 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: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.01378/1.218, allocations: 3.655 MB / 0.5286 GB, free: 38.87 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/1.218, allocations: 12.03 kB / 0.5287 GB, free: 38.86 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02697/1.245, allocations: 3.508 MB / 0.5321 GB, free: 35.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01607/1.261, allocations: 4.148 MB / 0.5361 GB, free: 31.14 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002662/1.262, allocations: 124 kB / 0.5363 GB, free: 31.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002672/1.264, allocations: 228.4 kB / 0.5365 GB, free: 30.8 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01703/1.282, allocations: 7.263 MB / 0.5436 GB, free: 23.53 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02956/1.311, allocations: 9.485 MB / 0.5528 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002396/1.311, allocations: 23.81 kB / 0.5528 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002419/1.314, allocations: 19.98 kB / 0.5529 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002901/1.317, allocations: 1.203 MB / 0.554 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07578/1.393, allocations: 32.97 MB / 0.5862 GB, free: 10.75 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008622/1.401, allocations: 4.186 MB / 0.5903 GB, free: 6.328 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005225/1.407, allocations: 2.237 MB / 0.5925 GB, free: 4.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002841/1.41, allocations: 1.876 MB / 0.5943 GB, free: 1.883 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.098e-05/1.41, allocations: 52.55 kB / 0.5944 GB, free: 1.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=231): time 7.154e-06/1.41, allocations: 4 kB / 0.5944 GB, free: 1.816 MB / 426.7 MB Notification: Performance of matching and sorting (n=238): time 0.05086/1.461, allocations: 14.06 MB / 0.6081 GB, free: 3.715 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/1.461, allocations: 73.41 kB / 0.6082 GB, free: 3.633 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006185/1.467, allocations: 2.24 MB / 0.6104 GB, free: 1.375 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005416/1.468, allocations: 25.7 kB / 0.6104 GB, free: 1.344 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003171/1.471, allocations: 2.8 MB / 0.6131 GB, free: 14.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001734/1.472, allocations: 0.8439 MB / 0.614 GB, free: 13.64 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007245/1.473, allocations: 3.938 kB / 0.614 GB, free: 13.64 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000654/1.474, allocations: 0.5466 MB / 0.6145 GB, free: 13.08 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006034/1.48, allocations: 2.127 MB / 0.6166 GB, free: 10.95 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008892/1.489, allocations: 5.25 MB / 0.6217 GB, free: 4.145 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008969/1.498, allocations: 3.374 MB / 0.625 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001202/1.498, allocations: 32 kB / 0.625 GB, free: 0.7344 MB / 458.7 MB Notification: Performance of matching and sorting (n=744) (initialization): time 0.3639/1.862, allocations: 7.407 MB / 0.6323 GB, free: 111.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.945e-05/1.862, allocations: 49.5 kB / 0.6323 GB, free: 111.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001705/1.862, allocations: 113 kB / 0.6324 GB, free: 111.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004079/1.867, allocations: 0.8124 MB / 0.6332 GB, free: 111.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007899/1.874, allocations: 1.289 MB / 0.6345 GB, free: 111.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007874/1.882, allocations: 3.976 MB / 0.6384 GB, free: 110.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005452/1.888, allocations: 199.2 kB / 0.6386 GB, free: 110.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001325/1.889, allocations: 330 kB / 0.6389 GB, free: 110.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 506 * Number of states: 0 () * Number of discrete variables: 24 (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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.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 (684): * Single equations (assignments): 677 * 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,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001393/1.891, allocations: 388.6 kB / 0.6392 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01127/1.902, allocations: 4.088 MB / 0.6432 GB, free: 110.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009488/1.903, allocations: 261.9 kB / 0.6435 GB, free: 110.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01298/1.916, allocations: 4.563 MB / 0.6479 GB, free: 110.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001182/1.916, allocations: 50.62 kB / 0.648 GB, free: 110.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/1.916, allocations: 0 / 0.648 GB, free: 110.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.038e-05/1.916, allocations: 13.66 kB / 0.648 GB, free: 110.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02688/1.943, allocations: 9.564 MB / 0.6573 GB, free: 108.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.481e-05/1.943, allocations: 8.062 kB / 0.6573 GB, free: 108.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00323/1.946, allocations: 374.9 kB / 0.6577 GB, free: 108.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003633/1.95, allocations: 0.6522 MB / 0.6583 GB, free: 108.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005017/1.951, allocations: 14.84 kB / 0.6584 GB, free: 108.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006782/1.957, allocations: 3.463 MB / 0.6617 GB, free: 106.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-05/1.958, allocations: 12.66 kB / 0.6617 GB, free: 106.9 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01643/1.974, allocations: 7.595 MB / 0.6692 GB, free: 103.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002238/1.976, allocations: 0.6428 MB / 0.6698 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007987/1.977, allocations: 14.66 kB / 0.6698 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002571/1.98, allocations: 103.2 kB / 0.6699 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006479/1.98, allocations: 140.1 kB / 0.67 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002469/1.981, allocations: 69.66 kB / 0.6701 GB, free: 103.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004479/1.985, allocations: 1.466 MB / 0.6715 GB, free: 102.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.985, allocations: 0 / 0.6715 GB, free: 102.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009084/1.994, allocations: 0.8287 MB / 0.6723 GB, free: 102.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (181): * Single equations (assignments): 174 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02403/2.018, allocations: 10.11 MB / 0.6822 GB, free: 93.75 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01488/2.033, allocations: 5.177 MB / 0.6873 GB, free: 89.08 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.67e-05/2.033, allocations: 0 / 0.6873 GB, free: 89.08 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005523/2.039, allocations: 1.969 MB / 0.6892 GB, free: 87.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002739/2.042, allocations: 211.9 kB / 0.6894 GB, free: 87.11 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03379/2.076, allocations: 9.622 MB / 0.6988 GB, free: 78.73 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009403/2.085, allocations: 3.32 MB / 0.702 GB, free: 76.17 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006366/2.092, allocations: 1.844 MB / 0.7038 GB, free: 74.46 MB / 458.7 MB Notification: Performance of SimCode: time 1.432e-06/2.092, allocations: 0 / 0.7038 GB, free: 74.46 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.35/6.442, allocations: 91 MB / 0.7927 GB, free: 3.695 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Revolute_res.mat does not exist to compare? outputFormat=mat