Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.664/1.664, allocations: 171.2 MB / 186.8 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007306/0.0007307, allocations: 8 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09142/0.09222, allocations: 38.76 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3861/0.4784, allocations: 72.63 MB / 344.7 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002854/0.4788, allocations: 75.53 kB / 344.8 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05902/0.5378, allocations: 11.95 MB / 356.7 MB, free: 6.625 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5378, allocations: 0 / 356.7 MB, free: 6.625 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.241e-05/0.5379, allocations: 12 kB / 356.8 MB, free: 6.613 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.002437/0.5403, allocations: 0.7562 MB / 357.5 MB, free: 5.836 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.516e-05/0.5404, allocations: 12.03 kB / 357.5 MB, free: 5.824 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001937/0.5406, allocations: 78.41 kB / 357.6 MB, free: 5.766 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005104/0.5411, allocations: 71.41 kB / 357.7 MB, free: 5.695 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000792/0.5419, allocations: 329.6 kB / 358 MB, free: 5.367 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001812/0.5421, allocations: 102.1 kB / 358.1 MB, free: 5.27 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.5423, allocations: 41.81 kB / 358.1 MB, free: 5.242 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001763/0.5441, allocations: 0.5555 MB / 358.7 MB, free: 4.832 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.441e-05/0.5441, allocations: 11.91 kB / 358.7 MB, free: 4.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.046e-05/0.5442, allocations: 17.75 kB / 358.7 MB, free: 4.816 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.5443, allocations: 8 kB / 358.7 MB, free: 4.809 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002363/0.5466, allocations: 0.6476 MB / 359.4 MB, free: 4.316 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003621/0.5503, allocations: 1.228 MB / 360.6 MB, free: 3.316 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00189/0.5522, allocations: 0.5258 MB / 361.1 MB, free: 2.938 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.617e-05/0.5523, allocations: 8.5 kB / 361.1 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.621e-05/0.5524, allocations: 46.8 kB / 361.2 MB, free: 2.879 MB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 7.244e-06/0.5524, allocations: 0 / 361.2 MB, free: 2.879 MB / 282.7 MB Notification: Performance of matching and sorting (n=69): time 0.01313/0.5656, allocations: 2.93 MB / 364.1 MB, free: 432 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.097e-05/0.5657, allocations: 84.42 kB / 364.2 MB, free: 332 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006277/0.5663, allocations: 280.5 kB / 364.5 MB, free: 96 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001649/0.5665, allocations: 39.27 kB / 364.5 MB, free: 60 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001928/0.5667, allocations: 216.2 kB / 364.7 MB, free: 15.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003528/0.5671, allocations: 229.7 kB / 364.9 MB, free: 15.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.867e-05/0.5672, allocations: 18.69 kB / 365 MB, free: 15.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.5674, allocations: 334.1 kB / 365.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001133/0.5685, allocations: 292.3 kB / 365.6 MB, free: 15.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001222/0.5697, allocations: 347.5 kB / 365.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.5709, allocations: 268.1 kB / 366.2 MB, free: 14.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.571, allocations: 0 / 366.2 MB, free: 14.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003354/0.5743, allocations: 0.8835 MB / 367.1 MB, free: 14.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.5744, allocations: 4 kB / 367.1 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.5744, allocations: 4.031 kB / 367.1 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002107/0.5765, allocations: 0.5408 MB / 367.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008404/0.5774, allocations: 91.19 kB / 367.7 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002388/0.5799, allocations: 1.078 MB / 368.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.581, allocations: 83.52 kB / 368.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/0.5812, allocations: 35.94 kB / 368.9 MB, free: 12.57 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.000433/0.5816, allocations: 176.8 kB / 369.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001893/0.5818, allocations: 43.53 kB / 369.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000216/0.5821, allocations: 62.02 kB / 369.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.5821, allocations: 8 kB / 369.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.5821, allocations: 0 / 369.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.654e-05/0.5821, allocations: 7.938 kB / 369.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006279/0.5884, allocations: 1.817 MB / 371 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/0.5885, allocations: 4 kB / 371 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008145/0.5893, allocations: 83.8 kB / 371.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001933/0.5913, allocations: 0.5164 MB / 371.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001382/0.5915, allocations: 27.12 kB / 371.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002104/0.5936, allocations: 1.03 MB / 372.7 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.5936, allocations: 0 / 372.7 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004665/0.5983, allocations: 1.359 MB / 374 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004781/0.5988, allocations: 194.5 kB / 374.2 MB, free: 8.309 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.599, allocations: 17.94 kB / 374.2 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008477/0.5999, allocations: 70.19 kB / 374.3 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003541/0.6002, allocations: 102.8 kB / 374.4 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.582e-05/0.6003, allocations: 27.17 kB / 374.4 MB, free: 8.133 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004699/0.6008, allocations: 219.4 kB / 374.6 MB, free: 7.953 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6008, allocations: 0 / 374.6 MB, free: 7.953 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008649/0.6017, allocations: 167.2 kB / 374.8 MB, free: 7.809 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.005449/0.6072, allocations: 2.088 MB / 376.9 MB, free: 6.074 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00281/0.61, allocations: 0.6933 MB / 377.6 MB, free: 5.574 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.6101, allocations: 3.938 kB / 377.6 MB, free: 5.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.6116, allocations: 374.8 kB / 377.9 MB, free: 5.301 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006165/0.6123, allocations: 42.58 kB / 378 MB, free: 5.273 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/0.624, allocations: 3.76 MB / 381.8 MB, free: 1.605 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006114/0.6247, allocations: 0.829 MB / 382.6 MB, free: 0.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005164/0.6252, allocations: 135.4 kB / 382.7 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of SimCode: time 1.302e-06/0.6253, allocations: 0 / 382.7 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.934/3.559, allocations: 8.471 MB / 391.2 MB, free: 8.148 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat