Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.167/2.167, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.116e-05/3.082e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3029, allocations: 44.49 MB / 294.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1388/0.4417, allocations: 75.6 MB / 369.8 MB, free: 6.301 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/0.4421, allocations: 75.95 kB / 369.9 MB, free: 6.227 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07164/0.5137, allocations: 13.47 MB / 383.3 MB, free: 8.711 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.5138, allocations: 0 / 383.3 MB, free: 8.711 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.792e-05/0.5139, allocations: 12 kB / 383.4 MB, free: 8.699 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.005222/0.5191, allocations: 1.091 MB / 384.4 MB, free: 7.562 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.5192, allocations: 8.031 kB / 384.4 MB, free: 7.555 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000508/0.5197, allocations: 87 kB / 384.5 MB, free: 7.469 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/0.5211, allocations: 483.1 kB / 385 MB, free: 6.957 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.132e-05/0.5212, allocations: 12 kB / 385 MB, free: 6.945 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002283/0.5215, allocations: 20 kB / 385 MB, free: 6.926 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003072/0.5246, allocations: 1.028 MB / 386.1 MB, free: 5.898 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002559/0.5272, allocations: 0.825 MB / 386.9 MB, free: 5.059 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.261e-05/0.5273, allocations: 11.91 kB / 386.9 MB, free: 5.047 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001575/0.5275, allocations: 0 / 386.9 MB, free: 5.047 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/0.5275, allocations: 8 kB / 386.9 MB, free: 5.039 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009382/0.5369, allocations: 2.334 MB / 389.2 MB, free: 2.637 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/0.5387, allocations: 0.6254 MB / 389.9 MB, free: 1.996 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001368/0.5401, allocations: 497.6 kB / 390.4 MB, free: 1.504 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001598/0.5403, allocations: 11.98 kB / 390.4 MB, free: 1.492 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001958/0.5423, allocations: 0.7355 MB / 391.1 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 5.029e-06/0.5423, allocations: 0 / 391.1 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.01111/0.5534, allocations: 3.276 MB / 394.4 MB, free: 13.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.979e-05/0.5536, allocations: 82.17 kB / 394.5 MB, free: 13.26 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009869/0.5546, allocations: 0.4993 MB / 395 MB, free: 12.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000365/0.5549, allocations: 45.69 kB / 395 MB, free: 12.7 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003087/0.5553, allocations: 298.9 kB / 395.3 MB, free: 12.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003755/0.5557, allocations: 165.8 kB / 395.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.5558, allocations: 0 / 395.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.556, allocations: 334.8 kB / 395.8 MB, free: 11.9 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001527/0.5575, allocations: 0.5013 MB / 396.3 MB, free: 11.4 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001771/0.5593, allocations: 0.5845 MB / 396.9 MB, free: 10.79 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/0.5608, allocations: 443.6 kB / 397.3 MB, free: 10.35 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.742e-06/0.5609, allocations: 0 / 397.3 MB, free: 10.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005729/0.5666, allocations: 1.6 MB / 398.9 MB, free: 8.734 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.391e-05/0.5667, allocations: 4 kB / 398.9 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.5e-05/0.5668, allocations: 12 kB / 398.9 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009495/0.5763, allocations: 4.118 MB / 403 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.5774, allocations: 119.9 kB / 403.2 MB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01198/0.5894, allocations: 5.474 MB / 408.6 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00281/0.5923, allocations: 287.8 kB / 408.9 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002884/0.5926, allocations: 104 kB / 409 MB, free: 14.35 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.0005638/0.5932, allocations: 145 kB / 409.2 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005214/0.5984, allocations: 1.518 MB / 410.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003639/0.5988, allocations: 75.19 kB / 410.7 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005013/0.6038, allocations: 1.462 MB / 412.2 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.6039, allocations: 8 kB / 412.2 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.6039, allocations: 0 / 412.2 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.838e-05/0.604, allocations: 3.984 kB / 412.2 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007931/0.6119, allocations: 2.439 MB / 414.7 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.612, allocations: 0 / 414.7 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/0.613, allocations: 104 kB / 414.8 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00897/0.622, allocations: 4.149 MB / 418.9 MB, free: 4.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002218/0.6223, allocations: 31.97 kB / 418.9 MB, free: 4.309 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2544/0.8767, allocations: 5.135 MB / 424.1 MB, free: 111.1 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.879e-06/0.8767, allocations: 8.156 kB / 424.1 MB, free: 111.1 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007412/0.8842, allocations: 2.209 MB / 426.3 MB, free: 110.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/0.8853, allocations: 315.3 kB / 426.6 MB, free: 110.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003757/0.8858, allocations: 14.59 kB / 426.6 MB, free: 110.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003029/0.8888, allocations: 305.2 kB / 426.9 MB, free: 110.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002853/0.8917, allocations: 0.6555 MB / 427.6 MB, free: 110.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003883/0.8921, allocations: 91.38 kB / 427.7 MB, free: 110.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009984/0.8932, allocations: 487.9 kB / 428.1 MB, free: 110.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.624e-06/0.8932, allocations: 1.344 kB / 428.1 MB, free: 110.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001643/0.8949, allocations: 220.7 kB / 428.3 MB, free: 110.7 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.007487/0.9024, allocations: 3.096 MB / 431.4 MB, free: 109.6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003769/0.9062, allocations: 1.313 MB / 432.8 MB, free: 109.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/0.9063, allocations: 3.531 kB / 432.8 MB, free: 109.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001901/0.9082, allocations: 0.764 MB / 433.5 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.001023/0.9093, allocations: 49.77 kB / 433.6 MB, free: 108.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008853/0.9182, allocations: 2.014 MB / 435.6 MB, free: 108 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005332/0.9187, allocations: 0.9346 MB / 436.5 MB, free: 107.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005454/0.9193, allocations: 197.1 kB / 436.7 MB, free: 107.2 MB / 362.7 MB Notification: Performance of SimCode: time 1.753e-06/0.9194, allocations: 0 / 436.7 MB, free: 107.2 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.129/4.048, allocations: 18.41 MB / 455.1 MB, free: 93.41 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat