Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.743/2.743, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.15e-05/3.169e-05, allocations: 2.75 kB / 249.7 MB, free: 5.289 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1159, allocations: 44.51 MB / 294.3 MB, free: 10.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5335/0.6494, allocations: 72.52 MB / 366.8 MB, free: 7.312 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.6498, allocations: 67.2 kB / 366.8 MB, free: 7.312 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02929/0.6791, allocations: 5.428 MB / 372.3 MB, free: 22.65 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.6792, allocations: 4 kB / 372.3 MB, free: 22.65 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.622e-05/0.6792, allocations: 7.844 kB / 372.3 MB, free: 22.64 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001891/0.6811, allocations: 0.5969 MB / 372.9 MB, free: 22.21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.6812, allocations: 11.62 kB / 372.9 MB, free: 22.21 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001186/0.6813, allocations: 51.55 kB / 372.9 MB, free: 22.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.6814, allocations: 38.75 kB / 373 MB, free: 22.15 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004553/0.6819, allocations: 275.6 kB / 373.2 MB, free: 21.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.195e-05/0.682, allocations: 12.34 kB / 373.3 MB, free: 21.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.6821, allocations: 23.19 kB / 373.3 MB, free: 21.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001017/0.6831, allocations: 328.3 kB / 373.6 MB, free: 21.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009377/0.6841, allocations: 310 kB / 373.9 MB, free: 21.88 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.814e-05/0.6841, allocations: 0 / 373.9 MB, free: 21.88 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.922e-05/0.6842, allocations: 4 kB / 373.9 MB, free: 21.87 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.6842, allocations: 7.781 kB / 373.9 MB, free: 21.87 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003605/0.6879, allocations: 1.06 MB / 375 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006611/0.6886, allocations: 259.7 kB / 375.2 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000434/0.689, allocations: 172.8 kB / 375.4 MB, free: 21.4 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.42e-05/0.6891, allocations: 11.19 kB / 375.4 MB, free: 21.4 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.6892, allocations: 34.11 kB / 375.4 MB, free: 21.36 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 4.489e-06/0.6892, allocations: 3.938 kB / 375.4 MB, free: 21.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.005125/0.6943, allocations: 1.359 MB / 376.8 MB, free: 20.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.6944, allocations: 55.75 kB / 376.9 MB, free: 20.74 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/0.6947, allocations: 181.5 kB / 377 MB, free: 20.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.446e-05/0.6948, allocations: 33.17 kB / 377.1 MB, free: 20.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.6949, allocations: 149.2 kB / 377.2 MB, free: 20.49 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.6951, allocations: 153 kB / 377.4 MB, free: 20.4 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.571e-05/0.6952, allocations: 0 / 377.4 MB, free: 20.4 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.6953, allocations: 339.8 kB / 377.7 MB, free: 20.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005115/0.6959, allocations: 167.4 kB / 377.9 MB, free: 20.08 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000536/0.6964, allocations: 235.7 kB / 378.1 MB, free: 20.01 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006434/0.6971, allocations: 146.8 kB / 378.2 MB, free: 20 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/0.6971, allocations: 3.719 kB / 378.2 MB, free: 20 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002633/0.6997, allocations: 0.5886 MB / 378.8 MB, free: 19.9 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.6998, allocations: 11.75 kB / 378.8 MB, free: 19.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.288e-05/0.6999, allocations: 0 / 378.8 MB, free: 19.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.7012, allocations: 378.6 kB / 379.2 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006386/0.7019, allocations: 69.77 kB / 379.3 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002402/0.7043, allocations: 1.356 MB / 380.6 MB, free: 18.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.7054, allocations: 85.14 kB / 380.7 MB, free: 18.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.7056, allocations: 27.34 kB / 380.7 MB, free: 18.8 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.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: brake1.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: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003505/0.7059, allocations: 109.4 kB / 380.8 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.7061, allocations: 35.05 kB / 380.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002629/0.7087, allocations: 0.6029 MB / 381.5 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.7088, allocations: 3.875 kB / 381.5 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.7088, allocations: 4 kB / 381.5 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.7088, allocations: 2.203 kB / 381.5 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004876/0.7137, allocations: 1.224 MB / 382.7 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.7138, allocations: 0 / 382.7 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006658/0.7144, allocations: 61.47 kB / 382.8 MB, free: 18.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00108/0.7155, allocations: 341.5 kB / 383.1 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.178e-05/0.7157, allocations: 14.5 kB / 383.1 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00199/0.7177, allocations: 1.303 MB / 384.4 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.338e-06/0.7177, allocations: 3.938 kB / 384.4 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002921/0.7206, allocations: 0.8735 MB / 385.3 MB, free: 16.44 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003601/0.7211, allocations: 142.2 kB / 385.4 MB, free: 16.32 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.7212, allocations: 15.48 kB / 385.5 MB, free: 16.31 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006573/0.7219, allocations: 46.89 kB / 385.5 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003453/0.7223, allocations: 108.7 kB / 385.6 MB, free: 16.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.513e-05/0.7224, allocations: 20.42 kB / 385.6 MB, free: 16.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002255/0.7226, allocations: 146.2 kB / 385.8 MB, free: 16.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.7226, allocations: 0 / 385.8 MB, free: 16.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007835/0.7234, allocations: 86.66 kB / 385.9 MB, free: 16.13 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00375/0.7272, allocations: 1.805 MB / 387.7 MB, free: 14.86 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001523/0.7288, allocations: 495.4 kB / 388.1 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.7288, allocations: 3.938 kB / 388.2 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008818/0.7297, allocations: 257.5 kB / 388.4 MB, free: 14.71 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006989/0.7304, allocations: 40.58 kB / 388.4 MB, free: 14.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004432/0.7349, allocations: 0.8913 MB / 389.3 MB, free: 14.14 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004392/0.7354, allocations: 0.786 MB / 390.1 MB, free: 13.4 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002748/0.7356, allocations: 30.88 kB / 390.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002831/0.7359, allocations: 92.12 kB / 390.2 MB, free: 13.37 MB / 314.7 MB Notification: Performance of SimCode: time 1.673e-06/0.736, allocations: 4 kB / 390.2 MB, free: 13.36 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09914/0.8351, allocations: 9.598 MB / 399.8 MB, free: 8.59 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004456/0.8356, allocations: 150.3 kB / 400 MB, free: 8.391 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.752/4.588, allocations: 0 / 400 MB, free: 8.391 MB / 314.7 MB "" Variables in the reference:time,mass1.s,mass1.v,mass2.s,mass2.v,brake.mode,brake.startBackward,brake.startForward,brake1.mode,brake1.startBackward,brake1.startForward Variables in the result:brake.a,brake.a_relfric,brake.cgeo,brake.f,brake.f0,brake.f0_max,brake.f_normalized,brake.flange_a.f,brake.flange_a.s,brake.flange_b.f,brake.flange_b.s,brake.fn,brake.fn_max,brake.free,brake.locked,brake.lossPower,brake.mode,brake.mue0,brake.mue_pos[1,1],brake.mue_pos[1,2],brake.peak,brake.s,brake.s_a,brake.s_b,brake.s_support,brake.sa,brake.startBackward,brake.startForward,brake.useHeatPort,brake.useSupport,brake.v,brake.v_relfric,brake.v_small,brake1.a,brake1.a_relfric,brake1.cgeo,brake1.f,brake1.f0,brake1.f0_max,brake1.f_normalized,brake1.flange_a.f,brake1.flange_a.s,brake1.flange_b.f,brake1.flange_b.s,brake1.fn,brake1.fn_max,brake1.free,brake1.locked,brake1.lossPower,brake1.mode,brake1.mue0,brake1.mue_pos[1,1],brake1.mue_pos[1,2],brake1.peak,brake1.s,brake1.s_a,brake1.s_b,brake1.s_support,brake1.sa,brake1.startBackward,brake1.startForward,brake1.support.f,brake1.support.s,brake1.useHeatPort,brake1.useSupport,brake1.v,brake1.v_relfric,brake1.v_small,der(brake.s),der(brake.v),der(brake1.flange_a.s),der(brake1.s),der(brake1.v),der(der(brake1.flange_a.s)),der(mass1.s),der(mass1.v),der(mass2.s),der(mass2.v),fixed.flange.f,fixed.flange.s,fixed.s0,mass1.L,mass1.a,mass1.flange_a.f,mass1.flange_a.s,mass1.flange_b.f,mass1.flange_b.s,mass1.m,mass1.s,mass1.stateSelect,mass1.v,mass2.L,mass2.a,mass2.flange_a.f,mass2.flange_a.s,mass2.flange_b.f,mass2.flange_b.s,mass2.m,mass2.s,mass2.stateSelect,mass2.v,step.height,step.offset,step.startTime,step.y,time