Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.825/1.825, allocations: 171.1 MB / 186.1 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003631, allocations: 8 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.087/0.0874, allocations: 38.76 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.367/0.4544, allocations: 70.69 MB / 342.8 MB, free: 2.23 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003656/0.4549, allocations: 74.16 kB / 342.9 MB, free: 2.191 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03111/0.486, allocations: 6.517 MB / 349.4 MB, free: 12.54 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4861, allocations: 0 / 349.4 MB, free: 12.54 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.836e-05/0.4861, allocations: 11.98 kB / 349.4 MB, free: 12.53 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.002092/0.4882, allocations: 0.7029 MB / 350.1 MB, free: 11.8 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/0.4883, allocations: 8.031 kB / 350.1 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001815/0.4885, allocations: 83.77 kB / 350.2 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001317/0.4886, allocations: 43.44 kB / 350.2 MB, free: 11.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00052/0.4891, allocations: 294 kB / 350.5 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.848e-05/0.4892, allocations: 27.52 kB / 350.6 MB, free: 11.36 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.4893, allocations: 41.06 kB / 350.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.4907, allocations: 452.6 kB / 351 MB, free: 11.01 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.4908, allocations: 3.906 kB / 351 MB, free: 11.01 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.642e-05/0.4909, allocations: 15.31 kB / 351.1 MB, free: 11 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.4909, allocations: 11.98 kB / 351.1 MB, free: 10.99 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001602/0.4925, allocations: 469.5 kB / 351.5 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003889/0.4964, allocations: 1.316 MB / 352.8 MB, free: 9.531 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001298/0.4977, allocations: 369.5 kB / 353.2 MB, free: 9.273 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.371e-05/0.4978, allocations: 4.375 kB / 353.2 MB, free: 9.27 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/0.4979, allocations: 38.25 kB / 353.2 MB, free: 9.227 MB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 3.036e-06/0.4979, allocations: 0 / 353.2 MB, free: 9.227 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.01043/0.5083, allocations: 2.469 MB / 355.7 MB, free: 7.062 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.23e-05/0.5084, allocations: 59.84 kB / 355.8 MB, free: 6.992 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003695/0.5088, allocations: 224.1 kB / 356 MB, free: 6.797 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.907e-05/0.5089, allocations: 47.95 kB / 356 MB, free: 6.754 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.5091, allocations: 176.7 kB / 356.2 MB, free: 6.605 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002024/0.5093, allocations: 162.2 kB / 356.4 MB, free: 6.469 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.453e-05/0.5094, allocations: 11.5 kB / 356.4 MB, free: 6.465 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.5095, allocations: 337 kB / 356.7 MB, free: 6.141 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008164/0.5104, allocations: 243.1 kB / 357 MB, free: 5.98 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008934/0.5113, allocations: 302.5 kB / 357.2 MB, free: 5.754 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007167/0.512, allocations: 206.8 kB / 357.4 MB, free: 5.621 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.512, allocations: 0 / 357.4 MB, free: 5.621 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003461/0.5155, allocations: 0.9018 MB / 358.4 MB, free: 4.914 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.5155, allocations: 8 kB / 358.4 MB, free: 4.906 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.5156, allocations: 0 / 358.4 MB, free: 4.906 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001916/0.5175, allocations: 0.5798 MB / 358.9 MB, free: 4.426 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006082/0.5181, allocations: 79.14 kB / 359 MB, free: 4.352 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004186/0.5223, allocations: 3.461 MB / 362.5 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.5235, allocations: 98.94 kB / 362.6 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/0.5236, allocations: 31.23 kB / 362.6 MB, free: 0.7227 MB / 282.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.0003547/0.524, allocations: 163.1 kB / 362.8 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.5241, allocations: 39.48 kB / 362.8 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003004/0.5271, allocations: 0.8123 MB / 363.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.5272, allocations: 4 kB / 363.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.5272, allocations: 4 kB / 363.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.5272, allocations: 7.938 kB / 363.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003614/0.5308, allocations: 1.271 MB / 364.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/0.5309, allocations: 4 kB / 364.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005577/0.5314, allocations: 67.72 kB / 365 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001758/0.5332, allocations: 0.5547 MB / 365.5 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.084e-05/0.5333, allocations: 15.23 kB / 365.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004014/0.5373, allocations: 3.438 MB / 369 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5374, allocations: 4.062 kB / 369 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003361/0.5408, allocations: 1.048 MB / 370 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003547/0.5412, allocations: 153.1 kB / 370.2 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/0.5413, allocations: 18.25 kB / 370.2 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009167/0.5422, allocations: 102.7 kB / 370.3 MB, free: 9.793 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000364/0.5426, allocations: 105.8 kB / 370.4 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.254e-05/0.5427, allocations: 27.41 kB / 370.4 MB, free: 9.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002567/0.543, allocations: 171.3 kB / 370.6 MB, free: 9.535 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.543, allocations: 4 kB / 370.6 MB, free: 9.531 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007537/0.5438, allocations: 124.8 kB / 370.7 MB, free: 9.426 MB / 298.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.003724/0.5475, allocations: 1.593 MB / 372.3 MB, free: 8.086 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002425/0.55, allocations: 0.7966 MB / 373.1 MB, free: 7.434 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.55, allocations: 2.938 kB / 373.1 MB, free: 7.434 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001422/0.5514, allocations: 0.5353 MB / 373.6 MB, free: 6.957 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006434/0.5521, allocations: 63.11 kB / 373.7 MB, free: 6.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008628/0.5607, allocations: 3.668 MB / 377.4 MB, free: 3.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/0.5613, allocations: 0.8149 MB / 378.2 MB, free: 2.836 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002518/0.5615, allocations: 31.28 kB / 378.2 MB, free: 2.809 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.5618, allocations: 116.2 kB / 378.3 MB, free: 2.766 MB / 298.7 MB Notification: Performance of SimCode: time 8.61e-07/0.5618, allocations: 0 / 378.3 MB, free: 2.766 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04708/0.6089, allocations: 11.2 MB / 389.5 MB, free: 7.637 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003397/0.6093, allocations: 209.1 kB / 389.7 MB, free: 7.402 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.056/3.666, allocations: 0 / 389.7 MB, free: 7.402 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat