Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.043/2.043, allocations: 194.9 MB / 211.1 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005353/0.0005353, allocations: 8 kB / 264.1 MB, free: 3.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.317, allocations: 44.51 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1959/0.513, allocations: 76.11 MB / 384.7 MB, free: 444 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.5133, allocations: 67.97 kB / 384.7 MB, free: 376 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03633/0.5497, allocations: 7.524 MB / 392.3 MB, free: 8.824 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.5497, allocations: 0 / 392.3 MB, free: 8.824 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.962e-05/0.5498, allocations: 8 kB / 392.3 MB, free: 8.816 MB / 330.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.002141/0.5519, allocations: 0.733 MB / 393 MB, free: 8.031 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.552, allocations: 12.03 kB / 393 MB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002144/0.5522, allocations: 91.36 kB / 393.1 MB, free: 7.922 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001537/0.5524, allocations: 47.44 kB / 393.2 MB, free: 7.875 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005898/0.553, allocations: 314.1 kB / 393.5 MB, free: 7.527 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.906e-05/0.5531, allocations: 33 kB / 393.5 MB, free: 7.496 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.5532, allocations: 36 kB / 393.5 MB, free: 7.461 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.5547, allocations: 466.3 kB / 394 MB, free: 7 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.24e-05/0.5548, allocations: 7.906 kB / 394 MB, free: 6.992 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.821e-05/0.5548, allocations: 16 kB / 394 MB, free: 6.977 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.747e-05/0.5549, allocations: 11.94 kB / 394 MB, free: 6.965 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001614/0.5565, allocations: 459.7 kB / 394.5 MB, free: 6.516 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00377/0.5603, allocations: 1.16 MB / 395.6 MB, free: 5.305 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.5618, allocations: 408.8 kB / 396 MB, free: 4.891 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.422e-05/0.5619, allocations: 16.41 kB / 396 MB, free: 4.875 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.5619, allocations: 39 kB / 396.1 MB, free: 4.828 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 5.35e-06/0.5619, allocations: 4 kB / 396.1 MB, free: 4.824 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.008877/0.5708, allocations: 2.345 MB / 398.4 MB, free: 2.348 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.237e-05/0.5709, allocations: 63.95 kB / 398.5 MB, free: 2.273 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003825/0.5713, allocations: 234.1 kB / 398.7 MB, free: 2.043 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.5714, allocations: 41.7 kB / 398.8 MB, free: 1.996 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.5716, allocations: 177.4 kB / 398.9 MB, free: 1.816 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002491/0.5719, allocations: 205.2 kB / 399.1 MB, free: 1.613 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.423e-05/0.572, allocations: 16 kB / 399.2 MB, free: 1.598 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.5721, allocations: 350.8 kB / 399.5 MB, free: 1.246 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008355/0.573, allocations: 221.2 kB / 399.7 MB, free: 1.031 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008523/0.5738, allocations: 264.8 kB / 400 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007083/0.5746, allocations: 191.2 kB / 400.2 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.5746, allocations: 7.938 kB / 400.2 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00297/0.5776, allocations: 0.7288 MB / 400.9 MB, free: 15.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.907e-05/0.5777, allocations: 12 kB / 400.9 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.524e-05/0.5777, allocations: 0 / 400.9 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001378/0.5791, allocations: 393.4 kB / 401.3 MB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007094/0.5798, allocations: 91.89 kB / 401.4 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001962/0.5818, allocations: 1.331 MB / 402.7 MB, free: 13.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.5829, allocations: 108 kB / 402.8 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.583, allocations: 24.14 kB / 402.8 MB, free: 13.82 MB / 346.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.0003855/0.5834, allocations: 161.7 kB / 403 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.5836, allocations: 43.48 kB / 403 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002804/0.5864, allocations: 0.7405 MB / 403.8 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.637e-05/0.5865, allocations: 7.984 kB / 403.8 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.5865, allocations: 3.953 kB / 403.8 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.5865, allocations: 0 / 403.8 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00468/0.5912, allocations: 1.399 MB / 405.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/0.5912, allocations: 4 kB / 405.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007694/0.592, allocations: 87.89 kB / 405.3 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001266/0.5933, allocations: 385.5 kB / 405.7 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.5934, allocations: 23.97 kB / 405.7 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001802/0.5953, allocations: 1.3 MB / 407 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.355e-06/0.5953, allocations: 4.031 kB / 407 MB, free: 9.512 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003772/0.5991, allocations: 1.085 MB / 408.1 MB, free: 8.355 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004007/0.5996, allocations: 164.6 kB / 408.2 MB, free: 8.176 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.5997, allocations: 20 kB / 408.2 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008177/0.6005, allocations: 79.94 kB / 408.3 MB, free: 8.078 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003737/0.6009, allocations: 116.1 kB / 408.4 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-05/0.601, allocations: 31.97 kB / 408.5 MB, free: 7.934 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003137/0.6014, allocations: 190 kB / 408.7 MB, free: 7.75 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6014, allocations: 0 / 408.7 MB, free: 7.75 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007592/0.6021, allocations: 143.9 kB / 408.8 MB, free: 7.609 MB / 346.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.004464/0.6066, allocations: 2.016 MB / 410.8 MB, free: 5.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002201/0.6089, allocations: 0.6118 MB / 411.4 MB, free: 4.902 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.6089, allocations: 0 / 411.4 MB, free: 4.902 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.6102, allocations: 326.4 kB / 411.7 MB, free: 4.582 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007762/0.611, allocations: 71.12 kB / 411.8 MB, free: 4.516 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01268/0.6237, allocations: 3.665 MB / 415.5 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2457/0.8694, allocations: 0.8334 MB / 416.3 MB, free: 96.43 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003535/0.8698, allocations: 34.81 kB / 416.3 MB, free: 96.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003669/0.8702, allocations: 129 kB / 416.5 MB, free: 96.43 MB / 346.7 MB Notification: Performance of SimCode: time 9.22e-07/0.8702, allocations: 0.5312 kB / 416.5 MB, free: 96.43 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04809/0.9183, allocations: 11.98 MB / 428.5 MB, free: 92.38 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002725/0.9187, allocations: 202 kB / 428.7 MB, free: 92.14 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.264/4.183, allocations: 12 kB / 428.7 MB, free: 92.12 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat