Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.053/2.053, allocations: 171.2 MB / 186.8 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003637/0.0003637, allocations: 8 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08747/0.08786, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.379/0.4669, allocations: 71.04 MB / 343.1 MB, free: 2.508 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/0.4673, allocations: 73.47 kB / 343.2 MB, free: 2.469 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07276/0.5401, allocations: 13.36 MB / 356.6 MB, free: 6.621 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5401, allocations: 0 / 356.6 MB, free: 6.621 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.608e-05/0.5402, allocations: 16 kB / 356.6 MB, free: 6.605 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.00557/0.5458, allocations: 1.206 MB / 357.8 MB, free: 5.387 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.078e-05/0.5458, allocations: 12.03 kB / 357.8 MB, free: 5.375 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004559/0.5463, allocations: 83.84 kB / 357.9 MB, free: 5.309 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003078/0.5466, allocations: 87.06 kB / 358 MB, free: 5.223 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/0.5481, allocations: 0.5889 MB / 358.6 MB, free: 4.656 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.333e-05/0.5482, allocations: 27.56 kB / 358.6 MB, free: 4.641 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002443/0.5484, allocations: 46.75 kB / 358.6 MB, free: 4.605 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004725/0.5532, allocations: 1.534 MB / 360.2 MB, free: 3.348 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.541e-05/0.5532, allocations: 4 kB / 360.2 MB, free: 3.344 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001971/0.5535, allocations: 22.55 kB / 360.2 MB, free: 3.332 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.827e-05/0.5535, allocations: 12 kB / 360.2 MB, free: 3.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006932/0.5604, allocations: 2.321 MB / 362.5 MB, free: 1.426 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01133/0.5718, allocations: 3.138 MB / 365.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003643/0.5755, allocations: 1.156 MB / 366.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001075/0.5756, allocations: 4 kB / 366.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003662/0.5793, allocations: 1.204 MB / 368 MB, free: 12.78 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 6.923e-06/0.5794, allocations: 3.938 kB / 368 MB, free: 12.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.02833/0.6077, allocations: 7.887 MB / 375.9 MB, free: 5.805 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.475e-05/0.6078, allocations: 81.11 kB / 376 MB, free: 5.707 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001895/0.6097, allocations: 0.7989 MB / 376.8 MB, free: 5.086 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003206/0.6101, allocations: 55.94 kB / 376.9 MB, free: 5.035 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002667/0.6103, allocations: 317.7 kB / 377.2 MB, free: 4.812 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003429/0.6107, allocations: 170.7 kB / 377.3 MB, free: 4.672 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.6109, allocations: 27.42 kB / 377.4 MB, free: 4.656 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.611, allocations: 330.6 kB / 377.7 MB, free: 4.332 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003271/0.6143, allocations: 1.13 MB / 378.8 MB, free: 3.426 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003338/0.6177, allocations: 1.21 MB / 380 MB, free: 2.422 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003019/0.6207, allocations: 1.045 MB / 381.1 MB, free: 1.566 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.6208, allocations: 3.953 kB / 381.1 MB, free: 1.562 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01009/0.6309, allocations: 3.428 MB / 384.5 MB, free: 14.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.162e-05/0.6309, allocations: 8 kB / 384.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.631, allocations: 0 / 384.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02062/0.6516, allocations: 11.49 MB / 396 MB, free: 3.531 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.6528, allocations: 127.9 kB / 396.1 MB, free: 3.406 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01521/0.668, allocations: 7.124 MB / 403.2 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002994/0.671, allocations: 307.8 kB / 403.5 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002879/0.6714, allocations: 112 kB / 403.7 MB, free: 11.57 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.0007492/0.6721, allocations: 263.9 kB / 403.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003084/0.6724, allocations: 79.16 kB / 404 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002934/0.6727, allocations: 102.2 kB / 404.1 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.6728, allocations: 11.95 kB / 404.1 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.6728, allocations: 0 / 404.1 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.6728, allocations: 3.984 kB / 404.1 MB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0136/0.6864, allocations: 4.589 MB / 408.7 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.651e-05/0.6865, allocations: 7.953 kB / 408.7 MB, free: 6.434 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001011/0.6875, allocations: 99.92 kB / 408.8 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02119/0.7087, allocations: 11.37 MB / 420.2 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002703/0.7091, allocations: 55.95 kB / 420.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0147/0.7238, allocations: 6.847 MB / 427.1 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.7238, allocations: 12.03 kB / 427.1 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2363/0.9601, allocations: 4.526 MB / 431.6 MB, free: 116.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/0.9616, allocations: 405.7 kB / 432 MB, free: 116.2 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003718/0.962, allocations: 26.44 kB / 432 MB, free: 116.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003173/0.9652, allocations: 319.2 kB / 432.3 MB, free: 116.2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003202/0.9685, allocations: 0.6563 MB / 433 MB, free: 116.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004732/0.969, allocations: 100.6 kB / 433.1 MB, free: 116.2 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001579/0.9706, allocations: 0.6303 MB / 433.7 MB, free: 116.1 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.9706, allocations: 0.9844 kB / 433.7 MB, free: 116.1 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001423/0.972, allocations: 220.6 kB / 433.9 MB, free: 116.1 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.01221/0.9843, allocations: 6.286 MB / 440.2 MB, free: 115.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004709/0.989, allocations: 1.83 MB / 442.1 MB, free: 114.9 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/0.9891, allocations: 4.484 kB / 442.1 MB, free: 114.9 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002507/0.9916, allocations: 1.008 MB / 443.1 MB, free: 114.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008418/0.9925, allocations: 64.78 kB / 443.1 MB, free: 114.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02067/1.013, allocations: 10.87 MB / 454 MB, free: 109.4 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/1.014, allocations: 0.9274 MB / 454.9 MB, free: 108.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005537/1.014, allocations: 210.9 kB / 455.1 MB, free: 108.4 MB / 346.7 MB Notification: Performance of SimCode: time 2.164e-06/1.014, allocations: 3.188 kB / 455.1 MB, free: 108.4 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.117/4.132, allocations: 16.91 MB / 472 MB, free: 93.13 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat