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.098/1.098, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003017/0.0003017, allocations: 7.984 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06178/0.06213, allocations: 25.16 MB / 183.6 MB, free: 5.887 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2292/0.2914, allocations: 37 MB / 220.6 MB, free: 5.492 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/0.2917, allocations: 68.98 kB / 220.7 MB, free: 5.48 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03047/0.3222, allocations: 6.819 MB / 227.5 MB, free: 2.852 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.3222, allocations: 5.281 kB / 227.5 MB, free: 2.848 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.756e-05/0.3223, allocations: 6.875 kB / 227.5 MB, free: 2.848 MB / 170.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.002072/0.3244, allocations: 0.7252 MB / 228.2 MB, free: 2.277 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/0.3244, allocations: 9.812 kB / 228.2 MB, free: 2.277 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002288/0.3247, allocations: 87.77 kB / 228.3 MB, free: 2.223 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.3248, allocations: 52.61 kB / 228.4 MB, free: 2.195 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004874/0.3253, allocations: 298.7 kB / 228.7 MB, free: 1.902 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.178e-05/0.3254, allocations: 28.06 kB / 228.7 MB, free: 1.883 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.3256, allocations: 46.41 kB / 228.7 MB, free: 1.852 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.3268, allocations: 464 kB / 229.2 MB, free: 1.52 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.154e-05/0.3269, allocations: 11.94 kB / 229.2 MB, free: 1.508 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.821e-05/0.327, allocations: 19.89 kB / 229.2 MB, free: 1.5 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.327, allocations: 8 kB / 229.2 MB, free: 1.492 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.3285, allocations: 474.3 kB / 229.7 MB, free: 1.16 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003435/0.3319, allocations: 1.146 MB / 230.8 MB, free: 184 kB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.3332, allocations: 367.2 kB / 231.2 MB, free: 15.92 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.686e-05/0.3333, allocations: 4.375 kB / 231.2 MB, free: 15.91 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.137e-05/0.3334, allocations: 38.19 kB / 231.2 MB, free: 15.87 MB / 186.7 MB Notification: Performance of pre-optimization done (n=45): time 4.027e-06/0.3334, allocations: 0 / 231.2 MB, free: 15.87 MB / 186.7 MB Notification: Performance of matching and sorting (n=51): time 0.008954/0.3424, allocations: 2.337 MB / 233.6 MB, free: 13.84 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.362e-05/0.3425, allocations: 63.59 kB / 233.6 MB, free: 13.77 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004675/0.343, allocations: 241.7 kB / 233.9 MB, free: 13.56 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001388/0.3431, allocations: 40.7 kB / 233.9 MB, free: 13.53 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001926/0.3433, allocations: 239.5 kB / 234.1 MB, free: 13.32 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002611/0.3436, allocations: 177.2 kB / 234.3 MB, free: 13.17 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.441e-05/0.3437, allocations: 11.06 kB / 234.3 MB, free: 13.17 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.3439, allocations: 336.6 kB / 234.7 MB, free: 12.84 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008421/0.3447, allocations: 235.7 kB / 234.9 MB, free: 12.69 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008873/0.3456, allocations: 275.1 kB / 235.2 MB, free: 12.5 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007114/0.3464, allocations: 202.3 kB / 235.3 MB, free: 12.37 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.3464, allocations: 0 / 235.3 MB, free: 12.37 MB / 186.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002661/0.349, allocations: 0.7294 MB / 236.1 MB, free: 11.83 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.327e-05/0.3491, allocations: 10.97 kB / 236.1 MB, free: 11.82 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.3492, allocations: 0 / 236.1 MB, free: 11.82 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001619/0.3508, allocations: 0.5183 MB / 236.6 MB, free: 11.39 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000692/0.3515, allocations: 91.83 kB / 236.7 MB, free: 11.3 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002082/0.3536, allocations: 1.388 MB / 238.1 MB, free: 9.996 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009939/0.3547, allocations: 106.3 kB / 238.2 MB, free: 9.902 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.3548, allocations: 19.05 kB / 238.2 MB, free: 9.887 MB / 186.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 (53): * Single equations (assignments): 51 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003842/0.3552, allocations: 171.8 kB / 238.4 MB, free: 9.742 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.3554, allocations: 39.56 kB / 238.4 MB, free: 9.703 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001583/0.3555, allocations: 51.25 kB / 238.5 MB, free: 9.688 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/0.3556, allocations: 8 kB / 238.5 MB, free: 9.68 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.3556, allocations: 4 kB / 238.5 MB, free: 9.676 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.3556, allocations: 3.984 kB / 238.5 MB, free: 9.672 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004886/0.3605, allocations: 1.42 MB / 239.9 MB, free: 8.484 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.3605, allocations: 0 / 239.9 MB, free: 8.484 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007323/0.3613, allocations: 83.69 kB / 240 MB, free: 8.406 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001546/0.3629, allocations: 0.5037 MB / 240.5 MB, free: 7.984 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001293/0.363, allocations: 19.67 kB / 240.5 MB, free: 7.973 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001937/0.365, allocations: 1.365 MB / 241.9 MB, free: 6.672 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/0.365, allocations: 4.031 kB / 241.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0036/0.3686, allocations: 1.114 MB / 243 MB, free: 5.762 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004323/0.3691, allocations: 163.9 kB / 243.1 MB, free: 5.602 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001453/0.3693, allocations: 23.31 kB / 243.2 MB, free: 5.59 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008314/0.3701, allocations: 79.73 kB / 243.2 MB, free: 5.52 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00039/0.3705, allocations: 103.2 kB / 243.3 MB, free: 5.43 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.409e-05/0.3707, allocations: 31.72 kB / 243.4 MB, free: 5.406 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0003171/0.371, allocations: 188.8 kB / 243.6 MB, free: 5.242 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.371, allocations: 4 kB / 243.6 MB, free: 5.238 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007892/0.3718, allocations: 123.3 kB / 243.7 MB, free: 5.133 MB / 186.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 (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.004025/0.3758, allocations: 2.014 MB / 245.7 MB, free: 3.332 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002101/0.378, allocations: 0.5528 MB / 246.3 MB, free: 2.938 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.378, allocations: 4 kB / 246.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/0.3792, allocations: 308.4 kB / 246.6 MB, free: 2.715 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008002/0.3801, allocations: 67.98 kB / 246.6 MB, free: 2.668 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/0.393, allocations: 3.671 MB / 250.3 MB, free: 15.02 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005807/0.3936, allocations: 0.8191 MB / 251.1 MB, free: 14.18 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003829/0.394, allocations: 135.3 kB / 251.2 MB, free: 14.05 MB / 202.7 MB Notification: Performance of SimCode: time 1.683e-06/0.394, allocations: 4 kB / 251.3 MB, free: 14.04 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.523/3.917, allocations: 9.157 MB / 260.4 MB, free: 4.883 MB / 202.7 MB