Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.CutTorque.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.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Sensors_CutTorque",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.01152/0.01152, allocations: 112.5 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.001287/0.001287, allocations: 182 kB / 15.95 MB, free: 5.957 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 1.99/1.99, allocations: 194.6 MB / 211.3 MB, free: 11.04 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.2674/0.2674, allocations: 40.04 MB / 296.5 MB, free: 6.246 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005194/0.0005196, allocations: 16 kB / 361.1 MB, free: 9.527 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.119, allocations: 54.88 MB / 416 MB, free: 2.551 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.4251/0.5442, allocations: 83.63 MB / 499.7 MB, free: 14.33 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05181/0.5961, allocations: 18.58 MB / 0.5061 GB, free: 1.68 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0194/0.6155, allocations: 422 kB / 0.5065 GB, free: 1.621 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01536/0.6309, allocations: 4.322 MB / 0.5107 GB, free: 228 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0512/0.6822, allocations: 11.97 MB / 0.5224 GB, free: 10.37 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008557/0.6908, allocations: 1.258 MB / 0.5236 GB, free: 9.582 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01293/0.7038, allocations: 4.666 MB / 0.5282 GB, free: 6.84 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0202/0.724, allocations: 9.207 MB / 0.5372 GB, free: 15.59 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005994/0.7301, allocations: 2.134 MB / 0.5393 GB, free: 13.45 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006299/0.7365, allocations: 2.761 MB / 0.542 GB, free: 10.68 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00214/0.7386, allocations: 296 kB / 0.5422 GB, free: 10.39 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004603/0.7433, allocations: 0.9559 MB / 0.5432 GB, free: 9.438 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006096/0.7494, allocations: 3.226 MB / 0.5463 GB, free: 6.203 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00345/0.7529, allocations: 1.606 MB / 0.5479 GB, free: 4.586 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01724/0.7702, allocations: 10.46 MB / 0.5581 GB, free: 10.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.7703, allocations: 0 / 0.5581 GB, free: 10.1 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.781e-06/0.7703, allocations: 0 / 0.5581 GB, free: 10.1 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004929/0.7708, allocations: 3.938 kB / 0.5581 GB, free: 10.1 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2932 * Number of variables: 2932 Notification: Performance of Generate backend data structure: time 0.02826/0.7991, allocations: 8.153 MB / 0.5661 GB, free: 1.859 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.7991, allocations: 8.031 kB / 0.5661 GB, free: 1.852 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004871/0.804, allocations: 1.368 MB / 0.5674 GB, free: 480 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02254/0.8266, allocations: 3.137 MB / 0.5705 GB, free: 13.32 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01738/0.844, allocations: 5.721 MB / 0.5761 GB, free: 7.516 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007171/0.8448, allocations: 480 kB / 0.5765 GB, free: 7.043 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003052/0.8479, allocations: 0.6245 MB / 0.5771 GB, free: 6.418 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05778/0.9057, allocations: 19.61 MB / 0.5963 GB, free: 1.602 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003948/0.9061, allocations: 75.34 kB / 0.5964 GB, free: 1.527 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002703/0.9089, allocations: 295.7 kB / 0.5966 GB, free: 1.238 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01045/0.9194, allocations: 3.64 MB / 0.6002 GB, free: 13.59 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05495/0.9744, allocations: 15.31 MB / 0.6151 GB, free: 14.25 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7621/1.737, allocations: 73.21 MB / 0.6866 GB, free: 99.19 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02936/1.766, allocations: 6.123 MB / 0.6926 GB, free: 97.23 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03344/1.799, allocations: 11.32 MB / 0.7037 GB, free: 91.52 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.432e-05/1.8, allocations: 61.09 kB / 0.7037 GB, free: 91.46 MB / 490.8 MB Notification: Performance of pre-optimization done (n=250): time 7.113e-06/1.8, allocations: 2 kB / 0.7037 GB, free: 91.46 MB / 490.8 MB Notification: Performance of matching and sorting (n=274): time 0.0749/1.874, allocations: 16.88 MB / 0.7202 GB, free: 83.54 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.525e-05/1.875, allocations: 156.9 kB / 0.7204 GB, free: 83.38 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02066/1.895, allocations: 7.192 MB / 0.7274 GB, free: 79.76 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006153/1.896, allocations: 65.36 kB / 0.7274 GB, free: 79.7 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0062/1.902, allocations: 5.742 MB / 0.7331 GB, free: 74.7 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001799/1.904, allocations: 1.051 MB / 0.7341 GB, free: 73.82 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001124/1.905, allocations: 183.1 kB / 0.7343 GB, free: 73.68 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0008667/1.906, allocations: 0.7089 MB / 0.7349 GB, free: 73.08 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0102/1.916, allocations: 2.704 MB / 0.7376 GB, free: 71.2 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01448/1.931, allocations: 8.525 MB / 0.7459 GB, free: 59.76 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01503/1.946, allocations: 4.63 MB / 0.7504 GB, free: 55.14 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002242/1.946, allocations: 64 kB / 0.7505 GB, free: 55.07 MB / 490.8 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.02953/1.976, allocations: 10.93 MB / 0.7612 GB, free: 44.14 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001486/1.976, allocations: 96 kB / 0.7613 GB, free: 44.05 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002732/1.976, allocations: 208 kB / 0.7615 GB, free: 43.85 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003003/1.977, allocations: 304.7 kB / 0.7617 GB, free: 43.55 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01276/1.989, allocations: 2.187 MB / 0.7639 GB, free: 41.36 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003561/1.99, allocations: 402.5 kB / 0.7643 GB, free: 40.96 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009806/2, allocations: 470.7 kB / 0.7647 GB, free: 40.51 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00184/2.001, allocations: 0.5625 MB / 0.7653 GB, free: 39.95 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 948 * Number of states: 0 () * Number of discrete variables: 57 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1176): * Single equations (assignments): 1165 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00918/2.011, allocations: 3.757 MB / 0.7689 GB, free: 36.17 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001367/2.012, allocations: 0.5862 MB / 0.7695 GB, free: 35.58 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007793/2.02, allocations: 2.977 MB / 0.7724 GB, free: 32.58 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.933e-05/2.02, allocations: 28 kB / 0.7724 GB, free: 32.55 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/2.02, allocations: 7.938 kB / 0.7725 GB, free: 32.55 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.939e-05/2.02, allocations: 11.95 kB / 0.7725 GB, free: 32.54 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05793/2.078, allocations: 25.15 MB / 0.797 GB, free: 6.5 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000172/2.078, allocations: 60 kB / 0.7971 GB, free: 6.441 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00385/2.082, allocations: 0.6082 MB / 0.7977 GB, free: 5.832 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.955e-05/2.082, allocations: 92 kB / 0.7978 GB, free: 5.742 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003708/2.083, allocations: 140 kB / 0.7979 GB, free: 5.605 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.388e-05/2.083, allocations: 123.5 kB / 0.798 GB, free: 5.484 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.217e-05/2.083, allocations: 109.5 kB / 0.7981 GB, free: 5.379 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/2.098, allocations: 17.35 MB / 0.8151 GB, free: 1.52 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00249/2.1, allocations: 0.739 MB / 0.8158 GB, free: 0.7539 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00173/2.102, allocations: 147.2 kB / 0.8159 GB, free: 0.6133 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004691/2.107, allocations: 161.2 kB / 0.8161 GB, free: 468 kB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009725/2.108, allocations: 418.3 kB / 0.8165 GB, free: 48 kB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.3277/2.436, allocations: 172.3 kB / 0.8166 GB, free: 147.1 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01152/2.447, allocations: 4.554 MB / 0.8211 GB, free: 146.9 MB / 0.4949 GB Notification: Performance of sort global known variables: time 7.62e-07/2.447, allocations: 0 / 0.8211 GB, free: 146.9 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01206/2.459, allocations: 1.576 MB / 0.8226 GB, free: 146.9 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 288 * Number of states: 0 () * 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 (326): * Single equations (assignments): 323 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01624/2.476, allocations: 29.73 MB / 0.8517 GB, free: 119.4 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01501/2.491, allocations: 6.333 MB / 0.8578 GB, free: 117.5 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 4.988e-05/2.491, allocations: 11.41 kB / 0.8579 GB, free: 117.5 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.004035/2.495, allocations: 1.633 MB / 0.8595 GB, free: 117 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007673/2.503, allocations: 0.9086 MB / 0.8603 GB, free: 116.7 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4273/2.93, allocations: 180.1 MB / 1.036 GB, free: 169.6 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01343/2.944, allocations: 5.958 MB / 1.042 GB, free: 168.6 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.0135/2.957, allocations: 2.898 MB / 1.045 GB, free: 168.6 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008294/2.965, allocations: 3.811 MB / 1.049 GB, free: 168.5 MB / 0.5418 GB Notification: Performance of SimCode: time 1.703e-06/2.965, allocations: 3.219 kB / 1.049 GB, free: 168.5 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2703/3.236, allocations: 121.2 MB / 1.167 GB, free: 73.9 MB / 0.5418 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/3.236, allocations: 176 kB / 1.167 GB, free: 73.66 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.864/11.1, allocations: 3.938 kB / 1.167 GB, free: 73.65 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat does not exist to compare? outputFormat=mat