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.SimpleGearShift.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.SimpleGearShift,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.159/2.159, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004056/0.0004055, allocations: 8 kB / 233.3 MB, free: 0.8281 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09115/0.0916, allocations: 38.76 MB / 272.1 MB, free: 9.98 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3415/0.4332, allocations: 70.68 MB / 342.8 MB, free: 12.32 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/0.4336, allocations: 75.97 kB / 342.9 MB, free: 12.25 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03212/0.4657, allocations: 6.51 MB / 349.4 MB, free: 5.734 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.237e-06/0.4658, allocations: 4 kB / 349.4 MB, free: 5.73 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.906e-05/0.4658, allocations: 11.94 kB / 349.4 MB, free: 5.719 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.002254/0.4681, allocations: 0.7018 MB / 350.1 MB, free: 4.969 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/0.4682, allocations: 8.031 kB / 350.1 MB, free: 4.961 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002825/0.4685, allocations: 87.5 kB / 350.2 MB, free: 4.867 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.4686, allocations: 47.38 kB / 350.2 MB, free: 4.82 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005871/0.4692, allocations: 289.5 kB / 350.5 MB, free: 4.496 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.117e-05/0.4693, allocations: 32.89 kB / 350.5 MB, free: 4.461 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.4694, allocations: 36 kB / 350.6 MB, free: 4.426 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.4709, allocations: 454.3 kB / 351 MB, free: 3.977 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.679e-05/0.471, allocations: 7.891 kB / 351 MB, free: 3.969 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.387e-05/0.4711, allocations: 16 kB / 351 MB, free: 3.953 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.4711, allocations: 8 kB / 351.1 MB, free: 3.945 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.4728, allocations: 475.7 kB / 351.5 MB, free: 3.484 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004263/0.4771, allocations: 1.297 MB / 352.8 MB, free: 2.105 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.4786, allocations: 376.5 kB / 353.2 MB, free: 1.727 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.931e-05/0.4787, allocations: 12.36 kB / 353.2 MB, free: 1.715 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.4787, allocations: 34.94 kB / 353.2 MB, free: 1.672 MB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 3.176e-06/0.4787, allocations: 0 / 353.2 MB, free: 1.672 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.009845/0.4886, allocations: 2.469 MB / 355.7 MB, free: 15.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.4887, allocations: 55.84 kB / 355.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004098/0.4891, allocations: 225.6 kB / 356 MB, free: 14.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001384/0.4893, allocations: 45.7 kB / 356 MB, free: 14.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.4895, allocations: 227 kB / 356.2 MB, free: 14.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002667/0.4897, allocations: 169.7 kB / 356.4 MB, free: 14.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.746e-05/0.4898, allocations: 12 kB / 356.4 MB, free: 14.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002061/0.49, allocations: 334.8 kB / 356.7 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008919/0.4909, allocations: 233 kB / 357 MB, free: 13.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009288/0.4919, allocations: 307.2 kB / 357.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007668/0.4927, allocations: 195.5 kB / 357.5 MB, free: 13.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4927, allocations: 0 / 357.5 MB, free: 13.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003456/0.4961, allocations: 0.9069 MB / 358.4 MB, free: 12.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/0.4962, allocations: 4 kB / 358.4 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.4962, allocations: 0 / 358.4 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001994/0.4982, allocations: 0.5847 MB / 359 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005966/0.4989, allocations: 71.89 kB / 359 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004504/0.5034, allocations: 3.453 MB / 362.5 MB, free: 7.898 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.5046, allocations: 108.1 kB / 362.6 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.674e-05/0.5047, allocations: 20 kB / 362.6 MB, free: 7.773 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0004008/0.5051, allocations: 169.8 kB / 362.8 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.5052, allocations: 35.58 kB / 362.8 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003153/0.5084, allocations: 0.8183 MB / 363.6 MB, free: 6.727 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/0.5085, allocations: 4 kB / 363.6 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.5085, allocations: 4 kB / 363.6 MB, free: 6.719 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.556e-05/0.5085, allocations: 3.953 kB / 363.6 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003942/0.5124, allocations: 1.278 MB / 364.9 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.5125, allocations: 0 / 364.9 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005663/0.5131, allocations: 63.89 kB / 365 MB, free: 5.309 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001841/0.5149, allocations: 0.5552 MB / 365.5 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.5151, allocations: 27.91 kB / 365.6 MB, free: 4.719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004414/0.5195, allocations: 3.435 MB / 369 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.5196, allocations: 3.984 kB / 369 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003614/0.5232, allocations: 1.048 MB / 370 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003691/0.5236, allocations: 156.6 kB / 370.2 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.5238, allocations: 20 kB / 370.2 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009435/0.5247, allocations: 103.9 kB / 370.3 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003631/0.5251, allocations: 100.2 kB / 370.4 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.969e-05/0.5252, allocations: 23.97 kB / 370.4 MB, free: 15.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002871/0.5255, allocations: 178 kB / 370.6 MB, free: 15.33 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.645e-06/0.5255, allocations: 0 / 370.6 MB, free: 15.33 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007627/0.5263, allocations: 127.9 kB / 370.7 MB, free: 15.2 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.003847/0.5302, allocations: 1.585 MB / 372.3 MB, free: 13.58 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00252/0.5327, allocations: 0.8024 MB / 373.1 MB, free: 12.76 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.5328, allocations: 0 / 373.1 MB, free: 12.76 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.5342, allocations: 0.541 MB / 373.7 MB, free: 12.19 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006721/0.5349, allocations: 52.42 kB / 373.7 MB, free: 12.14 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008958/0.5439, allocations: 3.698 MB / 377.4 MB, free: 8.348 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005254/0.5445, allocations: 0.815 MB / 378.2 MB, free: 7.504 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003071/0.5448, allocations: 111.4 kB / 378.3 MB, free: 7.395 MB / 314.7 MB Notification: Performance of SimCode: time 1.183e-06/0.5448, allocations: 3.938 kB / 378.3 MB, free: 7.391 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.995/3.54, allocations: 9.598 MB / 387.9 MB, free: 13.79 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat