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.Friction.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.Friction,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 171.2 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003703, allocations: 8 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08942/0.08983, allocations: 38.77 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3724/0.4623, allocations: 70.79 MB / 342.9 MB, free: 2.156 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/0.4626, allocations: 70.59 kB / 343 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03515/0.4978, allocations: 7.487 MB / 350.5 MB, free: 11.69 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.4979, allocations: 0 / 350.5 MB, free: 11.69 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.888e-05/0.4979, allocations: 8 kB / 350.5 MB, free: 11.68 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002148/0.5001, allocations: 0.7386 MB / 351.2 MB, free: 10.92 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.5001, allocations: 8.031 kB / 351.2 MB, free: 10.91 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002199/0.5004, allocations: 90.42 kB / 351.3 MB, free: 10.84 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.5005, allocations: 55.34 kB / 351.4 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000591/0.5011, allocations: 310.3 kB / 351.7 MB, free: 10.47 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.578e-05/0.5012, allocations: 32.31 kB / 351.7 MB, free: 10.45 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.5013, allocations: 52.16 kB / 351.7 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.5028, allocations: 479.9 kB / 352.2 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.747e-05/0.5029, allocations: 0.625 kB / 352.2 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.968e-05/0.503, allocations: 19.25 kB / 352.2 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.322e-05/0.503, allocations: 12 kB / 352.2 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.5047, allocations: 494.3 kB / 352.7 MB, free: 9.707 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003674/0.5084, allocations: 1.184 MB / 353.9 MB, free: 8.707 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/0.5098, allocations: 383.3 kB / 354.3 MB, free: 8.445 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.729e-05/0.5099, allocations: 4.438 kB / 354.3 MB, free: 8.441 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.5099, allocations: 46.08 kB / 354.3 MB, free: 8.391 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 3.797e-06/0.51, allocations: 3.938 kB / 354.3 MB, free: 8.387 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.009174/0.5192, allocations: 2.486 MB / 356.8 MB, free: 6.242 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.5193, allocations: 59.97 kB / 356.9 MB, free: 6.172 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004399/0.5197, allocations: 248.4 kB / 357.1 MB, free: 5.965 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001181/0.5198, allocations: 40.14 kB / 357.2 MB, free: 5.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.52, allocations: 190.2 kB / 357.4 MB, free: 5.773 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002401/0.5203, allocations: 192.6 kB / 357.5 MB, free: 5.613 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.468e-05/0.5203, allocations: 10.62 kB / 357.6 MB, free: 5.609 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.5205, allocations: 349 kB / 357.9 MB, free: 5.277 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008701/0.5214, allocations: 246 kB / 358.1 MB, free: 5.113 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009623/0.5224, allocations: 294.8 kB / 358.4 MB, free: 4.914 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007276/0.5231, allocations: 206.2 kB / 358.6 MB, free: 4.785 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.5232, allocations: 0 / 358.6 MB, free: 4.785 MB / 282.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00333/0.5265, allocations: 0.9066 MB / 359.5 MB, free: 4.078 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/0.5266, allocations: 9.094 kB / 359.5 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.5266, allocations: 0 / 359.5 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001594/0.5282, allocations: 0.5168 MB / 360.1 MB, free: 3.645 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007667/0.529, allocations: 99.77 kB / 360.2 MB, free: 3.551 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002071/0.5311, allocations: 1.38 MB / 361.5 MB, free: 2.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.5322, allocations: 103.7 kB / 361.6 MB, free: 2.156 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.5324, allocations: 27.73 kB / 361.7 MB, free: 2.137 MB / 282.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): 56 * 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.0004065/0.5328, allocations: 167 kB / 361.8 MB, free: 1.992 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.5329, allocations: 39.53 kB / 361.9 MB, free: 1.953 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001784/0.5331, allocations: 54.55 kB / 361.9 MB, free: 1.938 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.5331, allocations: 11.95 kB / 361.9 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.5332, allocations: 4 kB / 361.9 MB, free: 1.922 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.5332, allocations: 3.984 kB / 361.9 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00519/0.5384, allocations: 1.587 MB / 363.5 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.5384, allocations: 4 kB / 363.5 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007811/0.5392, allocations: 91.67 kB / 363.6 MB, free: 500 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001473/0.5407, allocations: 0.5015 MB / 364.1 MB, free: 68 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001055/0.5409, allocations: 18.11 kB / 364.1 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001873/0.5428, allocations: 1.367 MB / 365.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/0.5428, allocations: 0 / 365.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004029/0.5468, allocations: 1.265 MB / 366.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004095/0.5473, allocations: 169 kB / 366.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.5475, allocations: 21 kB / 367 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008051/0.5483, allocations: 84.36 kB / 367 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000353/0.5487, allocations: 113.6 kB / 367.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-05/0.5488, allocations: 26.53 kB / 367.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003244/0.5491, allocations: 200.6 kB / 367.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5491, allocations: 0 / 367.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007432/0.5499, allocations: 131.4 kB / 367.5 MB, free: 13.07 MB / 298.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.004668/0.5545, allocations: 2.211 MB / 369.7 MB, free: 11.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00211/0.5567, allocations: 0.589 MB / 370.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.5568, allocations: 0 / 370.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.558, allocations: 344.4 kB / 370.6 MB, free: 10.42 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007648/0.5588, allocations: 60.39 kB / 370.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.013/0.5718, allocations: 3.942 MB / 374.6 MB, free: 6.895 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005584/0.5724, allocations: 0.8365 MB / 375.5 MB, free: 6.031 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003267/0.5728, allocations: 39.27 kB / 375.5 MB, free: 5.992 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002974/0.5731, allocations: 130.2 kB / 375.6 MB, free: 5.949 MB / 298.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5731, allocations: 0 / 375.6 MB, free: 5.949 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06201/0.6351, allocations: 11.68 MB / 387.3 MB, free: 10.34 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004087/0.6356, allocations: 205.7 kB / 387.5 MB, free: 10.1 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.143/3.779, allocations: 3.938 kB / 387.5 MB, free: 10.1 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat