Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.175/2.175, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.091e-05/4.115e-05, allocations: 4 kB / 292.7 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1134, allocations: 50.41 MB / 343.2 MB, free: 5.812 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4903/0.6038, allocations: 82.56 MB / 425.7 MB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/0.6041, allocations: 75.08 kB / 425.8 MB, free: 11.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07241/0.6765, allocations: 13.87 MB / 439.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.478e-06/0.6766, allocations: 0 / 439.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.999e-05/0.6767, allocations: 15.94 kB / 439.7 MB, free: 15.02 MB / 362.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.004961/0.6816, allocations: 1.087 MB / 440.8 MB, free: 13.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.675e-05/0.6817, allocations: 12.03 kB / 440.8 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002679/0.682, allocations: 67.91 kB / 440.8 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003174/0.6823, allocations: 79.06 kB / 440.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.6836, allocations: 494.3 kB / 441.4 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.847e-05/0.6836, allocations: 30.84 kB / 441.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001957/0.6839, allocations: 38.16 kB / 441.5 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00246/0.6863, allocations: 0.8731 MB / 442.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.088e-05/0.6864, allocations: 8 kB / 442.4 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001468/0.6866, allocations: 15.25 kB / 442.4 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.6866, allocations: 8 kB / 442.4 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003057/0.6897, allocations: 1.035 MB / 443.4 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009012/0.6987, allocations: 2.405 MB / 445.8 MB, free: 9.785 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001778/0.7006, allocations: 0.6434 MB / 446.5 MB, free: 9.316 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001355/0.7019, allocations: 0.4962 MB / 447 MB, free: 8.973 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001127/0.7021, allocations: 7.984 kB / 447 MB, free: 8.965 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001966/0.704, allocations: 0.7469 MB / 447.7 MB, free: 8.387 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 3.957e-06/0.7041, allocations: 4 kB / 447.7 MB, free: 8.383 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.01058/0.7147, allocations: 3.321 MB / 451 MB, free: 5.598 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.949e-05/0.7148, allocations: 85.05 kB / 451.1 MB, free: 5.496 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.7159, allocations: 0.5273 MB / 451.6 MB, free: 5.055 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002818/0.7162, allocations: 48.31 kB / 451.7 MB, free: 5.012 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002958/0.7165, allocations: 296.5 kB / 452 MB, free: 4.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003037/0.7168, allocations: 174.5 kB / 452.2 MB, free: 4.676 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.7169, allocations: 14.81 kB / 452.2 MB, free: 4.672 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002187/0.7172, allocations: 381.1 kB / 452.5 MB, free: 4.316 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001505/0.7187, allocations: 0.5137 MB / 453.1 MB, free: 3.965 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/0.7204, allocations: 0.591 MB / 453.6 MB, free: 3.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.7219, allocations: 449.7 kB / 454.1 MB, free: 3.191 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/0.722, allocations: 7.953 kB / 454.1 MB, free: 3.184 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005806/0.7278, allocations: 1.672 MB / 455.8 MB, free: 1.602 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/0.7278, allocations: 12.06 kB / 455.8 MB, free: 1.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.588e-05/0.7279, allocations: 8 kB / 455.8 MB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0093/0.7372, allocations: 4.133 MB / 459.9 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.7383, allocations: 115.9 kB / 460 MB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01307/0.7514, allocations: 5.395 MB / 465.4 MB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00315/0.7547, allocations: 296 kB / 465.7 MB, free: 7.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003635/0.7551, allocations: 108 kB / 465.8 MB, free: 7.238 MB / 378.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 (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.0004678/0.7556, allocations: 151.3 kB / 466 MB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002764/0.7559, allocations: 71.16 kB / 466 MB, free: 7.016 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005413/0.7613, allocations: 1.482 MB / 467.5 MB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.378e-05/0.7614, allocations: 8 kB / 467.5 MB, free: 5.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.7614, allocations: 3.938 kB / 467.5 MB, free: 5.496 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.507e-05/0.7614, allocations: 3.984 kB / 467.5 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008518/0.77, allocations: 2.52 MB / 470.1 MB, free: 2.898 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.792e-05/0.7701, allocations: 3.984 kB / 470.1 MB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.7711, allocations: 99.97 kB / 470.2 MB, free: 2.797 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009349/0.7805, allocations: 4.145 MB / 474.3 MB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002504/0.7808, allocations: 43.95 kB / 474.3 MB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01139/0.7922, allocations: 5.11 MB / 479.5 MB, free: 9.184 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.7923, allocations: 3.984 kB / 479.5 MB, free: 9.18 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007386/0.7997, allocations: 2.259 MB / 481.7 MB, free: 6.859 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/0.8007, allocations: 312.1 kB / 482 MB, free: 6.535 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002563/0.801, allocations: 24.44 kB / 482 MB, free: 6.512 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003046/0.8041, allocations: 307.7 kB / 482.3 MB, free: 6.211 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00288/0.807, allocations: 0.6471 MB / 483 MB, free: 5.562 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003353/0.8074, allocations: 104 kB / 483.1 MB, free: 5.461 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001147/0.8085, allocations: 0.5108 MB / 483.6 MB, free: 4.957 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.8086, allocations: 0 / 483.6 MB, free: 4.957 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001574/0.8101, allocations: 240 kB / 483.8 MB, free: 4.723 MB / 394.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) * 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.008037/0.8182, allocations: 3.142 MB / 487 MB, free: 1.516 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004593/0.8229, allocations: 1.328 MB / 488.3 MB, free: 164 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/0.8229, allocations: 0 / 488.3 MB, free: 164 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002706/0.8256, allocations: 0.8278 MB / 489.1 MB, free: 15.31 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009653/0.8267, allocations: 63.45 kB / 489.2 MB, free: 15.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009628/0.8363, allocations: 2.011 MB / 491.2 MB, free: 13.19 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007624/0.8371, allocations: 0.9378 MB / 492.1 MB, free: 12.23 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003876/0.8375, allocations: 35.28 kB / 492.2 MB, free: 12.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00048/0.838, allocations: 199.3 kB / 492.4 MB, free: 12 MB / 410.7 MB Notification: Performance of SimCode: time 1.513e-06/0.8381, allocations: 0 / 492.4 MB, free: 12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08496/0.923, allocations: 26.22 MB / 0.5064 GB, free: 1.793 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003024/0.9234, allocations: 187 kB / 0.5066 GB, free: 1.562 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.77/4.694, allocations: 0 / 0.5066 GB, free: 1.562 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat