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 2.176/2.176, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.609e-05/2.626e-05, allocations: 0 / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.335, allocations: 44.5 MB / 294.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1408/0.4759, allocations: 75.6 MB / 369.8 MB, free: 6.246 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003255/0.4763, allocations: 71.95 kB / 369.9 MB, free: 6.176 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07561/0.5519, allocations: 13.47 MB / 383.4 MB, free: 8.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.807e-06/0.552, allocations: 0 / 383.4 MB, free: 8.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001346/0.5522, allocations: 12 kB / 383.4 MB, free: 8.648 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.008607/0.5608, allocations: 1.094 MB / 384.5 MB, free: 7.508 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.75e-05/0.5609, allocations: 8.031 kB / 384.5 MB, free: 7.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008106/0.5617, allocations: 83.02 kB / 384.6 MB, free: 7.418 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002325/0.5641, allocations: 491.1 kB / 385 MB, free: 6.898 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.5643, allocations: 12 kB / 385 MB, free: 6.887 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004805/0.5648, allocations: 23.98 kB / 385.1 MB, free: 6.863 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00529/0.5701, allocations: 1.02 MB / 386.1 MB, free: 5.844 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004329/0.5745, allocations: 0.8289 MB / 386.9 MB, free: 5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.081e-05/0.5747, allocations: 7.906 kB / 386.9 MB, free: 4.992 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000267/0.575, allocations: 0 / 386.9 MB, free: 4.992 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.824e-05/0.575, allocations: 8 kB / 386.9 MB, free: 4.984 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01504/0.5901, allocations: 2.334 MB / 389.3 MB, free: 2.582 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002745/0.5929, allocations: 0.622 MB / 389.9 MB, free: 1.941 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00232/0.5953, allocations: 497.6 kB / 390.4 MB, free: 1.449 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002391/0.5956, allocations: 4 kB / 390.4 MB, free: 1.445 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003259/0.5989, allocations: 0.7355 MB / 391.1 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 8.746e-06/0.599, allocations: 0 / 391.1 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.01787/0.6169, allocations: 3.276 MB / 394.4 MB, free: 13.31 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.904e-05/0.617, allocations: 86.16 kB / 394.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001578/0.6186, allocations: 0.4993 MB / 395 MB, free: 12.7 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004916/0.6192, allocations: 41.69 kB / 395 MB, free: 12.65 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000529/0.6198, allocations: 280.4 kB / 395.3 MB, free: 12.37 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006484/0.6204, allocations: 169.8 kB / 395.5 MB, free: 12.2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/0.6207, allocations: 0 / 395.5 MB, free: 12.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003877/0.6211, allocations: 382.8 kB / 395.8 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002434/0.6236, allocations: 0.4974 MB / 396.3 MB, free: 11.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002547/0.6262, allocations: 0.5807 MB / 396.9 MB, free: 10.71 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002301/0.6286, allocations: 447.6 kB / 397.3 MB, free: 10.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.309e-05/0.6287, allocations: 0 / 397.3 MB, free: 10.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.009162/0.6378, allocations: 1.623 MB / 399 MB, free: 8.633 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.326e-05/0.638, allocations: 12 kB / 399 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002141/0.6382, allocations: 11.98 kB / 399 MB, free: 8.609 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00999/0.6483, allocations: 4.122 MB / 403.1 MB, free: 4.473 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/0.6494, allocations: 123.8 kB / 403.2 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01252/0.6619, allocations: 5.466 MB / 408.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002904/0.6649, allocations: 284 kB / 409 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004205/0.6654, allocations: 104 kB / 409.1 MB, free: 14.25 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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.0005977/0.666, allocations: 157.1 kB / 409.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00549/0.6715, allocations: 1.525 MB / 410.8 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004375/0.672, allocations: 67.2 kB / 410.8 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00543/0.6775, allocations: 1.458 MB / 412.3 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/0.6775, allocations: 8 kB / 412.3 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.6776, allocations: 0 / 412.3 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/0.6776, allocations: 3.984 kB / 412.3 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008593/0.6862, allocations: 2.447 MB / 414.7 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.6863, allocations: 0 / 414.7 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.6873, allocations: 99.97 kB / 414.8 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009368/0.6967, allocations: 4.145 MB / 419 MB, free: 4.227 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002678/0.6971, allocations: 35.97 kB / 419 MB, free: 4.191 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2653/0.9624, allocations: 5.13 MB / 424.2 MB, free: 111.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.239e-05/0.9625, allocations: 4.938 kB / 424.2 MB, free: 111.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00754/0.97, allocations: 2.226 MB / 426.4 MB, free: 111 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.9712, allocations: 310.5 kB / 426.7 MB, free: 110.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003692/0.9717, allocations: 16.59 kB / 426.7 MB, free: 110.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003027/0.9747, allocations: 294.2 kB / 427 MB, free: 110.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002896/0.9776, allocations: 0.6592 MB / 427.6 MB, free: 110.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004088/0.9781, allocations: 95.77 kB / 427.7 MB, free: 110.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001039/0.9792, allocations: 490.5 kB / 428.2 MB, free: 110.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.322e-06/0.9792, allocations: 0 / 428.2 MB, free: 110.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002003/0.9812, allocations: 215.9 kB / 428.4 MB, free: 110.8 MB / 362.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.007923/0.9892, allocations: 3.092 MB / 431.5 MB, free: 109.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003778/0.9931, allocations: 1.322 MB / 432.8 MB, free: 109.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/0.9931, allocations: 0 / 432.8 MB, free: 109.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002322/0.9954, allocations: 0.81 MB / 433.7 MB, free: 108.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.9966, allocations: 56.31 kB / 433.7 MB, free: 108.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00897/1.006, allocations: 1.973 MB / 435.7 MB, free: 108.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005021/1.006, allocations: 0.9335 MB / 436.6 MB, free: 107.4 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004501/1.007, allocations: 36.25 kB / 436.7 MB, free: 107.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004364/1.007, allocations: 196.8 kB / 436.8 MB, free: 107.3 MB / 362.7 MB Notification: Performance of SimCode: time 1.333e-06/1.007, allocations: 4 kB / 436.8 MB, free: 107.3 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08141/1.089, allocations: 23.33 MB / 460.2 MB, free: 88.32 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002375/1.089, allocations: 141.8 kB / 460.3 MB, free: 88.12 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.545/4.634, allocations: 0 / 460.3 MB, free: 88.12 MB / 362.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