Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.096/2.096, allocations: 194.8 MB / 211.1 MB, free: 7.594 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005602/0.0005602, allocations: 8 kB / 264.1 MB, free: 2.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.33, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1666/0.4967, allocations: 75.79 MB / 384.4 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/0.497, allocations: 75.95 kB / 384.4 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05811/0.5551, allocations: 9.338 MB / 393.8 MB, free: 7.332 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.5552, allocations: 0 / 393.8 MB, free: 7.332 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.896e-05/0.5552, allocations: 8 kB / 393.8 MB, free: 7.324 MB / 330.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.002123/0.5574, allocations: 0.5808 MB / 394.4 MB, free: 6.695 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.672e-05/0.5575, allocations: 8.031 kB / 394.4 MB, free: 6.688 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001688/0.5577, allocations: 66.53 kB / 394.4 MB, free: 6.613 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000647/0.5583, allocations: 47.61 kB / 394.5 MB, free: 6.566 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008304/0.5592, allocations: 282.4 kB / 394.7 MB, free: 6.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002331/0.5594, allocations: 87.95 kB / 394.8 MB, free: 6.152 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.5596, allocations: 27.98 kB / 394.9 MB, free: 6.125 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/0.5613, allocations: 369.3 kB / 395.2 MB, free: 5.742 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.424e-05/0.5613, allocations: 3.938 kB / 395.2 MB, free: 5.738 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.484e-05/0.5614, allocations: 16 kB / 395.2 MB, free: 5.723 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.5615, allocations: 4 kB / 395.2 MB, free: 5.719 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002143/0.5636, allocations: 413.9 kB / 395.7 MB, free: 5.316 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004082/0.5678, allocations: 1.163 MB / 396.8 MB, free: 4.082 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.5694, allocations: 339 kB / 397.1 MB, free: 3.738 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.881e-05/0.5695, allocations: 8 kB / 397.2 MB, free: 3.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.032e-05/0.5695, allocations: 34.56 kB / 397.2 MB, free: 3.688 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 4.518e-06/0.5695, allocations: 0 / 397.2 MB, free: 3.688 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.01185/0.5814, allocations: 1.886 MB / 399.1 MB, free: 1.688 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.5816, allocations: 88.84 kB / 399.2 MB, free: 1.582 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006029/0.5822, allocations: 186.5 kB / 399.3 MB, free: 1.391 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000128/0.5823, allocations: 37.7 kB / 399.4 MB, free: 1.348 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001942/0.5826, allocations: 136.6 kB / 399.5 MB, free: 1.207 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000281/0.5829, allocations: 153.9 kB / 399.7 MB, free: 1.055 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.977e-05/0.5829, allocations: 8 kB / 399.7 MB, free: 1.047 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000233/0.5832, allocations: 334.8 kB / 400 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009403/0.5841, allocations: 160.8 kB / 400.2 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/0.5852, allocations: 225.9 kB / 400.4 MB, free: 320 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000864/0.5861, allocations: 152.7 kB / 400.5 MB, free: 172 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.5861, allocations: 4 kB / 400.5 MB, free: 168 kB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.002829/0.589, allocations: 0.5512 MB / 401.1 MB, free: 15.6 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.589, allocations: 4 kB / 401.1 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.5891, allocations: 4 kB / 401.1 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001656/0.5908, allocations: 236.8 kB / 401.3 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006841/0.5915, allocations: 63.83 kB / 401.4 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008523/0.6, allocations: 2.708 MB / 404.1 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007212/0.6008, allocations: 27.98 kB / 404.1 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.6009, allocations: 28.05 kB / 404.1 MB, free: 12.4 MB / 346.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.000385/0.6013, allocations: 145.8 kB / 404.3 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.6015, allocations: 27.7 kB / 404.3 MB, free: 12.22 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001773/0.6017, allocations: 47 kB / 404.4 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.6017, allocations: 7.953 kB / 404.4 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.6018, allocations: 0 / 404.4 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.6018, allocations: 7.969 kB / 404.4 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004353/0.6062, allocations: 1.07 MB / 405.4 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/0.6062, allocations: 3.953 kB / 405.4 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005805/0.6068, allocations: 51.91 kB / 405.5 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00157/0.6084, allocations: 225.1 kB / 405.7 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001165/0.6086, allocations: 15.98 kB / 405.7 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008744/0.6173, allocations: 2.646 MB / 408.4 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/0.6174, allocations: 0 / 408.4 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003751/0.6212, allocations: 0.794 MB / 409.2 MB, free: 7.152 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004111/0.6217, allocations: 140.8 kB / 409.3 MB, free: 6.996 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/0.6218, allocations: 15.97 kB / 409.3 MB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006295/0.6224, allocations: 39.98 kB / 409.4 MB, free: 6.941 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003358/0.6228, allocations: 67.86 kB / 409.4 MB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.365e-05/0.6229, allocations: 19.98 kB / 409.5 MB, free: 6.855 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003961/0.6233, allocations: 151.4 kB / 409.6 MB, free: 6.707 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6233, allocations: 0 / 409.6 MB, free: 6.707 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0014/0.6247, allocations: 151.9 kB / 409.7 MB, free: 6.559 MB / 346.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.004304/0.6291, allocations: 1.382 MB / 411.1 MB, free: 5.141 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002846/0.632, allocations: 0.6173 MB / 411.7 MB, free: 4.508 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.632, allocations: 0 / 411.7 MB, free: 4.508 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001634/0.6337, allocations: 433.2 kB / 412.2 MB, free: 4.07 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006151/0.6343, allocations: 30.34 kB / 412.2 MB, free: 4.043 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009431/0.6438, allocations: 2.66 MB / 414.9 MB, free: 1.316 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007139/0.6446, allocations: 0.7803 MB / 415.6 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000606/0.6452, allocations: 58.95 kB / 415.7 MB, free: 460 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003712/0.6456, allocations: 83.39 kB / 415.8 MB, free: 376 kB / 346.7 MB Notification: Performance of SimCode: time 1.403e-06/0.6456, allocations: 0 / 415.8 MB, free: 376 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4075/1.053, allocations: 8.697 MB / 424.5 MB, free: 95.95 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002935/1.054, allocations: 228.5 kB / 424.7 MB, free: 95.69 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.439/4.492, allocations: 0 / 424.7 MB, free: 95.69 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat