Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.993/1.993, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005656/0.0005657, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1253, allocations: 44.5 MB / 308.5 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4453/0.5707, allocations: 76.03 MB / 384.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003141/0.5711, allocations: 71.27 kB / 384.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03032/0.6014, allocations: 6.583 MB / 391.2 MB, free: 13.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.6015, allocations: 0 / 391.2 MB, free: 13.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.725e-05/0.6015, allocations: 7.781 kB / 391.2 MB, free: 13.66 MB / 314.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.00201/0.6035, allocations: 0.6935 MB / 391.9 MB, free: 13.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.6036, allocations: 11.75 kB / 391.9 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002151/0.6038, allocations: 79.62 kB / 392 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.604, allocations: 38.56 kB / 392 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004738/0.6044, allocations: 297.4 kB / 392.3 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.742e-05/0.6045, allocations: 25.16 kB / 392.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.6046, allocations: 36.94 kB / 392.4 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.6059, allocations: 437.8 kB / 392.8 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.346e-05/0.606, allocations: 0 / 392.8 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.586e-05/0.6061, allocations: 13.28 kB / 392.8 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.6061, allocations: 7.781 kB / 392.8 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.6076, allocations: 442.9 kB / 393.3 MB, free: 12.81 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00396/0.6116, allocations: 1.309 MB / 394.6 MB, free: 12.35 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.6128, allocations: 375.6 kB / 395 MB, free: 12.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.228e-05/0.613, allocations: 11.36 kB / 395 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.613, allocations: 42.27 kB / 395 MB, free: 12.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 4.088e-06/0.613, allocations: 0 / 395 MB, free: 12.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.008516/0.6216, allocations: 2.303 MB / 397.3 MB, free: 11.47 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.6217, allocations: 55.72 kB / 397.4 MB, free: 11.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.622, allocations: 200.6 kB / 397.6 MB, free: 11.31 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.6221, allocations: 44.41 kB / 397.6 MB, free: 11.28 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.6222, allocations: 225.8 kB / 397.8 MB, free: 11.1 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002039/0.6224, allocations: 166.9 kB / 398 MB, free: 11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.472e-05/0.6225, allocations: 14.89 kB / 398 MB, free: 11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.045e-05/0.6226, allocations: 331.8 kB / 398.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007701/0.6234, allocations: 225.5 kB / 398.5 MB, free: 10.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007815/0.6242, allocations: 284.3 kB / 398.8 MB, free: 10.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006508/0.6249, allocations: 177.5 kB / 399 MB, free: 10.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.6249, allocations: 0 / 399 MB, free: 10.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002945/0.6279, allocations: 0.741 MB / 399.7 MB, free: 10.51 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.6279, allocations: 7.797 kB / 399.7 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.154e-05/0.628, allocations: 3.875 kB / 399.7 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001581/0.6296, allocations: 454.1 kB / 400.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005958/0.6302, allocations: 83.73 kB / 400.3 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003666/0.6339, allocations: 3.394 MB / 403.7 MB, free: 7.383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.6351, allocations: 106.3 kB / 403.8 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.6353, allocations: 26.45 kB / 403.8 MB, free: 7.375 MB / 314.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.0003943/0.6357, allocations: 165.3 kB / 404 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.6358, allocations: 30.75 kB / 404 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002852/0.6387, allocations: 0.7706 MB / 404.8 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.234e-05/0.6387, allocations: 3.781 kB / 404.8 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.6388, allocations: 0 / 404.8 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.6388, allocations: 7.156 kB / 404.8 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003372/0.6422, allocations: 1.205 MB / 406 MB, free: 6.766 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.6422, allocations: 0 / 406 MB, free: 6.766 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005663/0.6428, allocations: 66.17 kB / 406 MB, free: 6.758 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001489/0.6443, allocations: 433.2 kB / 406.5 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001251/0.6445, allocations: 22.22 kB / 406.5 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003801/0.6483, allocations: 3.367 MB / 409.8 MB, free: 19.65 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.6484, allocations: 3.938 kB / 409.9 MB, free: 19.65 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003278/0.6517, allocations: 0.9733 MB / 410.8 MB, free: 19.45 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000392/0.6521, allocations: 159.7 kB / 411 MB, free: 19.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.6523, allocations: 16.02 kB / 411 MB, free: 19.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009366/0.6532, allocations: 104.6 kB / 411.1 MB, free: 19.33 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000365/0.6536, allocations: 102.2 kB / 411.2 MB, free: 19.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.236e-05/0.6537, allocations: 29.72 kB / 411.2 MB, free: 19.32 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002831/0.654, allocations: 169.8 kB / 411.4 MB, free: 19.24 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.654, allocations: 0 / 411.4 MB, free: 19.24 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008696/0.6549, allocations: 129.2 kB / 411.5 MB, free: 19.23 MB / 330.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.00387/0.6588, allocations: 1.557 MB / 413.1 MB, free: 18.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002555/0.6614, allocations: 0.8247 MB / 413.9 MB, free: 18.19 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.6615, allocations: 0 / 413.9 MB, free: 18.19 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001467/0.663, allocations: 0.5302 MB / 414.4 MB, free: 17.95 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006653/0.6637, allocations: 47.44 kB / 414.5 MB, free: 17.94 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008272/0.672, allocations: 3.533 MB / 418 MB, free: 15.81 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005178/0.6725, allocations: 0.812 MB / 418.8 MB, free: 15.06 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003151/0.6729, allocations: 109.1 kB / 418.9 MB, free: 15.04 MB / 330.7 MB Notification: Performance of SimCode: time 1.443e-06/0.6729, allocations: 0 / 418.9 MB, free: 15.04 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.113/3.786, allocations: 9.96 MB / 428.9 MB, free: 10.01 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat