Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.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.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Rotational_TestFriction",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.01088/0.01089, allocations: 106 kB / 15.06 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.001212/0.001212, allocations: 166.4 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.592/1.592, allocations: 170.9 MB / 187.5 MB, free: 0.8555 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.2748/0.2748, allocations: 38.1 MB / 265.1 MB, free: 3.938 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004666/0.0004667, allocations: 11.98 kB / 323.6 MB, free: 29.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08773/0.08826, allocations: 48.71 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005159/0.09347, allocations: 3.113 MB / 375.4 MB, free: 9.723 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003101/0.09661, allocations: 1.267 MB / 376.7 MB, free: 8.453 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003739/0.09703, allocations: 11.94 kB / 376.7 MB, free: 8.441 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002483/0.09729, allocations: 79.39 kB / 376.8 MB, free: 8.363 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007628/0.09807, allocations: 243.3 kB / 377 MB, free: 8.125 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.09909, allocations: 247.6 kB / 377.2 MB, free: 7.883 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001442/0.1006, allocations: 0.6221 MB / 377.9 MB, free: 7.262 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004115/0.101, allocations: 156.7 kB / 378 MB, free: 7.094 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008267/0.1019, allocations: 378.7 kB / 378.4 MB, free: 6.723 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007816/0.1027, allocations: 410.4 kB / 378.8 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001749/0.1029, allocations: 40 kB / 378.8 MB, free: 6.281 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004275/0.1033, allocations: 127.9 kB / 378.9 MB, free: 6.156 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002307/0.1035, allocations: 155.4 kB / 379.1 MB, free: 6.004 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002245/0.1038, allocations: 149.3 kB / 379.2 MB, free: 5.852 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001104/0.1049, allocations: 0.6353 MB / 379.9 MB, free: 5.215 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1049, allocations: 0 / 379.9 MB, free: 5.215 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1049, allocations: 0 / 379.9 MB, free: 5.215 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.903e-05/0.105, allocations: 8 kB / 379.9 MB, free: 5.207 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003387/0.1084, allocations: 1.013 MB / 380.9 MB, free: 4.145 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.1084, allocations: 11.97 kB / 380.9 MB, free: 4.133 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002701/0.1087, allocations: 106.5 kB / 381 MB, free: 4.02 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002162/0.109, allocations: 79.06 kB / 381.1 MB, free: 3.941 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008258/0.1098, allocations: 404.6 kB / 381.5 MB, free: 3.508 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.241e-05/0.1099, allocations: 45.31 kB / 381.5 MB, free: 3.461 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001918/0.1101, allocations: 67.98 kB / 381.6 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/0.1126, allocations: 0.8101 MB / 382.4 MB, free: 2.551 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.331e-05/0.1126, allocations: 3.906 kB / 382.4 MB, free: 2.547 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001086/0.1128, allocations: 28 kB / 382.4 MB, free: 2.52 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.329e-05/0.1128, allocations: 16 kB / 382.5 MB, free: 2.504 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002747/0.1155, allocations: 0.7542 MB / 383.2 MB, free: 1.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007076/0.1227, allocations: 2.601 MB / 385.8 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00226/0.125, allocations: 0.6359 MB / 386.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001005/0.1251, allocations: 12.36 kB / 386.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.1252, allocations: 43.67 kB / 386.5 MB, free: 14.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=72): time 3.997e-06/0.1252, allocations: 0 / 386.5 MB, free: 14.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=76): time 0.01368/0.1389, allocations: 3.839 MB / 390.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.704e-05/0.139, allocations: 156.1 kB / 390.5 MB, free: 10.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007114/0.1397, allocations: 437.7 kB / 390.9 MB, free: 9.574 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001487/0.1399, allocations: 45.7 kB / 391 MB, free: 9.523 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002676/0.1402, allocations: 284.4 kB / 391.2 MB, free: 9.238 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003396/0.1405, allocations: 264.4 kB / 391.5 MB, free: 8.977 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.677e-05/0.1406, allocations: 20 kB / 391.5 MB, free: 8.957 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.1409, allocations: 366.8 kB / 391.9 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001401/0.1423, allocations: 385.8 kB / 392.3 MB, free: 8.211 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00155/0.1438, allocations: 0.5413 MB / 392.8 MB, free: 7.613 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.1452, allocations: 335.9 kB / 393.1 MB, free: 7.289 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.1452, allocations: 4 kB / 393.1 MB, free: 7.285 MB / 298.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005757/0.151, allocations: 1.4 MB / 394.5 MB, free: 5.867 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.151, allocations: 8 kB / 394.5 MB, free: 5.859 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.076e-05/0.1511, allocations: 4 kB / 394.5 MB, free: 5.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001881/0.153, allocations: 0.5811 MB / 395.1 MB, free: 5.262 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.1542, allocations: 159.8 kB / 395.3 MB, free: 5.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003568/0.1577, allocations: 2.639 MB / 397.9 MB, free: 2.363 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001873/0.1597, allocations: 199.7 kB / 398.1 MB, free: 2.168 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001583/0.1599, allocations: 35.98 kB / 398.1 MB, free: 2.133 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0005587/0.1604, allocations: 216.3 kB / 398.4 MB, free: 1.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003159/0.1608, allocations: 63.25 kB / 398.4 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000254/0.161, allocations: 79.98 kB / 398.5 MB, free: 1.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.1611, allocations: 8 kB / 398.5 MB, free: 1.762 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.536e-05/0.1611, allocations: 7.953 kB / 398.5 MB, free: 1.754 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.1611, allocations: 3.984 kB / 398.5 MB, free: 1.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007544/0.1687, allocations: 2.376 MB / 400.9 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.706e-05/0.1687, allocations: 0 / 400.9 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/0.1699, allocations: 127.8 kB / 401 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001692/0.1716, allocations: 0.5421 MB / 401.6 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001437/0.1718, allocations: 31.97 kB / 401.6 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003417/0.1752, allocations: 2.6 MB / 404.2 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1753, allocations: 0 / 404.2 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00594/0.1812, allocations: 1.959 MB / 406.1 MB, free: 9.891 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004806/0.1817, allocations: 208.2 kB / 406.3 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002219/0.182, allocations: 32.11 kB / 406.4 MB, free: 9.637 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001616/0.1836, allocations: 171.8 kB / 406.5 MB, free: 9.469 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005707/0.1842, allocations: 175.5 kB / 406.7 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.1843, allocations: 35.95 kB / 406.8 MB, free: 9.262 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005107/0.1848, allocations: 287.1 kB / 407 MB, free: 8.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.1849, allocations: 3.938 kB / 407 MB, free: 8.977 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001089/0.186, allocations: 188 kB / 407.2 MB, free: 8.793 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.006469/0.1924, allocations: 2.767 MB / 410 MB, free: 5.977 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003504/0.196, allocations: 0.9475 MB / 410.9 MB, free: 5.031 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.196, allocations: 448 / 410.9 MB, free: 5.031 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002116/0.1982, allocations: 0.5108 MB / 411.4 MB, free: 4.523 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.1994, allocations: 81.91 kB / 411.5 MB, free: 4.445 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01907/0.2185, allocations: 8.267 MB / 419.8 MB, free: 12.01 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000686/0.2192, allocations: 0.9222 MB / 420.7 MB, free: 11.06 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005032/0.2197, allocations: 60.83 kB / 420.8 MB, free: 11 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004678/0.2202, allocations: 207.3 kB / 421 MB, free: 10.79 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.2202, allocations: 0 / 421 MB, free: 10.79 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3486/0.5688, allocations: 17.63 MB / 438.6 MB, free: 61.63 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002416/0.5691, allocations: 201 kB / 438.8 MB, free: 61.39 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.926/3.495, allocations: 5.375 kB / 438.8 MB, free: 61.38 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat