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.Friction.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.Friction,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.902/1.902, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005028/0.0005028, allocations: 15.94 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1295, allocations: 44.5 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.445/0.5746, allocations: 76.11 MB / 384.6 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004157/0.5751, allocations: 74.34 kB / 384.7 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03643/0.6115, allocations: 7.513 MB / 392.2 MB, free: 13.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.6116, allocations: 0 / 392.2 MB, free: 13.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.769e-05/0.6116, allocations: 7.781 kB / 392.2 MB, free: 13.75 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001933/0.6136, allocations: 0.7324 MB / 393 MB, free: 13.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.6136, allocations: 11.41 kB / 393 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001901/0.6138, allocations: 89.11 kB / 393.1 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.614, allocations: 49.75 kB / 393.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.6145, allocations: 313.2 kB / 393.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.908e-05/0.6145, allocations: 33.44 kB / 393.5 MB, free: 12.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.6146, allocations: 43 kB / 393.5 MB, free: 12.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.616, allocations: 465.7 kB / 394 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/0.616, allocations: 7.781 kB / 394 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.976e-05/0.6161, allocations: 16.94 kB / 394 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.6161, allocations: 7.781 kB / 394 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.6175, allocations: 457.1 kB / 394.4 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003391/0.6209, allocations: 1.169 MB / 395.6 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.6223, allocations: 401.6 kB / 396 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.363e-05/0.6224, allocations: 10.84 kB / 396 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.6224, allocations: 38.69 kB / 396 MB, free: 12.42 MB / 314.7 MB Notification: Performance of pre-optimization done (n=52): time 3.687e-06/0.6225, allocations: 0 / 396 MB, free: 12.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.007866/0.6303, allocations: 2.354 MB / 398.4 MB, free: 11.61 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.6304, allocations: 59.44 kB / 398.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003676/0.6308, allocations: 229.7 kB / 398.7 MB, free: 11.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001077/0.6309, allocations: 51.28 kB / 398.7 MB, free: 11.42 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.631, allocations: 232.5 kB / 399 MB, free: 11.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002044/0.6313, allocations: 202.6 kB / 399.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.413e-05/0.6313, allocations: 10.88 kB / 399.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.973e-05/0.6314, allocations: 335.7 kB / 399.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007223/0.6322, allocations: 218.5 kB / 399.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007376/0.6329, allocations: 276.7 kB / 400 MB, free: 10.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006151/0.6335, allocations: 186 kB / 400.2 MB, free: 10.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.6336, allocations: 0 / 400.2 MB, free: 10.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002579/0.6361, allocations: 0.7243 MB / 400.9 MB, free: 10.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.6362, allocations: 3.938 kB / 400.9 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/0.6362, allocations: 0 / 400.9 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/0.6375, allocations: 406.1 kB / 401.3 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006737/0.6382, allocations: 99 kB / 401.4 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001538/0.6397, allocations: 1.325 MB / 402.7 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000967/0.6407, allocations: 102.5 kB / 402.8 MB, free: 9.562 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.773e-05/0.6408, allocations: 22.56 kB / 402.8 MB, free: 9.562 MB / 314.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: 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 (58): * Single equations (assignments): 54 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003466/0.6412, allocations: 171.1 kB / 403 MB, free: 9.438 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.6413, allocations: 43.8 kB / 403 MB, free: 9.414 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00247/0.6438, allocations: 0.7399 MB / 403.8 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.6438, allocations: 7.75 kB / 403.8 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.6439, allocations: 4.797 kB / 403.8 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.6439, allocations: 6.672 kB / 403.8 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003977/0.6479, allocations: 1.393 MB / 405.2 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.6479, allocations: 160 / 405.2 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006987/0.6486, allocations: 92.84 kB / 405.3 MB, free: 8.891 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00106/0.6497, allocations: 381.6 kB / 405.6 MB, free: 8.852 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.863e-05/0.6498, allocations: 17.33 kB / 405.7 MB, free: 8.852 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001442/0.6513, allocations: 1.302 MB / 407 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.6513, allocations: 0 / 407 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003187/0.6545, allocations: 1.089 MB / 408.1 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003573/0.6549, allocations: 160.8 kB / 408.2 MB, free: 7.359 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.6551, allocations: 18.09 kB / 408.2 MB, free: 7.359 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007588/0.6558, allocations: 89.33 kB / 408.3 MB, free: 7.352 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003181/0.6562, allocations: 113.6 kB / 408.4 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.659e-05/0.6562, allocations: 26.94 kB / 408.5 MB, free: 7.344 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00025/0.6565, allocations: 192.3 kB / 408.6 MB, free: 7.266 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6565, allocations: 0 / 408.6 MB, free: 7.266 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006934/0.6572, allocations: 140 kB / 408.8 MB, free: 7.258 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003646/0.6609, allocations: 2.014 MB / 410.8 MB, free: 6.004 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001952/0.6629, allocations: 0.6209 MB / 411.4 MB, free: 5.855 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.6629, allocations: 0 / 411.4 MB, free: 5.855 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.664, allocations: 319 kB / 411.7 MB, free: 5.801 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007487/0.6648, allocations: 67 kB / 411.8 MB, free: 5.785 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.6758, allocations: 3.701 MB / 415.5 MB, free: 3.926 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.6761, allocations: 0.8372 MB / 416.3 MB, free: 3.16 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003041/0.6765, allocations: 132.1 kB / 416.5 MB, free: 3.137 MB / 314.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6765, allocations: 0 / 416.5 MB, free: 3.137 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.148/3.824, allocations: 10.05 MB / 426.5 MB, free: 14.23 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat