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.SimpleGearShift.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.SimpleGearShift,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.248/2.248, allocations: 194.9 MB / 211.1 MB, free: 8.75 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004822/0.0004824, allocations: 12 kB / 264.1 MB, free: 3.668 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2976, allocations: 44.5 MB / 308.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1727/0.4704, allocations: 76.03 MB / 384.6 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004151/0.4708, allocations: 71.97 kB / 384.7 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04889/0.5198, allocations: 6.574 MB / 391.2 MB, free: 10 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5198, allocations: 3.938 kB / 391.2 MB, free: 9.996 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.135e-05/0.5199, allocations: 11.94 kB / 391.3 MB, free: 9.984 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.002202/0.5221, allocations: 0.6901 MB / 391.9 MB, free: 9.242 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.5222, allocations: 8.031 kB / 392 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002453/0.5224, allocations: 79.44 kB / 392 MB, free: 9.148 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.5226, allocations: 43.47 kB / 392.1 MB, free: 9.105 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005586/0.5231, allocations: 297.4 kB / 392.4 MB, free: 8.773 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.95e-05/0.5232, allocations: 32.98 kB / 392.4 MB, free: 8.742 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.5233, allocations: 35.91 kB / 392.4 MB, free: 8.707 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.5248, allocations: 434.3 kB / 392.9 MB, free: 8.277 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.11e-05/0.5249, allocations: 0 / 392.9 MB, free: 8.277 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.363e-05/0.5249, allocations: 16 kB / 392.9 MB, free: 8.262 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.192e-05/0.525, allocations: 8 kB / 392.9 MB, free: 8.254 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.5267, allocations: 435.7 kB / 393.3 MB, free: 7.828 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004367/0.5311, allocations: 1.308 MB / 394.6 MB, free: 6.449 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.5325, allocations: 376.5 kB / 395 MB, free: 6.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.33e-05/0.5326, allocations: 8.438 kB / 395 MB, free: 6.062 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.135e-05/0.5326, allocations: 46.95 kB / 395 MB, free: 6.008 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 3.066e-06/0.5327, allocations: 0 / 395 MB, free: 6.008 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.009303/0.542, allocations: 2.296 MB / 397.3 MB, free: 3.578 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/0.5421, allocations: 63.84 kB / 397.4 MB, free: 3.504 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003604/0.5424, allocations: 197.8 kB / 397.6 MB, free: 3.305 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.5426, allocations: 49.69 kB / 397.6 MB, free: 3.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.5427, allocations: 160.7 kB / 397.8 MB, free: 3.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002301/0.543, allocations: 169.7 kB / 398 MB, free: 2.922 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.838e-05/0.5431, allocations: 12 kB / 398 MB, free: 2.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.5432, allocations: 346.8 kB / 398.3 MB, free: 2.562 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008448/0.5441, allocations: 221 kB / 398.5 MB, free: 2.348 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009123/0.545, allocations: 280.6 kB / 398.8 MB, free: 2.055 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007363/0.5458, allocations: 182.1 kB / 399 MB, free: 1.883 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.5458, allocations: 0 / 399 MB, free: 1.883 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003211/0.549, allocations: 0.7546 MB / 399.7 MB, free: 1.109 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.931e-05/0.5491, allocations: 7.953 kB / 399.7 MB, free: 1.102 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.282e-05/0.5491, allocations: 7.984 kB / 399.7 MB, free: 1.094 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00176/0.5509, allocations: 456.5 kB / 400.2 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00058/0.5515, allocations: 71.91 kB / 400.3 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00428/0.5558, allocations: 3.394 MB / 403.7 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.557, allocations: 104.1 kB / 403.8 MB, free: 12.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.5571, allocations: 23.95 kB / 403.8 MB, free: 12.76 MB / 346.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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.000378/0.5575, allocations: 177.7 kB / 404 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.5576, allocations: 35.53 kB / 404 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003118/0.5607, allocations: 0.7576 MB / 404.7 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/0.5608, allocations: 4 kB / 404.8 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.5608, allocations: 11.94 kB / 404.8 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.807e-05/0.5609, allocations: 3.984 kB / 404.8 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003833/0.5647, allocations: 1.213 MB / 406 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.5647, allocations: 0 / 406 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005729/0.5653, allocations: 55.91 kB / 406 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001624/0.567, allocations: 446.1 kB / 406.5 MB, free: 9.957 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.5671, allocations: 19.97 kB / 406.5 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004195/0.5713, allocations: 3.363 MB / 409.9 MB, free: 6.281 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.5714, allocations: 0 / 409.9 MB, free: 6.281 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003403/0.5748, allocations: 0.9734 MB / 410.8 MB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003588/0.5752, allocations: 156.6 kB / 411 MB, free: 5.117 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.5753, allocations: 23.95 kB / 411 MB, free: 5.094 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009355/0.5763, allocations: 95.91 kB / 411.1 MB, free: 5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003584/0.5767, allocations: 112.1 kB / 411.2 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.828e-05/0.5768, allocations: 27.97 kB / 411.2 MB, free: 4.859 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002712/0.577, allocations: 170 kB / 411.4 MB, free: 4.695 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5771, allocations: 4 kB / 411.4 MB, free: 4.691 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007657/0.5778, allocations: 127.9 kB / 411.5 MB, free: 4.566 MB / 346.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.003912/0.5818, allocations: 1.548 MB / 413.1 MB, free: 2.988 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002644/0.5844, allocations: 0.8249 MB / 413.9 MB, free: 2.121 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.5845, allocations: 0 / 413.9 MB, free: 2.121 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001508/0.586, allocations: 0.5331 MB / 414.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006926/0.5867, allocations: 52.52 kB / 414.5 MB, free: 1.512 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2968/0.8835, allocations: 3.494 MB / 418 MB, free: 96.2 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004263/0.884, allocations: 0.8088 MB / 418.8 MB, free: 95.51 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002579/0.8843, allocations: 31.53 kB / 418.8 MB, free: 95.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002492/0.8846, allocations: 106.2 kB / 418.9 MB, free: 95.5 MB / 346.7 MB Notification: Performance of SimCode: time 9.52e-07/0.8846, allocations: 0 / 418.9 MB, free: 95.5 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05265/0.9372, allocations: 11.5 MB / 430.4 MB, free: 90.59 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002512/0.9376, allocations: 210.2 kB / 430.6 MB, free: 90.36 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.275/4.212, allocations: 3.938 kB / 430.6 MB, free: 90.35 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat