Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.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.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.691/1.691, allocations: 171.1 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003568, allocations: 12 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08454/0.08493, allocations: 38.76 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3489/0.4339, allocations: 71.04 MB / 343.2 MB, free: 1.844 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.4342, allocations: 70.91 kB / 343.2 MB, free: 1.809 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06952/0.5038, allocations: 13.36 MB / 356.6 MB, free: 5.945 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.5038, allocations: 0 / 356.6 MB, free: 5.945 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.306e-05/0.5039, allocations: 16 kB / 356.6 MB, free: 5.93 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.005053/0.5089, allocations: 1.201 MB / 357.8 MB, free: 4.715 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.509, allocations: 8.031 kB / 357.8 MB, free: 4.707 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003412/0.5094, allocations: 90.95 kB / 357.9 MB, free: 4.633 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003046/0.5097, allocations: 87.25 kB / 358 MB, free: 4.547 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001566/0.5113, allocations: 0.5795 MB / 358.6 MB, free: 3.988 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.653e-05/0.5114, allocations: 29.31 kB / 358.6 MB, free: 3.973 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002633/0.5116, allocations: 49.81 kB / 358.6 MB, free: 3.938 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004435/0.5161, allocations: 1.54 MB / 360.2 MB, free: 2.672 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.287e-05/0.5162, allocations: 0 / 360.2 MB, free: 2.672 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002002/0.5164, allocations: 22.75 kB / 360.2 MB, free: 2.66 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.5164, allocations: 8 kB / 360.2 MB, free: 2.652 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006658/0.5231, allocations: 2.33 MB / 362.5 MB, free: 0.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01139/0.5345, allocations: 3.14 MB / 365.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003764/0.5383, allocations: 1.144 MB / 366.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001467/0.5385, allocations: 11.67 kB / 366.8 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003469/0.542, allocations: 1.204 MB / 368 MB, free: 12.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 5.59e-06/0.5421, allocations: 0 / 368 MB, free: 12.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.02743/0.5695, allocations: 7.89 MB / 375.9 MB, free: 5.137 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.357e-05/0.5696, allocations: 85.11 kB / 376 MB, free: 5.035 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00187/0.5715, allocations: 0.7977 MB / 376.8 MB, free: 4.414 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003917/0.5719, allocations: 57.69 kB / 376.9 MB, free: 4.363 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002973/0.5722, allocations: 293.7 kB / 377.2 MB, free: 4.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003373/0.5726, allocations: 176.7 kB / 377.3 MB, free: 4.035 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.5727, allocations: 15.38 kB / 377.3 MB, free: 4.027 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.573, allocations: 384.2 kB / 377.7 MB, free: 3.672 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00324/0.5762, allocations: 1.127 MB / 378.9 MB, free: 2.766 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003476/0.5797, allocations: 1.21 MB / 380.1 MB, free: 1.762 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003214/0.583, allocations: 1.05 MB / 381.1 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.988e-06/0.5831, allocations: 3.953 kB / 381.1 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01066/0.5937, allocations: 3.471 MB / 384.6 MB, free: 14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.5938, allocations: 4 kB / 384.6 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.5938, allocations: 4.031 kB / 384.6 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02067/0.6145, allocations: 11.49 MB / 396.1 MB, free: 2.875 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/0.6157, allocations: 127.9 kB / 396.2 MB, free: 2.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01541/0.6311, allocations: 7.126 MB / 403.3 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003015/0.6342, allocations: 315.7 kB / 403.6 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003322/0.6346, allocations: 112 kB / 403.8 MB, free: 10.91 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000743/0.6353, allocations: 263.9 kB / 404 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003065/0.6357, allocations: 79.16 kB / 404.1 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002889/0.636, allocations: 98.17 kB / 404.2 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.636, allocations: 8.141 kB / 404.2 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.636, allocations: 4 kB / 404.2 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.636, allocations: 7.969 kB / 404.2 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0134/0.6494, allocations: 4.581 MB / 408.8 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.59e-05/0.6495, allocations: 3.953 kB / 408.8 MB, free: 5.777 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001/0.6505, allocations: 104 kB / 408.9 MB, free: 5.676 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02032/0.6708, allocations: 11.37 MB / 420.3 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002468/0.6711, allocations: 43.95 kB / 420.3 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01427/0.6854, allocations: 6.855 MB / 427.2 MB, free: 3.086 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.6855, allocations: 3.938 kB / 427.2 MB, free: 3.082 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2373/0.9228, allocations: 4.521 MB / 431.7 MB, free: 116.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001596/0.9244, allocations: 409.3 kB / 432.1 MB, free: 116.1 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003541/0.9248, allocations: 33.05 kB / 432.1 MB, free: 116.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003078/0.9279, allocations: 314.2 kB / 432.4 MB, free: 116.1 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003177/0.9311, allocations: 0.661 MB / 433.1 MB, free: 116.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004507/0.9316, allocations: 97.86 kB / 433.2 MB, free: 116.1 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001335/0.933, allocations: 0.6329 MB / 433.8 MB, free: 116 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.933, allocations: 0.9844 kB / 433.8 MB, free: 116 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001402/0.9344, allocations: 216.5 kB / 434 MB, free: 116 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.01549/0.9499, allocations: 6.286 MB / 440.3 MB, free: 115.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00701/0.957, allocations: 1.826 MB / 442.1 MB, free: 114.9 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/0.9571, allocations: 3.844 kB / 442.1 MB, free: 114.9 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003911/0.961, allocations: 1.049 MB / 443.2 MB, free: 114.6 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.9623, allocations: 64.61 kB / 443.3 MB, free: 114.6 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03007/0.9924, allocations: 10.82 MB / 454.1 MB, free: 108.9 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007106/0.9931, allocations: 0.9379 MB / 455 MB, free: 108 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006843/0.9938, allocations: 64.83 kB / 455.1 MB, free: 107.9 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006756/0.9945, allocations: 207.7 kB / 455.3 MB, free: 107.8 MB / 346.7 MB Notification: Performance of SimCode: time 2.064e-06/0.9946, allocations: 0 / 455.3 MB, free: 107.8 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06627/1.061, allocations: 20.54 MB / 475.8 MB, free: 88.84 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002656/1.061, allocations: 201 kB / 476 MB, free: 88.61 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.332/4.393, allocations: 0 / 476 MB, free: 88.61 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat