Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.712/1.712, allocations: 171.2 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005893/0.0005893, allocations: 12 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1107, allocations: 38.76 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4513/0.5621, allocations: 70.47 MB / 342.6 MB, free: 2.723 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/0.5625, allocations: 71.78 kB / 342.7 MB, free: 2.688 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04513/0.6076, allocations: 9.344 MB / 352 MB, free: 10.78 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6077, allocations: 0 / 352 MB, free: 10.78 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.432e-05/0.6077, allocations: 4 kB / 352 MB, free: 10.78 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001623/0.6093, allocations: 0.5859 MB / 352.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.6094, allocations: 8.031 kB / 352.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001201/0.6096, allocations: 67.78 kB / 352.7 MB, free: 10.1 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000433/0.61, allocations: 47.61 kB / 352.7 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006093/0.6106, allocations: 287.3 kB / 353 MB, free: 9.758 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001641/0.6108, allocations: 94.47 kB / 353.1 MB, free: 9.664 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.75e-05/0.6109, allocations: 27.28 kB / 353.1 MB, free: 9.645 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.612, allocations: 366.7 kB / 353.5 MB, free: 9.363 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.6121, allocations: 4 kB / 353.5 MB, free: 9.359 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.394e-05/0.6121, allocations: 14.69 kB / 353.5 MB, free: 9.355 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.6122, allocations: 8 kB / 353.5 MB, free: 9.348 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.6136, allocations: 410.9 kB / 353.9 MB, free: 9.039 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002848/0.6165, allocations: 1.169 MB / 355.1 MB, free: 8.031 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.6177, allocations: 345.5 kB / 355.4 MB, free: 7.781 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.559e-05/0.6177, allocations: 8.141 kB / 355.4 MB, free: 7.773 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.023e-05/0.6178, allocations: 33.75 kB / 355.4 MB, free: 7.734 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 3.486e-06/0.6178, allocations: 0 / 355.4 MB, free: 7.734 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.008408/0.6262, allocations: 1.882 MB / 357.3 MB, free: 6.109 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.755e-05/0.6263, allocations: 96.53 kB / 357.4 MB, free: 6 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004204/0.6268, allocations: 187.2 kB / 357.6 MB, free: 5.836 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.046e-05/0.6269, allocations: 36.95 kB / 357.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.627, allocations: 138.8 kB / 357.8 MB, free: 5.68 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002007/0.6272, allocations: 155.9 kB / 357.9 MB, free: 5.547 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.873e-05/0.6273, allocations: 7.188 kB / 357.9 MB, free: 5.547 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.6275, allocations: 334.1 kB / 358.3 MB, free: 5.219 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006864/0.6282, allocations: 163 kB / 358.4 MB, free: 5.113 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007745/0.629, allocations: 226.5 kB / 358.6 MB, free: 4.93 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006652/0.6296, allocations: 156.3 kB / 358.8 MB, free: 4.836 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-06/0.6297, allocations: 0 / 358.8 MB, free: 4.836 MB / 282.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.003189/0.6329, allocations: 0.5554 MB / 359.4 MB, free: 4.426 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.124e-05/0.633, allocations: 7.953 kB / 359.4 MB, free: 4.418 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.633, allocations: 4 kB / 359.4 MB, free: 4.414 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00121/0.6342, allocations: 233.8 kB / 359.6 MB, free: 4.238 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.6348, allocations: 55.89 kB / 359.6 MB, free: 4.184 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00632/0.6411, allocations: 2.704 MB / 362.4 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005263/0.6417, allocations: 29.75 kB / 362.4 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.464e-05/0.6418, allocations: 27.48 kB / 362.4 MB, free: 1.883 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002878/0.6421, allocations: 144.4 kB / 362.5 MB, free: 1.754 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.6422, allocations: 27.7 kB / 362.6 MB, free: 1.727 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.6423, allocations: 46.12 kB / 362.6 MB, free: 1.711 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.6424, allocations: 4 kB / 362.6 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.6424, allocations: 0 / 362.6 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.6424, allocations: 3.984 kB / 362.6 MB, free: 1.703 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003069/0.6455, allocations: 1.073 MB / 363.7 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.6455, allocations: 0 / 363.7 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004586/0.646, allocations: 51.78 kB / 363.8 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001125/0.6471, allocations: 223.1 kB / 364 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-05/0.6473, allocations: 14.3 kB / 364 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006122/0.6534, allocations: 2.66 MB / 366.6 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.6534, allocations: 4.062 kB / 366.6 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002621/0.6561, allocations: 0.7903 MB / 367.4 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000326/0.6565, allocations: 145 kB / 367.6 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.133e-05/0.6566, allocations: 17.42 kB / 367.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004606/0.657, allocations: 23.17 kB / 367.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002603/0.6573, allocations: 70.17 kB / 367.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.074e-05/0.6574, allocations: 19.92 kB / 367.7 MB, free: 13.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003123/0.6577, allocations: 151.2 kB / 367.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6577, allocations: 4.062 kB / 367.9 MB, free: 13.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009031/0.6586, allocations: 152.7 kB / 368 MB, free: 13.29 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.003329/0.662, allocations: 1.381 MB / 369.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002106/0.6641, allocations: 0.6145 MB / 370 MB, free: 11.63 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.6642, allocations: 0 / 370 MB, free: 11.63 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.6655, allocations: 430.5 kB / 370.4 MB, free: 11.28 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004553/0.666, allocations: 29.12 kB / 370.5 MB, free: 11.26 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00637/0.6724, allocations: 2.648 MB / 373.1 MB, free: 8.941 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005076/0.673, allocations: 0.7912 MB / 373.9 MB, free: 8.125 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004235/0.6734, allocations: 66.94 kB / 374 MB, free: 8.055 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00026/0.6737, allocations: 78.7 kB / 374 MB, free: 8.023 MB / 298.7 MB Notification: Performance of SimCode: time 8.71e-07/0.6737, allocations: 0 / 374 MB, free: 8.023 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05229/0.726, allocations: 8.714 MB / 382.7 MB, free: 15.38 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003637/0.7264, allocations: 216.3 kB / 383 MB, free: 15.14 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.112/3.839, allocations: 0 / 383 MB, free: 15.14 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat