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.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.095/2.095, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005695/0.0005696, allocations: 8 kB / 264.1 MB, free: 3.488 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4095/0.4101, allocations: 44.5 MB / 308.6 MB, free: 12.79 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1898/0.6, allocations: 76.39 MB / 384.9 MB, free: 296 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002911/0.6003, allocations: 75.95 kB / 385 MB, free: 220 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05261/0.653, allocations: 9.964 MB / 395 MB, free: 6.234 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.065e-06/0.653, allocations: 0 / 395 MB, free: 6.234 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.079e-05/0.6531, allocations: 4 kB / 395 MB, free: 6.23 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.002076/0.6552, allocations: 0.6236 MB / 395.6 MB, free: 5.559 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.217e-05/0.6553, allocations: 11.97 kB / 395.6 MB, free: 5.547 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001894/0.6555, allocations: 70.53 kB / 395.7 MB, free: 5.469 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000485/0.656, allocations: 59.47 kB / 395.8 MB, free: 5.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007222/0.6567, allocations: 282.7 kB / 396 MB, free: 5.094 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001905/0.6569, allocations: 92.05 kB / 396.1 MB, free: 4.988 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.6571, allocations: 35.91 kB / 396.2 MB, free: 4.953 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.6585, allocations: 412.9 kB / 396.6 MB, free: 4.539 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.975e-05/0.6586, allocations: 0 / 396.6 MB, free: 4.539 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.353e-05/0.6587, allocations: 16 kB / 396.6 MB, free: 4.523 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/0.6587, allocations: 8 kB / 396.6 MB, free: 4.516 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001917/0.6607, allocations: 470.2 kB / 397 MB, free: 4.051 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002527/0.6632, allocations: 0.9072 MB / 397.9 MB, free: 3.086 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001434/0.6647, allocations: 388.6 kB / 398.3 MB, free: 2.699 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.563e-05/0.6648, allocations: 12.42 kB / 398.3 MB, free: 2.688 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.6649, allocations: 38.95 kB / 398.4 MB, free: 2.641 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 4.178e-06/0.6649, allocations: 0 / 398.4 MB, free: 2.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.009962/0.6749, allocations: 2.148 MB / 400.5 MB, free: 388 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.415e-05/0.675, allocations: 85.67 kB / 400.6 MB, free: 284 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004852/0.6755, allocations: 215.4 kB / 400.8 MB, free: 60 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.6756, allocations: 33.7 kB / 400.9 MB, free: 20 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001532/0.6758, allocations: 141.1 kB / 401 MB, free: 15.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002388/0.6761, allocations: 177.4 kB / 401.2 MB, free: 15.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.031e-05/0.6761, allocations: 12 kB / 401.2 MB, free: 15.69 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.6763, allocations: 338.8 kB / 401.5 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008467/0.6772, allocations: 197 kB / 401.7 MB, free: 15.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009079/0.6781, allocations: 244.6 kB / 401.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008075/0.6789, allocations: 186.2 kB / 402.1 MB, free: 14.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.679, allocations: 3.953 kB / 402.1 MB, free: 14.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002314/0.6813, allocations: 0.6134 MB / 402.7 MB, free: 14.11 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/0.6814, allocations: 6.5 kB / 402.7 MB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.6814, allocations: 7.938 kB / 402.7 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001288/0.6827, allocations: 242.8 kB / 403 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006596/0.6834, allocations: 71.94 kB / 403.1 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006792/0.6902, allocations: 2.751 MB / 405.8 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006515/0.6909, allocations: 35.97 kB / 405.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.999e-05/0.691, allocations: 16 kB / 405.9 MB, free: 10.85 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0003348/0.6914, allocations: 165.8 kB / 406 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.6915, allocations: 31.62 kB / 406.1 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001668/0.6917, allocations: 47.3 kB / 406.1 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/0.6917, allocations: 11.95 kB / 406.1 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.6917, allocations: 3.938 kB / 406.1 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.6918, allocations: 7.922 kB / 406.1 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00405/0.6958, allocations: 1.252 MB / 407.4 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.6959, allocations: 3.984 kB / 407.4 MB, free: 9.254 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006856/0.6966, allocations: 67.89 kB / 407.4 MB, free: 9.188 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001201/0.6978, allocations: 232.7 kB / 407.7 MB, free: 8.957 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001245/0.698, allocations: 15.98 kB / 407.7 MB, free: 8.941 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006397/0.7044, allocations: 2.658 MB / 410.3 MB, free: 6.152 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.7044, allocations: 3.984 kB / 410.3 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003326/0.7078, allocations: 0.9434 MB / 411.3 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003699/0.7082, allocations: 152.7 kB / 411.4 MB, free: 5.012 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.7083, allocations: 16.02 kB / 411.5 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005787/0.7089, allocations: 43.97 kB / 411.5 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002738/0.7092, allocations: 72.3 kB / 411.6 MB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.782e-05/0.7093, allocations: 23.98 kB / 411.6 MB, free: 4.859 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003624/0.7097, allocations: 171.5 kB / 411.8 MB, free: 4.691 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7097, allocations: 0 / 411.8 MB, free: 4.691 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001003/0.7107, allocations: 163.9 kB / 411.9 MB, free: 4.531 MB / 346.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: 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 (31): * Single equations (assignments): 30 * 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.00432/0.715, allocations: 1.646 MB / 413.6 MB, free: 2.848 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00251/0.7176, allocations: 0.6878 MB / 414.3 MB, free: 2.145 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.7177, allocations: 0 / 414.3 MB, free: 2.145 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001644/0.7193, allocations: 479.7 kB / 414.7 MB, free: 1.664 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005998/0.72, allocations: 34.39 kB / 414.8 MB, free: 1.629 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2563/0.9763, allocations: 2.497 MB / 417.3 MB, free: 97.07 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.9768, allocations: 0.8083 MB / 418.1 MB, free: 96.38 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004651/0.9772, allocations: 61.98 kB / 418.1 MB, free: 96.37 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003129/0.9776, allocations: 101.5 kB / 418.2 MB, free: 96.37 MB / 346.7 MB Notification: Performance of SimCode: time 1.322e-06/0.9776, allocations: 0 / 418.2 MB, free: 96.37 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0436/1.021, allocations: 9.662 MB / 427.9 MB, free: 93.58 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002643/1.022, allocations: 220.9 kB / 428.1 MB, free: 93.33 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.094/4.116, allocations: 0 / 428.1 MB, free: 93.33 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat