Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.047/2.047, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003683, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1025, allocations: 44.5 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4605/0.5631, allocations: 77.77 MB / 386.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003258/0.5635, allocations: 72.36 kB / 386.4 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04987/0.6134, allocations: 11.59 MB / 398 MB, free: 13.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.6134, allocations: 0 / 398 MB, free: 13.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.471e-05/0.6135, allocations: 7.812 kB / 398 MB, free: 13.45 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002028/0.6155, allocations: 0.737 MB / 398.7 MB, free: 12.95 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.6156, allocations: 10.89 kB / 398.7 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001504/0.6157, allocations: 80.75 kB / 398.8 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004529/0.6162, allocations: 63.39 kB / 398.9 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007085/0.6169, allocations: 329.4 kB / 399.2 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001588/0.6171, allocations: 99.64 kB / 399.3 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.6173, allocations: 40.56 kB / 399.3 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.6189, allocations: 0.5434 MB / 399.9 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/0.6189, allocations: 7.219 kB / 399.9 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.98e-05/0.619, allocations: 17.91 kB / 399.9 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.6191, allocations: 7.75 kB / 399.9 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.6211, allocations: 0.608 MB / 400.5 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002996/0.6241, allocations: 1.163 MB / 401.7 MB, free: 11.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.6257, allocations: 0.4964 MB / 402.2 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.348e-05/0.6258, allocations: 4.438 kB / 402.2 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/0.6258, allocations: 42.64 kB / 402.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 3.717e-06/0.6259, allocations: 0 / 402.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.01283/0.6387, allocations: 2.857 MB / 405.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.301e-05/0.6388, allocations: 89.47 kB / 405.2 MB, free: 10.52 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006162/0.6394, allocations: 260.6 kB / 405.4 MB, free: 10.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001593/0.6396, allocations: 40.08 kB / 405.4 MB, free: 10.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.6398, allocations: 216.3 kB / 405.7 MB, free: 10.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003164/0.6401, allocations: 238.4 kB / 405.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.767e-05/0.6402, allocations: 11.31 kB / 405.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.949e-05/0.6403, allocations: 341 kB / 406.2 MB, free: 9.695 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.6416, allocations: 266.6 kB / 406.5 MB, free: 9.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001398/0.6431, allocations: 338.3 kB / 406.8 MB, free: 9.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.6444, allocations: 243.7 kB / 407.1 MB, free: 9.547 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.6444, allocations: 0 / 407.1 MB, free: 9.547 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.004342/0.6487, allocations: 0.8483 MB / 407.9 MB, free: 9.375 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.6488, allocations: 7.812 kB / 407.9 MB, free: 9.375 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.841e-05/0.6489, allocations: 0 / 407.9 MB, free: 9.375 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002325/0.6512, allocations: 433.2 kB / 408.3 MB, free: 9.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009606/0.6522, allocations: 85.25 kB / 408.4 MB, free: 9.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006487/0.6587, allocations: 1.023 MB / 409.4 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.6601, allocations: 80.55 kB / 409.5 MB, free: 8.637 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001435/0.6602, allocations: 38.05 kB / 409.6 MB, free: 8.629 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004793/0.6607, allocations: 179.2 kB / 409.7 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002112/0.6609, allocations: 38.88 kB / 409.8 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01229/0.6733, allocations: 0.8801 MB / 410.7 MB, free: 8.266 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.233e-05/0.6733, allocations: 11.77 kB / 410.7 MB, free: 8.262 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.6734, allocations: 0 / 410.7 MB, free: 8.262 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.671e-05/0.6734, allocations: 3.984 kB / 410.7 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01089/0.6843, allocations: 1.72 MB / 412.4 MB, free: 7.547 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/0.6844, allocations: 3.844 kB / 412.4 MB, free: 7.547 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009302/0.6853, allocations: 84.69 kB / 412.5 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001973/0.6873, allocations: 402.4 kB / 412.9 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.6874, allocations: 18.86 kB / 412.9 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01054/0.698, allocations: 0.9824 MB / 413.9 MB, free: 6.828 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.698, allocations: 3.938 kB / 413.9 MB, free: 6.824 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009702/0.7078, allocations: 1.289 MB / 415.2 MB, free: 6.438 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000528/0.7083, allocations: 187.2 kB / 415.3 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002056/0.7086, allocations: 14.88 kB / 415.4 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003177/0.7118, allocations: 77.58 kB / 415.4 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004159/0.7122, allocations: 103.6 kB / 415.5 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/0.7123, allocations: 30.84 kB / 415.6 MB, free: 6.207 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005048/0.7129, allocations: 214.5 kB / 415.8 MB, free: 6.102 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.7129, allocations: 0 / 415.8 MB, free: 6.102 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001129/0.714, allocations: 151.8 kB / 415.9 MB, free: 6.09 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.006191/0.7202, allocations: 2.022 MB / 417.9 MB, free: 5.023 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003273/0.7236, allocations: 0.7056 MB / 418.7 MB, free: 4.887 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.7236, allocations: 0 / 418.7 MB, free: 4.887 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001764/0.7254, allocations: 377.2 kB / 419 MB, free: 4.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007831/0.7262, allocations: 45.53 kB / 419.1 MB, free: 4.805 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01099/0.7372, allocations: 3.58 MB / 422.6 MB, free: 3.156 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.7376, allocations: 0.8329 MB / 423.5 MB, free: 2.398 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004083/0.738, allocations: 138.3 kB / 423.6 MB, free: 2.367 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.738, allocations: 0 / 423.6 MB, free: 2.367 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.107/3.845, allocations: 8.559 MB / 432.2 MB, free: 14.2 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat