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.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_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.671/1.671, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003908/0.0003909, allocations: 8 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08565/0.0861, allocations: 38.76 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3426/0.4287, allocations: 70.46 MB / 342.6 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/0.4291, allocations: 68.28 kB / 342.6 MB, free: 2.996 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05642/0.4855, allocations: 9.347 MB / 352 MB, free: 11.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4856, allocations: 0 / 352 MB, free: 11.09 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.023e-05/0.4856, allocations: 8 kB / 352 MB, free: 11.08 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.002031/0.4877, allocations: 0.5861 MB / 352.6 MB, free: 10.46 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.003e-05/0.4878, allocations: 12.03 kB / 352.6 MB, free: 10.45 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001589/0.488, allocations: 64.8 kB / 352.6 MB, free: 10.4 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006454/0.4886, allocations: 51.59 kB / 352.7 MB, free: 10.35 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007805/0.4894, allocations: 274.7 kB / 353 MB, free: 10.06 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002197/0.4897, allocations: 94.97 kB / 353.1 MB, free: 9.969 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.4898, allocations: 31.28 kB / 353.1 MB, free: 9.945 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.4914, allocations: 376.8 kB / 353.5 MB, free: 9.656 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.905e-05/0.4914, allocations: 0 / 353.5 MB, free: 9.656 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.771e-05/0.4915, allocations: 11.12 kB / 353.5 MB, free: 9.652 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/0.4916, allocations: 8 kB / 353.5 MB, free: 9.645 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001975/0.4935, allocations: 413.8 kB / 353.9 MB, free: 9.336 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003746/0.4973, allocations: 1.171 MB / 355.1 MB, free: 8.324 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001481/0.4988, allocations: 335.3 kB / 355.4 MB, free: 8.086 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.174e-05/0.4989, allocations: 4 kB / 355.4 MB, free: 8.082 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.448e-05/0.499, allocations: 42.19 kB / 355.4 MB, free: 8.035 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 4.439e-06/0.499, allocations: 0 / 355.4 MB, free: 8.035 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.011/0.51, allocations: 1.879 MB / 357.3 MB, free: 6.414 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.235e-05/0.5102, allocations: 88.86 kB / 357.4 MB, free: 6.309 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005358/0.5107, allocations: 192.6 kB / 357.6 MB, free: 6.141 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.609e-05/0.5108, allocations: 32.33 kB / 357.6 MB, free: 6.109 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.511, allocations: 205.6 kB / 357.8 MB, free: 5.922 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/0.5113, allocations: 152.4 kB / 358 MB, free: 5.789 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.319e-05/0.5114, allocations: 6.812 kB / 358 MB, free: 5.789 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001995/0.5116, allocations: 329 kB / 358.3 MB, free: 5.465 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008988/0.5125, allocations: 162.7 kB / 358.4 MB, free: 5.359 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008878/0.5134, allocations: 227.4 kB / 358.7 MB, free: 5.176 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006325/0.5141, allocations: 160.3 kB / 358.8 MB, free: 5.078 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.5141, allocations: 0 / 358.8 MB, free: 5.078 MB / 282.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001989/0.5161, allocations: 0.5455 MB / 359.4 MB, free: 4.68 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.5161, allocations: 7.953 kB / 359.4 MB, free: 4.672 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.128e-06/0.5161, allocations: 0 / 359.4 MB, free: 4.672 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001236/0.5174, allocations: 233.3 kB / 359.6 MB, free: 4.492 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004593/0.5179, allocations: 55.41 kB / 359.7 MB, free: 4.441 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006287/0.5242, allocations: 2.701 MB / 362.4 MB, free: 2.191 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005477/0.5248, allocations: 35.77 kB / 362.4 MB, free: 2.16 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-05/0.5249, allocations: 19.94 kB / 362.4 MB, free: 2.145 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.0003013/0.5252, allocations: 156.9 kB / 362.6 MB, free: 2.004 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.5253, allocations: 23.72 kB / 362.6 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001393/0.5254, allocations: 45.11 kB / 362.6 MB, free: 1.969 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.5255, allocations: 4 kB / 362.6 MB, free: 1.965 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.5255, allocations: 3.938 kB / 362.6 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.5255, allocations: 3.938 kB / 362.6 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/0.5285, allocations: 1.075 MB / 363.7 MB, free: 1.098 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.5286, allocations: 0 / 363.7 MB, free: 1.098 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004418/0.529, allocations: 43.91 kB / 363.8 MB, free: 1.055 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001097/0.5302, allocations: 231.1 kB / 364 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.786e-05/0.5302, allocations: 15.92 kB / 364 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005847/0.5361, allocations: 2.65 MB / 366.7 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5361, allocations: 0 / 366.7 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002559/0.5387, allocations: 0.8023 MB / 367.5 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002557/0.539, allocations: 144.2 kB / 367.6 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.759e-05/0.5391, allocations: 10.31 kB / 367.6 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004577/0.5396, allocations: 29.72 kB / 367.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002658/0.5399, allocations: 66.88 kB / 367.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.583e-05/0.5399, allocations: 19.8 kB / 367.7 MB, free: 13.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003028/0.5402, allocations: 165.3 kB / 367.9 MB, free: 13.67 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.5403, allocations: 0 / 367.9 MB, free: 13.67 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009853/0.5413, allocations: 140.1 kB / 368 MB, free: 13.55 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.00332/0.5446, allocations: 1.383 MB / 369.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00208/0.5467, allocations: 0.6131 MB / 370 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.5468, allocations: 0 / 370 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001208/0.548, allocations: 426.8 kB / 370.4 MB, free: 11.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004968/0.5485, allocations: 31.94 kB / 370.5 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006323/0.5549, allocations: 2.682 MB / 373.1 MB, free: 9.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005298/0.5555, allocations: 0.7841 MB / 373.9 MB, free: 8.348 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000349/0.5558, allocations: 92.56 kB / 374 MB, free: 8.305 MB / 298.7 MB Notification: Performance of SimCode: time 1.473e-06/0.5558, allocations: 4 kB / 374 MB, free: 8.301 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.012/3.568, allocations: 6.096 MB / 380.1 MB, free: 2.246 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat