Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.079/1.079, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.489e-05/3.541e-05, allocations: 4 kB / 154.4 MB, free: 13.11 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1699/0.17, allocations: 25.15 MB / 179.5 MB, free: 0.8281 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06587/0.2359, allocations: 36.91 MB / 216.4 MB, free: 12.22 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/0.2362, allocations: 67.97 kB / 216.5 MB, free: 12.15 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03229/0.2685, allocations: 6.822 MB / 223.3 MB, free: 5.305 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2686, allocations: 0 / 223.3 MB, free: 5.305 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.595e-05/0.2686, allocations: 11.94 kB / 223.3 MB, free: 5.293 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.002022/0.2707, allocations: 0.6818 MB / 224 MB, free: 4.566 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.2707, allocations: 12.03 kB / 224 MB, free: 4.555 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002056/0.271, allocations: 87.22 kB / 224.1 MB, free: 4.457 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.2711, allocations: 51.34 kB / 224.2 MB, free: 4.406 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005527/0.2717, allocations: 298.3 kB / 224.4 MB, free: 4.078 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.287e-05/0.2717, allocations: 28.78 kB / 224.5 MB, free: 4.051 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.2719, allocations: 43.98 kB / 224.5 MB, free: 4.008 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.273, allocations: 439.6 kB / 224.9 MB, free: 3.574 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.584e-05/0.2731, allocations: 7.906 kB / 225 MB, free: 3.566 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.246e-05/0.2732, allocations: 19.95 kB / 225 MB, free: 3.547 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.2732, allocations: 8 kB / 225 MB, free: 3.539 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/0.2744, allocations: 426.9 kB / 225.4 MB, free: 3.121 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003561/0.278, allocations: 1.147 MB / 226.5 MB, free: 1.914 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/0.2791, allocations: 334.3 kB / 226.9 MB, free: 1.582 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006554/0.2798, allocations: 241.5 kB / 227.1 MB, free: 1.344 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.914e-05/0.2799, allocations: 12.36 kB / 227.1 MB, free: 1.332 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.2799, allocations: 30.94 kB / 227.2 MB, free: 1.293 MB / 186.7 MB Notification: Performance of pre-optimization done (n=45): time 2.404e-06/0.2799, allocations: 0 / 227.2 MB, free: 1.293 MB / 186.7 MB Notification: Performance of matching and sorting (n=51): time 0.004774/0.2847, allocations: 1.631 MB / 228.8 MB, free: 15.57 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.2848, allocations: 55.84 kB / 228.8 MB, free: 15.5 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004157/0.2853, allocations: 239.5 kB / 229.1 MB, free: 15.26 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.2854, allocations: 41.7 kB / 229.1 MB, free: 15.21 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002107/0.2856, allocations: 242.9 kB / 229.4 MB, free: 14.97 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002346/0.2859, allocations: 177.5 kB / 229.5 MB, free: 14.8 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.504e-05/0.2859, allocations: 8 kB / 229.5 MB, free: 14.79 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2861, allocations: 338.8 kB / 229.9 MB, free: 14.45 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006084/0.2867, allocations: 209.1 kB / 230.1 MB, free: 14.25 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006635/0.2874, allocations: 255.8 kB / 230.3 MB, free: 13.99 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005061/0.2879, allocations: 171.2 kB / 230.5 MB, free: 13.82 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2879, allocations: 4 kB / 230.5 MB, free: 13.82 MB / 202.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002292/0.2902, allocations: 0.6837 MB / 231.2 MB, free: 13.12 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/0.2903, allocations: 9.562 kB / 231.2 MB, free: 13.12 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/0.2903, allocations: 0 / 231.2 MB, free: 13.12 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/0.2918, allocations: 0.513 MB / 231.7 MB, free: 12.6 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006594/0.2925, allocations: 87.83 kB / 231.8 MB, free: 12.51 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001919/0.2945, allocations: 1.394 MB / 233.2 MB, free: 11.07 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009459/0.2954, allocations: 100 kB / 233.3 MB, free: 10.97 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.285e-05/0.2956, allocations: 27.92 kB / 233.3 MB, free: 10.94 MB / 202.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * 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 8,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002122/0.2958, allocations: 132.9 kB / 233.4 MB, free: 10.8 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.2959, allocations: 39.53 kB / 233.5 MB, free: 10.77 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001665/0.2961, allocations: 55.47 kB / 233.5 MB, free: 10.71 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.2961, allocations: 8 kB / 233.5 MB, free: 10.71 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.2962, allocations: 4 kB / 233.5 MB, free: 10.7 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.2962, allocations: 0 / 233.5 MB, free: 10.7 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004049/0.3002, allocations: 1.365 MB / 234.9 MB, free: 9.258 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.3003, allocations: 0 / 234.9 MB, free: 9.258 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007149/0.301, allocations: 84.05 kB / 235 MB, free: 9.176 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001464/0.3025, allocations: 0.4973 MB / 235.5 MB, free: 8.672 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.648e-05/0.3026, allocations: 23.94 kB / 235.5 MB, free: 8.648 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001705/0.3043, allocations: 1.351 MB / 236.9 MB, free: 7.246 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.3043, allocations: 8.156 kB / 236.9 MB, free: 7.238 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002796/0.3072, allocations: 1.028 MB / 237.9 MB, free: 6.141 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003475/0.3075, allocations: 164.6 kB / 238 MB, free: 5.961 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.3077, allocations: 20 kB / 238.1 MB, free: 5.941 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007699/0.3085, allocations: 79.94 kB / 238.1 MB, free: 5.863 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003537/0.3088, allocations: 115.7 kB / 238.3 MB, free: 5.75 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.142e-05/0.3089, allocations: 19.98 kB / 238.3 MB, free: 5.73 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0003035/0.3093, allocations: 195.1 kB / 238.5 MB, free: 5.535 MB / 202.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.3093, allocations: 0 / 238.5 MB, free: 5.535 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0007173/0.31, allocations: 123.9 kB / 238.6 MB, free: 5.414 MB / 202.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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.003239/0.3133, allocations: 1.93 MB / 240.5 MB, free: 3.418 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001686/0.315, allocations: 0.5137 MB / 241 MB, free: 2.906 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.315, allocations: 0 / 241 MB, free: 2.906 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009074/0.3159, allocations: 280.3 kB / 241.3 MB, free: 2.633 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007248/0.3167, allocations: 70.84 kB / 241.4 MB, free: 2.566 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006549/0.3233, allocations: 1.453 MB / 242.8 MB, free: 1.051 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004722/0.3238, allocations: 0.8192 MB / 243.6 MB, free: 212 kB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003285/0.3241, allocations: 131.4 kB / 243.8 MB, free: 80 kB / 202.7 MB Notification: Performance of SimCode: time 1.183e-06/0.3241, allocations: 0 / 243.8 MB, free: 80 kB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.279/3.604, allocations: 9.106 MB / 252.9 MB, free: 51.5 MB / 202.7 MB