Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Translational.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.Translational.Examples.Friction,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.238/1.238, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002741/0.0002742, allocations: 4 kB / 158.4 MB, free: 15.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06069/0.06101, allocations: 25.17 MB / 183.6 MB, free: 5.855 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2322/0.2933, allocations: 37.47 MB / 221.1 MB, free: 5.715 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/0.2936, allocations: 66.88 kB / 221.1 MB, free: 5.707 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0617/0.3553, allocations: 12.83 MB / 234 MB, free: 13.44 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.3554, allocations: 3.938 kB / 234 MB, free: 13.43 MB / 186.7 MB Notification: Performance of Transformations before backend: time 4.089e-05/0.3554, allocations: 12 kB / 234 MB, free: 13.42 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.005207/0.3607, allocations: 1.216 MB / 235.2 MB, free: 12.18 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.182e-05/0.3607, allocations: 15.97 kB / 235.2 MB, free: 12.17 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004542/0.3612, allocations: 77.78 kB / 235.3 MB, free: 12.1 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003155/0.3615, allocations: 82.97 kB / 235.4 MB, free: 12.02 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001434/0.363, allocations: 0.57 MB / 235.9 MB, free: 11.47 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.37e-05/0.3631, allocations: 27.56 kB / 236 MB, free: 11.46 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002478/0.3633, allocations: 43.75 kB / 236 MB, free: 11.43 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004785/0.3681, allocations: 1.529 MB / 237.5 MB, free: 10.17 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.055e-05/0.3682, allocations: 0 / 237.5 MB, free: 10.17 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001983/0.3684, allocations: 25.44 kB / 237.6 MB, free: 10.15 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/0.3685, allocations: 11.98 kB / 237.6 MB, free: 10.14 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006915/0.3754, allocations: 2.31 MB / 239.9 MB, free: 8.246 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01133/0.3868, allocations: 3.103 MB / 243 MB, free: 5.578 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003774/0.3906, allocations: 1.124 MB / 244.1 MB, free: 4.66 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000136/0.3908, allocations: 8.453 kB / 244.1 MB, free: 4.652 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003581/0.3944, allocations: 1.284 MB / 245.4 MB, free: 3.539 MB / 186.7 MB Notification: Performance of pre-optimization done (n=44): time 3.998e-06/0.3945, allocations: 4 kB / 245.4 MB, free: 3.535 MB / 186.7 MB Notification: Performance of matching and sorting (n=46): time 0.02818/0.4227, allocations: 7.961 MB / 253.4 MB, free: 12.34 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.4228, allocations: 140.5 kB / 253.5 MB, free: 12.17 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002043/0.4249, allocations: 0.7845 MB / 254.3 MB, free: 11.38 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004331/0.4254, allocations: 57.69 kB / 254.3 MB, free: 11.32 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003104/0.4257, allocations: 310.8 kB / 254.7 MB, free: 11.01 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003726/0.4261, allocations: 165.9 kB / 254.8 MB, free: 10.85 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001685/0.4263, allocations: 24 kB / 254.8 MB, free: 10.82 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.4264, allocations: 334.8 kB / 255.2 MB, free: 10.49 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003276/0.4297, allocations: 1.118 MB / 256.3 MB, free: 9.371 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003513/0.4333, allocations: 1.213 MB / 257.5 MB, free: 8.125 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003189/0.4365, allocations: 1.091 MB / 258.6 MB, free: 7.023 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.4365, allocations: 0 / 258.6 MB, free: 7.023 MB / 202.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.01043/0.447, allocations: 3.45 MB / 262 MB, free: 3.543 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.814e-05/0.4471, allocations: 59.41 kB / 262.1 MB, free: 3.473 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.4471, allocations: 0 / 262.1 MB, free: 3.473 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02148/0.4686, allocations: 11.48 MB / 273.6 MB, free: 7.961 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.4698, allocations: 131.8 kB / 273.7 MB, free: 7.832 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01632/0.4861, allocations: 7.128 MB / 280.8 MB, free: 416 kB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002973/0.4891, allocations: 307.9 kB / 281.1 MB, free: 108 kB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002846/0.4895, allocations: 116 kB / 281.2 MB, free: 15.99 MB / 234.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 (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 2 * 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.0007874/0.4903, allocations: 319.7 kB / 281.6 MB, free: 15.66 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002993/0.4906, allocations: 79.16 kB / 281.6 MB, free: 15.58 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002799/0.4909, allocations: 106.1 kB / 281.7 MB, free: 15.47 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.4909, allocations: 8 kB / 281.7 MB, free: 15.46 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.4909, allocations: 4 kB / 281.8 MB, free: 15.46 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.4909, allocations: 3.984 kB / 281.8 MB, free: 15.46 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01299/0.5039, allocations: 4.566 MB / 286.3 MB, free: 10.81 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.747e-05/0.504, allocations: 4.062 kB / 286.3 MB, free: 10.81 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009268/0.5049, allocations: 87.88 kB / 286.4 MB, free: 10.72 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1716/0.6766, allocations: 11.38 MB / 297.8 MB, free: 78.33 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002458/0.6769, allocations: 40.84 kB / 297.8 MB, free: 78.33 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/0.6898, allocations: 6.856 MB / 304.7 MB, free: 75.34 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.6899, allocations: 1.281 kB / 304.7 MB, free: 75.34 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01281/0.7027, allocations: 4.511 MB / 309.2 MB, free: 74.64 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00138/0.7041, allocations: 402.6 kB / 309.6 MB, free: 74.49 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003301/0.7045, allocations: 25.83 kB / 309.6 MB, free: 74.48 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002783/0.7073, allocations: 319.3 kB / 309.9 MB, free: 74.47 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002892/0.7102, allocations: 0.6682 MB / 310.6 MB, free: 74.39 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004475/0.7107, allocations: 92.97 kB / 310.7 MB, free: 74.37 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001119/0.7118, allocations: 0.6302 MB / 311.3 MB, free: 74.11 MB / 234.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.7118, allocations: 0 / 311.3 MB, free: 74.11 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001328/0.7132, allocations: 212.9 kB / 311.5 MB, free: 74.09 MB / 234.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: 11 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,$whenCondition2,stop2.mode,stop2.startBackward,stop2.startForward,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * 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.007606/0.7208, allocations: 3.896 MB / 315.4 MB, free: 72.49 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.004471/0.7253, allocations: 1.924 MB / 317.3 MB, free: 71.75 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/0.7254, allocations: 0 / 317.3 MB, free: 71.75 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002421/0.7278, allocations: 1.095 MB / 318.4 MB, free: 70.71 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008491/0.7287, allocations: 56.47 kB / 318.5 MB, free: 70.67 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01887/0.7476, allocations: 9.529 MB / 328 MB, free: 62.02 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005108/0.7482, allocations: 0.9342 MB / 329 MB, free: 61.15 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005294/0.7487, allocations: 214.2 kB / 329.2 MB, free: 60.97 MB / 234.7 MB Notification: Performance of SimCode: time 2.775e-06/0.7487, allocations: 0 / 329.2 MB, free: 60.97 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.23/3.979, allocations: 16.4 MB / 345.6 MB, free: 44.66 MB / 234.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat