Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.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.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.965/1.965, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005293/0.0005293, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1557, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4041/0.5599, allocations: 76.35 MB / 384.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.5602, allocations: 74.92 kB / 385 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07664/0.6369, allocations: 13.58 MB / 398.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.085e-06/0.637, allocations: 0 / 398.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.848e-05/0.637, allocations: 11.75 kB / 398.6 MB, free: 13.3 MB / 314.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.006419/0.6435, allocations: 1.187 MB / 399.7 MB, free: 12.53 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.955e-05/0.6435, allocations: 9 kB / 399.7 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004154/0.644, allocations: 73.59 kB / 399.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003711/0.6444, allocations: 77.64 kB / 399.9 MB, free: 12.44 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/0.6458, allocations: 0.4949 MB / 400.4 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.118e-05/0.6459, allocations: 27.44 kB / 400.4 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002739/0.6462, allocations: 36.31 kB / 400.5 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004315/0.6505, allocations: 0.9624 MB / 401.4 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.319e-05/0.6506, allocations: 3.906 kB / 401.4 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002197/0.6509, allocations: 21.98 kB / 401.4 MB, free: 11.78 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.6509, allocations: 7.75 kB / 401.4 MB, free: 11.78 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006313/0.6572, allocations: 1.197 MB / 402.6 MB, free: 11.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01172/0.669, allocations: 2.407 MB / 405.1 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003216/0.6723, allocations: 0.7624 MB / 405.8 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002335/0.6726, allocations: 15.14 kB / 405.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002749/0.6754, allocations: 0.8334 MB / 406.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.928e-06/0.6754, allocations: 0 / 406.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.0216/0.697, allocations: 5.124 MB / 411.8 MB, free: 8.195 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.6971, allocations: 80.98 kB / 411.9 MB, free: 8.102 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008904/0.698, allocations: 0.5365 MB / 412.4 MB, free: 7.902 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000383/0.6984, allocations: 48 kB / 412.4 MB, free: 7.867 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.6986, allocations: 309.5 kB / 412.8 MB, free: 7.664 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000299/0.6989, allocations: 167.9 kB / 412.9 MB, free: 7.551 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.699, allocations: 14.31 kB / 412.9 MB, free: 7.551 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.087e-05/0.6991, allocations: 340.8 kB / 413.3 MB, free: 7.223 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00217/0.7013, allocations: 0.5903 MB / 413.9 MB, free: 7.129 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002275/0.7036, allocations: 0.6886 MB / 414.5 MB, free: 6.934 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001997/0.7057, allocations: 0.5094 MB / 415 MB, free: 6.852 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.7057, allocations: 3.938 kB / 415.1 MB, free: 6.848 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006444/0.7122, allocations: 1.823 MB / 416.9 MB, free: 6.473 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.7122, allocations: 3.906 kB / 416.9 MB, free: 6.473 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-05/0.7123, allocations: 11.41 kB / 416.9 MB, free: 6.473 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007349/0.7197, allocations: 4.181 MB / 421.1 MB, free: 4.738 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009491/0.7207, allocations: 123.3 kB / 421.2 MB, free: 4.707 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/0.7312, allocations: 5.416 MB / 426.6 MB, free: 1.051 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002813/0.734, allocations: 298.4 kB / 426.9 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002303/0.7343, allocations: 104 kB / 427 MB, free: 0.9492 MB / 314.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): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0006802/0.735, allocations: 254.9 kB / 427.3 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.7352, allocations: 71 kB / 427.3 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005279/0.7405, allocations: 1.569 MB / 428.9 MB, free: 372 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.7406, allocations: 7.781 kB / 428.9 MB, free: 372 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.7406, allocations: 3.984 kB / 428.9 MB, free: 368 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.7406, allocations: 0 / 428.9 MB, free: 368 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007863/0.7485, allocations: 2.622 MB / 431.5 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/0.7485, allocations: 3.844 kB / 431.5 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009156/0.7495, allocations: 95.97 kB / 431.6 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008746/0.7582, allocations: 4.198 MB / 435.8 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002117/0.7585, allocations: 45.7 kB / 435.9 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01232/0.7708, allocations: 5.147 MB / 441 MB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.73e-06/0.7709, allocations: 11.92 kB / 441 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009936/0.7808, allocations: 2.494 MB / 443.5 MB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/0.7819, allocations: 312.8 kB / 443.8 MB, free: 4.867 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002666/0.7822, allocations: 18.81 kB / 443.8 MB, free: 4.859 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00295/0.7852, allocations: 310.2 kB / 444.1 MB, free: 4.566 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002848/0.788, allocations: 0.656 MB / 444.8 MB, free: 3.992 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002584/0.7883, allocations: 90.97 kB / 444.9 MB, free: 3.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001038/0.7894, allocations: 0.5152 MB / 445.4 MB, free: 3.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.7894, allocations: 4 kB / 445.4 MB, free: 3.516 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001406/0.7908, allocations: 235.4 kB / 445.6 MB, free: 3.305 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 32 * 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.01037/0.8012, allocations: 3.374 MB / 449 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005595/0.8068, allocations: 1.525 MB / 450.5 MB, free: 14.41 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/0.8069, allocations: 0 / 450.5 MB, free: 14.41 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003065/0.81, allocations: 0.8802 MB / 451.4 MB, free: 13.51 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008431/0.8108, allocations: 62.64 kB / 451.5 MB, free: 13.45 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02182/0.8327, allocations: 7.76 MB / 459.2 MB, free: 5.566 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000757/0.8335, allocations: 0.93 MB / 460.2 MB, free: 4.609 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005645/0.8341, allocations: 199.3 kB / 460.4 MB, free: 4.414 MB / 346.7 MB Notification: Performance of SimCode: time 1.522e-06/0.8341, allocations: 0 / 460.4 MB, free: 4.414 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.593/4.427, allocations: 18.45 MB / 478.8 MB, free: 1.922 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat