Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.784/2.784, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.482e-05/3.495e-05, allocations: 3.312 kB / 249.7 MB, free: 5.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1149, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5141/0.6291, allocations: 71.34 MB / 365.6 MB, free: 7.148 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002992/0.6295, allocations: 63.23 kB / 365.7 MB, free: 7.148 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03265/0.6622, allocations: 5.61 MB / 371.3 MB, free: 22.42 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.6622, allocations: 0 / 371.3 MB, free: 22.42 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.758e-05/0.6623, allocations: 6.625 kB / 371.3 MB, free: 22.42 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001767/0.6641, allocations: 0.5533 MB / 371.8 MB, free: 22 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.404e-05/0.6642, allocations: 7.625 kB / 371.8 MB, free: 22 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001458/0.6643, allocations: 54.16 kB / 371.9 MB, free: 21.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.6645, allocations: 37.91 kB / 371.9 MB, free: 21.94 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004446/0.6649, allocations: 250.2 kB / 372.2 MB, free: 21.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.809e-05/0.665, allocations: 12.16 kB / 372.2 MB, free: 21.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.6651, allocations: 23.44 kB / 372.2 MB, free: 21.7 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007306/0.6659, allocations: 210.7 kB / 372.4 MB, free: 21.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006848/0.6666, allocations: 203.6 kB / 372.6 MB, free: 21.67 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.674e-05/0.6667, allocations: 11.06 kB / 372.6 MB, free: 21.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.629e-05/0.6667, allocations: 0 / 372.6 MB, free: 21.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.6667, allocations: 7.688 kB / 372.6 MB, free: 21.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002354/0.6691, allocations: 0.7404 MB / 373.4 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008337/0.67, allocations: 333.7 kB / 373.7 MB, free: 21.33 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004231/0.6705, allocations: 159.9 kB / 373.9 MB, free: 21.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.923e-05/0.6705, allocations: 7.75 kB / 373.9 MB, free: 21.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/0.6706, allocations: 37.52 kB / 373.9 MB, free: 21.28 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 4.178e-06/0.6706, allocations: 0 / 373.9 MB, free: 21.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.004844/0.6754, allocations: 1.483 MB / 375.4 MB, free: 20.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.6755, allocations: 59.72 kB / 375.4 MB, free: 20.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.6758, allocations: 157.3 kB / 375.6 MB, free: 20.55 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.963e-05/0.6759, allocations: 25.7 kB / 375.6 MB, free: 20.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.676, allocations: 149.3 kB / 375.8 MB, free: 20.41 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002044/0.6762, allocations: 206.9 kB / 376 MB, free: 20.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.628e-05/0.6762, allocations: 0 / 376 MB, free: 20.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.6765, allocations: 344.4 kB / 376.3 MB, free: 19.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003937/0.6769, allocations: 126.2 kB / 376.4 MB, free: 19.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004176/0.6773, allocations: 136.3 kB / 376.6 MB, free: 19.94 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004421/0.6778, allocations: 147 kB / 376.7 MB, free: 19.94 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.6778, allocations: 0 / 376.7 MB, free: 19.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001153/0.6789, allocations: 396.3 kB / 377.1 MB, free: 19.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.967e-05/0.679, allocations: 3.812 kB / 377.1 MB, free: 19.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.679, allocations: 0 / 377.1 MB, free: 19.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.136e-05/0.6791, allocations: 7.859 kB / 377.1 MB, free: 19.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.6803, allocations: 129.5 kB / 377.2 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.648e-05/0.6804, allocations: 3.875 kB / 377.2 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005314/0.6809, allocations: 20.33 kB / 377.2 MB, free: 19.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.952e-05/0.681, allocations: 17.39 kB / 377.3 MB, free: 19.86 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002361/0.6813, allocations: 108.7 kB / 377.4 MB, free: 19.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.6814, allocations: 35.19 kB / 377.4 MB, free: 19.73 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001824/0.6816, allocations: 43.81 kB / 377.5 MB, free: 19.72 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.6816, allocations: 7.781 kB / 377.5 MB, free: 19.72 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.49e-05/0.6816, allocations: 7.953 kB / 377.5 MB, free: 19.71 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.6817, allocations: 2.25 kB / 377.5 MB, free: 19.71 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003107/0.6848, allocations: 1.163 MB / 378.6 MB, free: 19.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/0.6849, allocations: 7.938 kB / 378.6 MB, free: 19.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001319/0.6862, allocations: 129.4 kB / 378.8 MB, free: 19.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.298e-05/0.6863, allocations: 11.7 kB / 378.8 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.778e-05/0.6863, allocations: 3.906 kB / 378.8 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.528e-05/0.6864, allocations: 9.141 kB / 378.8 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.171e-05/0.6864, allocations: 11.83 kB / 378.8 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/0.6882, allocations: 0.9818 MB / 379.8 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.6885, allocations: 110.8 kB / 379.9 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.428e-05/0.6886, allocations: 7.906 kB / 379.9 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006469/0.6893, allocations: 26.28 kB / 379.9 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001632/0.6894, allocations: 46.62 kB / 380 MB, free: 18.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.947e-05/0.6895, allocations: 23.44 kB / 380 MB, free: 18.45 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002066/0.6898, allocations: 136.5 kB / 380.1 MB, free: 18.36 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6898, allocations: 0 / 380.1 MB, free: 18.36 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007883/0.6906, allocations: 73.75 kB / 380.2 MB, free: 18.36 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002848/0.6934, allocations: 2.767 MB / 383 MB, free: 16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.6945, allocations: 355.8 kB / 383.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.6946, allocations: 0 / 383.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005933/0.6952, allocations: 213.6 kB / 383.5 MB, free: 15.96 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.6963, allocations: 65.67 kB / 383.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003098/0.6994, allocations: 0.8546 MB / 384.4 MB, free: 15.4 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005108/0.7, allocations: 0.7988 MB / 385.2 MB, free: 14.7 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004708/0.7004, allocations: 47.09 kB / 385.3 MB, free: 14.69 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003776/0.7008, allocations: 118.6 kB / 385.4 MB, free: 14.68 MB / 314.7 MB Notification: Performance of SimCode: time 1.523e-06/0.7009, allocations: 3.938 kB / 385.4 MB, free: 14.68 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05962/0.7605, allocations: 6.42 MB / 391.8 MB, free: 12.18 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003846/0.761, allocations: 155.4 kB / 392 MB, free: 11.98 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.49/4.251, allocations: 0 / 392 MB, free: 11.98 MB / 314.7 MB "" Variables in the reference:time,elastoGap1.v_rel,elastoGap2.s_rel,springDamper1.v_rel,springDamper2.s_rel Variables in the result:d,der(der(elastoGap1.flange_a.s)),der(der(elastoGap1.flange_b.s)),der(der(elastoGap2.flange_a.s)),der(der(elastoGap2.flange_b.s)),der(der(mass1.flange_a.s)),der(der(mass1.flange_b.s)),der(elastoGap1.flange_a.s),der(elastoGap1.flange_b.s),der(elastoGap1.s_rel),der(elastoGap1.v_rel),der(elastoGap2.flange_a.s),der(elastoGap2.flange_b.s),der(elastoGap2.s_rel),der(elastoGap2.v_rel),der(mass1.flange_a.s),der(mass1.flange_b.s),der(mass1.s),der(mass1.v),der(mass2.s),der(mass2.v),der(springDamper1.s_rel),der(springDamper1.v_rel),der(springDamper2.s_rel),der(springDamper2.v_rel),elastoGap1.c,elastoGap1.contact,elastoGap1.d,elastoGap1.f,elastoGap1.f_c,elastoGap1.f_d,elastoGap1.f_d2,elastoGap1.flange_a.f,elastoGap1.flange_a.s,elastoGap1.flange_b.f,elastoGap1.flange_b.s,elastoGap1.lossPower,elastoGap1.n,elastoGap1.s_nominal,elastoGap1.s_rel,elastoGap1.s_rel0,elastoGap1.stateSelect,elastoGap1.useHeatPort,elastoGap1.v_rel,elastoGap2.c,elastoGap2.contact,elastoGap2.d,elastoGap2.f,elastoGap2.f_c,elastoGap2.f_d,elastoGap2.f_d2,elastoGap2.flange_a.f,elastoGap2.flange_a.s,elastoGap2.flange_b.f,elastoGap2.flange_b.s,elastoGap2.lossPower,elastoGap2.n,elastoGap2.s_nominal,elastoGap2.s_rel,elastoGap2.s_rel0,elastoGap2.stateSelect,elastoGap2.useHeatPort,elastoGap2.v_rel,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,rod1.L,rod1.flange_a.f,rod1.flange_a.s,rod1.flange_b.f,rod1.flange_b.s,rod1.s,rod2.L,rod2.flange_a.f,rod2.flange_a.s,rod2.flange_b.f,rod2.flange_b.s,rod2.s,springDamper1.c,springDamper1.d,springDamper1.f,springDamper1.f_c,springDamper1.f_d,springDamper1.flange_a.f,springDamper1.flange_a.s,springDamper1.flange_b.f,springDamper1.flange_b.s,springDamper1.lossPower,springDamper1.s_nominal,springDamper1.s_rel,springDamper1.s_rel0,springDamper1.stateSelect,springDamper1.useHeatPort,springDamper1.v_rel,springDamper2.c,springDamper2.d,springDamper2.f,springDamper2.f_c,springDamper2.f_d,springDamper2.flange_a.f,springDamper2.flange_a.s,springDamper2.flange_b.f,springDamper2.flange_b.s,springDamper2.lossPower,springDamper2.s_nominal,springDamper2.s_rel,springDamper2.s_rel0,springDamper2.stateSelect,springDamper2.useHeatPort,springDamper2.v_rel,time