Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.986/1.986, allocations: 194.9 MB / 211.1 MB, free: 8.547 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003576, allocations: 8 kB / 264.1 MB, free: 3.465 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3247, allocations: 44.5 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.17/0.4948, allocations: 76.35 MB / 384.9 MB, free: 312 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003331/0.4952, allocations: 75.95 kB / 385 MB, free: 236 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1224/0.6175, allocations: 13.59 MB / 398.6 MB, free: 2.602 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.6176, allocations: 0 / 398.6 MB, free: 2.602 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.841e-05/0.6177, allocations: 12 kB / 398.6 MB, free: 2.59 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.006597/0.6243, allocations: 1.184 MB / 399.8 MB, free: 1.355 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.068e-05/0.6244, allocations: 8.031 kB / 399.8 MB, free: 1.348 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003318/0.6247, allocations: 74.53 kB / 399.9 MB, free: 1.266 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004098/0.6251, allocations: 79.09 kB / 399.9 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005391/0.6306, allocations: 498.9 kB / 400.4 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.761e-05/0.6307, allocations: 25 kB / 400.5 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003002/0.631, allocations: 36 kB / 400.5 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00478/0.6358, allocations: 0.9737 MB / 401.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.123e-05/0.6359, allocations: 3.906 kB / 401.5 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002225/0.6361, allocations: 16 kB / 401.5 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/0.6362, allocations: 8 kB / 401.5 MB, free: 15.58 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005173/0.6414, allocations: 1.197 MB / 402.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009192/0.6506, allocations: 2.408 MB / 405.1 MB, free: 11.9 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002916/0.6536, allocations: 0.7586 MB / 405.9 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001516/0.6538, allocations: 19.86 kB / 405.9 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002911/0.6567, allocations: 0.8261 MB / 406.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.348e-06/0.6567, allocations: 0 / 406.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.02361/0.6803, allocations: 5.119 MB / 411.8 MB, free: 4.977 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.888e-05/0.6805, allocations: 85.11 kB / 411.9 MB, free: 4.875 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001071/0.6815, allocations: 0.5306 MB / 412.4 MB, free: 4.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004007/0.682, allocations: 49.69 kB / 412.5 MB, free: 4.285 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003476/0.6823, allocations: 292.4 kB / 412.8 MB, free: 3.992 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004021/0.6827, allocations: 169.8 kB / 412.9 MB, free: 3.824 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.6829, allocations: 16 kB / 412.9 MB, free: 3.809 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002274/0.6831, allocations: 374.8 kB / 413.3 MB, free: 3.434 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002463/0.6856, allocations: 0.5947 MB / 413.9 MB, free: 2.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002633/0.6883, allocations: 0.6862 MB / 414.6 MB, free: 2.121 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002272/0.6906, allocations: 0.5114 MB / 415.1 MB, free: 1.609 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.6907, allocations: 0 / 415.1 MB, free: 1.609 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.3243/1.015, allocations: 1.851 MB / 417 MB, free: 96.03 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.926e-05/1.015, allocations: 9.594 kB / 417 MB, free: 96.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/1.015, allocations: 9.562 kB / 417 MB, free: 96.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0134/1.029, allocations: 4.188 MB / 421.2 MB, free: 95.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001515/1.03, allocations: 118.1 kB / 421.3 MB, free: 95.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01664/1.047, allocations: 5.419 MB / 426.7 MB, free: 92.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004192/1.051, allocations: 298.3 kB / 427 MB, free: 92.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005164/1.052, allocations: 102.9 kB / 427.1 MB, free: 92.75 MB / 346.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.001243/1.053, allocations: 257.5 kB / 427.3 MB, free: 92.63 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003738/1.053, allocations: 73.19 kB / 427.4 MB, free: 92.63 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008994/1.062, allocations: 1.565 MB / 429 MB, free: 92.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.068e-05/1.063, allocations: 8.812 kB / 429 MB, free: 92.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/1.063, allocations: 3.953 kB / 429 MB, free: 92.19 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-05/1.063, allocations: 6.172 kB / 429 MB, free: 92.19 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01358/1.076, allocations: 2.602 MB / 431.6 MB, free: 90.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.136e-05/1.076, allocations: 7.953 kB / 431.6 MB, free: 90.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00151/1.078, allocations: 100.8 kB / 431.7 MB, free: 90.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0114/1.089, allocations: 4.205 MB / 435.9 MB, free: 86.83 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003544/1.09, allocations: 43.95 kB / 436 MB, free: 86.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01472/1.104, allocations: 5.15 MB / 441.1 MB, free: 81.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/1.104, allocations: 0 / 441.1 MB, free: 81.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01433/1.119, allocations: 2.495 MB / 443.6 MB, free: 78.85 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002603/1.122, allocations: 316 kB / 443.9 MB, free: 78.53 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005137/1.122, allocations: 20 kB / 443.9 MB, free: 78.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002966/1.125, allocations: 303.7 kB / 444.2 MB, free: 78.21 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002646/1.128, allocations: 0.6549 MB / 444.9 MB, free: 77.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003999/1.128, allocations: 95.92 kB / 445 MB, free: 77.46 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009827/1.129, allocations: 0.5222 MB / 445.5 MB, free: 76.95 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.222e-06/1.129, allocations: 0 / 445.5 MB, free: 76.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001463/1.131, allocations: 237 kB / 445.7 MB, free: 76.72 MB / 346.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.0119/1.143, allocations: 3.368 MB / 449.1 MB, free: 73.3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005237/1.148, allocations: 1.522 MB / 450.6 MB, free: 71.74 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/1.148, allocations: 4 kB / 450.6 MB, free: 71.73 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002993/1.151, allocations: 0.9291 MB / 451.5 MB, free: 70.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008107/1.152, allocations: 62.34 kB / 451.6 MB, free: 70.72 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01972/1.172, allocations: 7.718 MB / 459.3 MB, free: 62.92 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005119/1.172, allocations: 0.9378 MB / 460.3 MB, free: 61.96 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000442/1.173, allocations: 39.28 kB / 460.3 MB, free: 61.92 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006398/1.173, allocations: 195.3 kB / 460.5 MB, free: 61.73 MB / 346.7 MB Notification: Performance of SimCode: time 1.353e-06/1.173, allocations: 0 / 460.5 MB, free: 61.73 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08662/1.26, allocations: 26.28 MB / 486.8 MB, free: 35.38 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003164/1.26, allocations: 209.4 kB / 487 MB, free: 35.14 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.638/4.899, allocations: 0 / 487 MB, free: 35.14 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat