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.154/1.154, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.782e-05/2.798e-05, allocations: 4 kB / 154.4 MB, free: 13.11 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1699/0.17, allocations: 25.15 MB / 179.5 MB, free: 0.6914 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07395/0.244, allocations: 37.39 MB / 216.9 MB, free: 11.63 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.2443, allocations: 59.97 kB / 217 MB, free: 11.57 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06667/0.311, allocations: 12.84 MB / 229.8 MB, free: 14.69 MB / 202.7 MB Notification: Performance of FrontEnd: time 1.664e-06/0.3111, allocations: 0 / 229.8 MB, free: 14.69 MB / 202.7 MB Notification: Performance of Transformations before backend: time 3.613e-05/0.3111, allocations: 12 kB / 229.8 MB, free: 14.68 MB / 202.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.004547/0.3157, allocations: 1.114 MB / 230.9 MB, free: 13.51 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.3158, allocations: 11.97 kB / 230.9 MB, free: 13.5 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002411/0.316, allocations: 82.53 kB / 231 MB, free: 13.41 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002957/0.3163, allocations: 87.06 kB / 231.1 MB, free: 13.32 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/0.3178, allocations: 0.573 MB / 231.7 MB, free: 12.71 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.467e-05/0.3179, allocations: 28.78 kB / 231.7 MB, free: 12.68 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000253/0.3182, allocations: 43.91 kB / 231.8 MB, free: 12.63 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003381/0.3216, allocations: 1.439 MB / 233.2 MB, free: 11.18 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/0.3216, allocations: 0 / 233.2 MB, free: 11.18 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001882/0.3218, allocations: 24 kB / 233.2 MB, free: 11.16 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.3218, allocations: 8 kB / 233.2 MB, free: 11.15 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005191/0.327, allocations: 2.15 MB / 235.4 MB, free: 8.996 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01091/0.338, allocations: 3.098 MB / 238.5 MB, free: 5.82 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002762/0.3408, allocations: 1.025 MB / 239.5 MB, free: 4.777 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0021/0.343, allocations: 0.8493 MB / 240.3 MB, free: 3.922 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/0.3431, allocations: 4.938 kB / 240.4 MB, free: 3.918 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002722/0.3458, allocations: 1.207 MB / 241.6 MB, free: 2.668 MB / 202.7 MB Notification: Performance of pre-optimization done (n=44): time 3.577e-06/0.3459, allocations: 0 / 241.6 MB, free: 2.668 MB / 202.7 MB Notification: Performance of matching and sorting (n=46): time 0.1628/0.5087, allocations: 5.806 MB / 247.4 MB, free: 53.26 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.464e-05/0.5088, allocations: 140.4 kB / 247.5 MB, free: 53.1 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001633/0.5104, allocations: 0.7885 MB / 248.3 MB, free: 52.97 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002473/0.5107, allocations: 51.98 kB / 248.3 MB, free: 52.94 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/0.5109, allocations: 315.6 kB / 248.6 MB, free: 52.76 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/0.5112, allocations: 160.1 kB / 248.8 MB, free: 52.69 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.5113, allocations: 20.91 kB / 248.8 MB, free: 52.69 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 7.68e-05/0.5114, allocations: 338.3 kB / 249.2 MB, free: 52.38 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002019/0.5135, allocations: 1.037 MB / 250.2 MB, free: 52.38 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002081/0.5156, allocations: 1.132 MB / 251.3 MB, free: 52.1 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001888/0.5175, allocations: 1.013 MB / 252.3 MB, free: 51.87 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.5175, allocations: 0 / 252.3 MB, free: 51.87 MB / 202.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.007144/0.5246, allocations: 3.277 MB / 255.6 MB, free: 49.77 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.462e-05/0.5247, allocations: 63.41 kB / 255.7 MB, free: 49.7 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.5248, allocations: 7.656 kB / 255.7 MB, free: 49.69 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01893/0.5437, allocations: 11.43 MB / 267.1 MB, free: 39.52 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.5448, allocations: 122.1 kB / 267.2 MB, free: 39.41 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/0.5574, allocations: 7.124 MB / 274.4 MB, free: 32.02 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002824/0.5603, allocations: 302.5 kB / 274.6 MB, free: 31.72 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002215/0.5605, allocations: 112 kB / 274.8 MB, free: 31.61 MB / 202.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 () * 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.0003682/0.5609, allocations: 205.6 kB / 275 MB, free: 31.4 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002468/0.5612, allocations: 79.16 kB / 275 MB, free: 31.32 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002959/0.5615, allocations: 98.3 kB / 275.1 MB, free: 31.22 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.5615, allocations: 11.95 kB / 275.1 MB, free: 31.21 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.383e-06/0.5615, allocations: 4 kB / 275.1 MB, free: 31.2 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.5615, allocations: 3.984 kB / 275.2 MB, free: 31.2 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/0.5723, allocations: 4.491 MB / 279.6 MB, free: 26.65 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.5724, allocations: 3.953 kB / 279.6 MB, free: 26.64 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008813/0.5733, allocations: 84 kB / 279.7 MB, free: 26.56 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0198/0.5931, allocations: 11.33 MB / 291.1 MB, free: 15.2 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002218/0.5934, allocations: 39.97 kB / 291.1 MB, free: 15.16 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01169/0.6051, allocations: 6.806 MB / 297.9 MB, free: 8.074 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.6051, allocations: 0 / 297.9 MB, free: 8.074 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00914/0.6143, allocations: 4.276 MB / 302.2 MB, free: 3.738 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00133/0.6157, allocations: 406.8 kB / 302.6 MB, free: 3.324 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003342/0.616, allocations: 32 kB / 302.6 MB, free: 3.293 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00277/0.6188, allocations: 315.7 kB / 302.9 MB, free: 2.984 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002631/0.6215, allocations: 0.6556 MB / 303.6 MB, free: 2.328 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003093/0.6218, allocations: 95.97 kB / 303.7 MB, free: 2.234 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.001111/0.6229, allocations: 0.6279 MB / 304.3 MB, free: 1.613 MB / 202.7 MB Notification: Performance of sort global known variables: time 6.42e-07/0.623, allocations: 4 kB / 304.3 MB, free: 1.609 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.00118/0.6241, allocations: 209.6 kB / 304.5 MB, free: 1.41 MB / 202.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) * 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.008335/0.6325, allocations: 3.665 MB / 308.2 MB, free: 13.69 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.005085/0.6376, allocations: 1.751 MB / 309.9 MB, free: 11.89 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.6377, allocations: 0 / 309.9 MB, free: 11.89 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002969/0.6407, allocations: 1.013 MB / 310.9 MB, free: 10.83 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.6419, allocations: 57.94 kB / 311 MB, free: 10.78 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01307/0.655, allocations: 2.194 MB / 313.2 MB, free: 8.555 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/0.6561, allocations: 0.9224 MB / 314.1 MB, free: 7.605 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009004/0.6571, allocations: 211.3 kB / 314.3 MB, free: 7.398 MB / 218.7 MB Notification: Performance of SimCode: time 1.343e-06/0.6571, allocations: 0 / 314.3 MB, free: 7.398 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.051/3.708, allocations: 16.36 MB / 330.7 MB, free: 7.031 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