Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.Revolute2.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01113/0.01113, allocations: 108.3 kB / 15.06 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001316/0.001315, allocations: 181.2 kB / 15.95 MB, free: 5.953 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.06/2.06, allocations: 194.5 MB / 211.3 MB, free: 11.05 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.3376/0.3376, allocations: 40.04 MB / 296.5 MB, free: 6.254 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007005/0.0007008, allocations: 12 kB / 361.1 MB, free: 9.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1536, allocations: 54.88 MB / 416 MB, free: 2.562 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.4334/0.5871, allocations: 52.51 MB / 468.5 MB, free: 30.29 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03269/0.6198, allocations: 12.36 MB / 480.9 MB, free: 26.8 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01328/0.6332, allocations: 260.6 kB / 481.1 MB, free: 26.76 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008841/0.6421, allocations: 2.697 MB / 483.8 MB, free: 25.95 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02918/0.6713, allocations: 7.775 MB / 491.6 MB, free: 23.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005181/0.6765, allocations: 0.8995 MB / 492.5 MB, free: 23.2 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03335/0.7099, allocations: 11.3 MB / 0.492 GB, free: 19.82 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01127/0.7213, allocations: 4.995 MB / 0.4969 GB, free: 17.9 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004589/0.7259, allocations: 1.597 MB / 0.4985 GB, free: 17.34 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005562/0.7316, allocations: 2.262 MB / 0.5007 GB, free: 16.13 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002015/0.7336, allocations: 218.5 kB / 0.5009 GB, free: 16.13 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004604/0.7383, allocations: 1.018 MB / 0.5019 GB, free: 15.73 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004426/0.7428, allocations: 2.409 MB / 0.5042 GB, free: 14.5 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002728/0.7456, allocations: 1.203 MB / 0.5054 GB, free: 13.67 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01171/0.7573, allocations: 7.822 MB / 0.513 GB, free: 8.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.7574, allocations: 0 / 0.513 GB, free: 8.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.7574, allocations: 4 kB / 0.513 GB, free: 8.406 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000404/0.7578, allocations: 0 / 0.513 GB, free: 8.406 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2209 * Number of variables: 2209 Notification: Performance of Generate backend data structure: time 0.02362/0.7814, allocations: 6.587 MB / 0.5195 GB, free: 1.742 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.7815, allocations: 17.47 kB / 0.5195 GB, free: 1.727 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003788/0.7853, allocations: 1.026 MB / 0.5205 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06489/0.8502, allocations: 7.063 MB / 0.5274 GB, free: 9.602 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01611/0.8664, allocations: 4.984 MB / 0.5322 GB, free: 4.562 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005057/0.867, allocations: 328.1 kB / 0.5326 GB, free: 4.238 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00303/0.87, allocations: 443.6 kB / 0.533 GB, free: 3.805 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04984/0.9199, allocations: 16 MB / 0.5486 GB, free: 3.074 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003851/0.9204, allocations: 59.48 kB / 0.5487 GB, free: 3.016 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00255/0.9229, allocations: 207.7 kB / 0.5489 GB, free: 2.812 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00976/0.9328, allocations: 3.238 MB / 0.552 GB, free: 15.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0516/0.9844, allocations: 14.97 MB / 0.5666 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1325/1.117, allocations: 56.04 MB / 0.6214 GB, free: 7.348 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3537/1.471, allocations: 8.195 MB / 0.6294 GB, free: 146.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00279/1.474, allocations: 2.207 MB / 0.6315 GB, free: 144.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.406e-05/1.474, allocations: 67.27 kB / 0.6316 GB, free: 144.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=367): time 8.957e-06/1.474, allocations: 2.531 kB / 0.6316 GB, free: 144.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=419): time 0.1928/1.667, allocations: 40.78 MB / 0.6714 GB, free: 135.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.175e-05/1.667, allocations: 115.5 kB / 0.6715 GB, free: 135.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01151/1.678, allocations: 4.812 MB / 0.6762 GB, free: 133.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001344/1.68, allocations: 80.08 kB / 0.6763 GB, free: 133.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003635/1.683, allocations: 3.892 MB / 0.6801 GB, free: 130.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002786/1.686, allocations: 1.491 MB / 0.6816 GB, free: 129.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001379/1.688, allocations: 152.3 kB / 0.6817 GB, free: 129.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000763/1.688, allocations: 0.6306 MB / 0.6823 GB, free: 128.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01078/1.699, allocations: 3.924 MB / 0.6862 GB, free: 127.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01181/1.711, allocations: 7.677 MB / 0.6937 GB, free: 121.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01239/1.723, allocations: 5.456 MB / 0.699 GB, free: 118.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001046/1.724, allocations: 40 kB / 0.699 GB, free: 118.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=1014) (initialization): time 0.0404/1.764, allocations: 14.16 MB / 0.7128 GB, free: 105.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.837e-05/1.764, allocations: 60.19 kB / 0.7129 GB, free: 105.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001517/1.764, allocations: 132 kB / 0.713 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01791/1.782, allocations: 2.704 MB / 0.7157 GB, free: 102.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01808/1.8, allocations: 1.778 MB / 0.7174 GB, free: 100.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04796/1.848, allocations: 14.55 MB / 0.7316 GB, free: 85.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01464/1.863, allocations: 499.5 kB / 0.7321 GB, free: 85.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00266/1.866, allocations: 427.9 kB / 0.7325 GB, free: 84.91 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 589 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (917): * Single equations (assignments): 909 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01181/1.878, allocations: 2.907 MB / 0.7353 GB, free: 81.99 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002321/1.88, allocations: 470 kB / 0.7358 GB, free: 81.53 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03489/1.915, allocations: 10.54 MB / 0.7461 GB, free: 70.93 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001471/1.915, allocations: 67.11 kB / 0.7461 GB, free: 70.87 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.744e-05/1.915, allocations: 8 kB / 0.7461 GB, free: 70.86 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.266e-05/1.915, allocations: 23.88 kB / 0.7462 GB, free: 70.84 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0623/1.978, allocations: 21.43 MB / 0.7671 GB, free: 49.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.028e-05/1.978, allocations: 12 kB / 0.7671 GB, free: 49.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006288/1.984, allocations: 0.6825 MB / 0.7678 GB, free: 48.51 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01282/1.997, allocations: 2.487 MB / 0.7702 GB, free: 46.02 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001171/1.998, allocations: 86.72 kB / 0.7703 GB, free: 45.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0278/2.026, allocations: 13.31 MB / 0.7833 GB, free: 32.36 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.396e-05/2.026, allocations: 19.88 kB / 0.7833 GB, free: 32.34 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04063/2.067, allocations: 16.44 MB / 0.7994 GB, free: 15.21 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005038/2.072, allocations: 1.187 MB / 0.8005 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002248/2.074, allocations: 79.19 kB / 0.8006 GB, free: 13.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006128/2.08, allocations: 311.5 kB / 0.8009 GB, free: 13.62 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001803/2.082, allocations: 262 kB / 0.8011 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008867/2.083, allocations: 116 kB / 0.8012 GB, free: 13.25 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00725/2.09, allocations: 3.074 MB / 0.8042 GB, free: 10.18 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.09, allocations: 5.25 kB / 0.8043 GB, free: 10.17 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01115/2.101, allocations: 1.672 MB / 0.8059 GB, free: 8.508 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4241/2.526, allocations: 19.66 MB / 0.8251 GB, free: 132.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02346/2.549, allocations: 9.788 MB / 0.8346 GB, free: 129.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.65e-05/2.549, allocations: 2.438 kB / 0.8347 GB, free: 129.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0113/2.561, allocations: 4.299 MB / 0.8388 GB, free: 127.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005954/2.567, allocations: 0.6348 MB / 0.8395 GB, free: 127.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1625/2.729, allocations: 145.1 MB / 0.9812 GB, free: 2.133 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01114/2.74, allocations: 4.741 MB / 0.9858 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01364/2.754, allocations: 2.743 MB / 0.9885 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009355/2.763, allocations: 2.916 MB / 0.9913 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of SimCode: time 1.794e-06/2.763, allocations: 0 / 0.9913 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6789/3.442, allocations: 123.3 MB / 1.112 GB, free: 80.02 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002588/3.443, allocations: 191.4 kB / 1.112 GB, free: 79.78 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.86/10.3, allocations: 0 / 1.112 GB, free: 79.78 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat