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.LossyGearDemo2.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.LossyGearDemo2,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.724/1.724, allocations: 171.1 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003626, allocations: 11.94 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09093/0.09133, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3692/0.4606, allocations: 72.62 MB / 344.7 MB, free: 300 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003077/0.4609, allocations: 75.59 kB / 344.8 MB, free: 260 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06545/0.5264, allocations: 11.94 MB / 356.8 MB, free: 6.062 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.5265, allocations: 0 / 356.8 MB, free: 6.062 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.09e-05/0.5265, allocations: 19.98 kB / 356.8 MB, free: 6.043 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00255/0.5291, allocations: 0.7462 MB / 357.5 MB, free: 5.273 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.885e-05/0.5292, allocations: 16.03 kB / 357.5 MB, free: 5.258 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003117/0.5295, allocations: 78.47 kB / 357.6 MB, free: 5.199 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005295/0.53, allocations: 67.41 kB / 357.7 MB, free: 5.133 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009014/0.5309, allocations: 340.1 kB / 358 MB, free: 4.797 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001906/0.5312, allocations: 96.47 kB / 358.1 MB, free: 4.703 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.5313, allocations: 43.62 kB / 358.2 MB, free: 4.676 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001923/0.5333, allocations: 0.5573 MB / 358.7 MB, free: 4.262 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.916e-05/0.5334, allocations: 10.09 kB / 358.7 MB, free: 4.254 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.441e-05/0.5334, allocations: 14.31 kB / 358.7 MB, free: 4.25 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.5335, allocations: 8 kB / 358.7 MB, free: 4.242 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002524/0.536, allocations: 0.6491 MB / 359.4 MB, free: 3.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004008/0.5401, allocations: 1.226 MB / 360.6 MB, free: 2.75 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002161/0.5423, allocations: 0.5258 MB / 361.1 MB, free: 2.371 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001039/0.5425, allocations: 16.48 kB / 361.2 MB, free: 2.355 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.5425, allocations: 41 kB / 361.2 MB, free: 2.312 MB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 3.647e-06/0.5425, allocations: 3.938 kB / 361.2 MB, free: 2.309 MB / 282.7 MB Notification: Performance of matching and sorting (n=69): time 0.01303/0.5556, allocations: 2.927 MB / 364.1 MB, free: 15.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.6e-05/0.5557, allocations: 85.66 kB / 364.2 MB, free: 15.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006202/0.5563, allocations: 268.3 kB / 364.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001999/0.5566, allocations: 54.5 kB / 364.5 MB, free: 15.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.5567, allocations: 165.2 kB / 364.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003567/0.5571, allocations: 230 kB / 364.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.742e-05/0.5572, allocations: 10.38 kB / 364.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002427/0.5574, allocations: 349.2 kB / 365.3 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.5587, allocations: 289.1 kB / 365.6 MB, free: 14.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.56, allocations: 357.1 kB / 365.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/0.5612, allocations: 264.9 kB / 366.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.5613, allocations: 0 / 366.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003366/0.5646, allocations: 0.8965 MB / 367.1 MB, free: 13.56 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.761e-05/0.5647, allocations: 8 kB / 367.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.5648, allocations: 0 / 367.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002092/0.5669, allocations: 0.5429 MB / 367.6 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008115/0.5677, allocations: 87.62 kB / 367.7 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002298/0.5701, allocations: 1.086 MB / 368.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.5712, allocations: 82.17 kB / 368.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001653/0.5714, allocations: 26.81 kB / 368.9 MB, free: 12.04 MB / 298.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): 45 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.000419/0.5718, allocations: 172.8 kB / 369.1 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/0.572, allocations: 42.47 kB / 369.1 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002201/0.5723, allocations: 65.14 kB / 369.2 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.5723, allocations: 8 kB / 369.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.5723, allocations: 4 kB / 369.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/0.5723, allocations: 7.938 kB / 369.2 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006196/0.5785, allocations: 1.817 MB / 371 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.447e-05/0.5786, allocations: 8.016 kB / 371 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008005/0.5794, allocations: 82.39 kB / 371.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002058/0.5815, allocations: 0.518 MB / 371.6 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001616/0.5817, allocations: 22.25 kB / 371.6 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002081/0.5838, allocations: 1.038 MB / 372.7 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.5839, allocations: 0 / 372.7 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004857/0.5887, allocations: 1.351 MB / 374 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005957/0.5894, allocations: 194.8 kB / 374.2 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001517/0.5896, allocations: 15.56 kB / 374.2 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008985/0.5905, allocations: 71.75 kB / 374.3 MB, free: 7.711 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003462/0.5908, allocations: 99.84 kB / 374.4 MB, free: 7.625 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.938e-05/0.591, allocations: 31.42 kB / 374.4 MB, free: 7.602 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004705/0.5914, allocations: 219.9 kB / 374.6 MB, free: 7.422 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5915, allocations: 0 / 374.6 MB, free: 7.422 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009705/0.5924, allocations: 171.2 kB / 374.8 MB, free: 7.273 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (39): * Single equations (assignments): 38 * 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.005579/0.598, allocations: 2.075 MB / 376.9 MB, free: 5.547 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00286/0.601, allocations: 0.697 MB / 377.6 MB, free: 5.043 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.601, allocations: 4 kB / 377.6 MB, free: 5.039 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001586/0.6026, allocations: 372 kB / 377.9 MB, free: 4.773 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006662/0.6034, allocations: 46.2 kB / 378 MB, free: 4.742 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0139/0.6173, allocations: 3.731 MB / 381.7 MB, free: 1.098 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005725/0.6179, allocations: 0.829 MB / 382.5 MB, free: 248 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005252/0.6185, allocations: 67.34 kB / 382.6 MB, free: 180 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004188/0.6189, allocations: 131.4 kB / 382.7 MB, free: 48 kB / 298.7 MB Notification: Performance of SimCode: time 1.432e-06/0.6189, allocations: 0 / 382.7 MB, free: 48 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05305/0.672, allocations: 12.04 MB / 394.8 MB, free: 4.074 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004234/0.6725, allocations: 220.3 kB / 395 MB, free: 3.824 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.225/3.898, allocations: 0 / 395 MB, free: 3.824 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat