Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.19/2.19, allocations: 205.8 MB / 218.9 MB, free: 9.352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.16e-05/4.18e-05, allocations: 4 kB / 269.4 MB, free: 6.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1147, allocations: 47.57 MB / 317 MB, free: 6.656 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4732/0.588, allocations: 78.24 MB / 395.3 MB, free: 9.758 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/0.5883, allocations: 72.12 kB / 395.3 MB, free: 9.723 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02104/0.6094, allocations: 4.009 MB / 399.3 MB, free: 6.293 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6094, allocations: 192 / 399.3 MB, free: 6.293 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.516e-05/0.6095, allocations: 4 kB / 399.3 MB, free: 6.289 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001395/0.6109, allocations: 0.5308 MB / 399.9 MB, free: 5.723 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.553e-05/0.611, allocations: 12.03 kB / 399.9 MB, free: 5.711 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.599e-05/0.6111, allocations: 49.98 kB / 399.9 MB, free: 5.664 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.6112, allocations: 27.66 kB / 400 MB, free: 5.637 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003885/0.6116, allocations: 221.9 kB / 400.2 MB, free: 5.391 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.331e-05/0.6116, allocations: 19.77 kB / 400.2 MB, free: 5.375 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.99e-05/0.6117, allocations: 27.48 kB / 400.2 MB, free: 5.355 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005678/0.6123, allocations: 208.8 kB / 400.4 MB, free: 5.195 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.464e-05/0.6123, allocations: 3.906 kB / 400.4 MB, free: 5.191 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.547e-05/0.6124, allocations: 7.938 kB / 400.4 MB, free: 5.188 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.6124, allocations: 4 kB / 400.4 MB, free: 5.184 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004382/0.6128, allocations: 142.3 kB / 400.6 MB, free: 5.086 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001686/0.6145, allocations: 0.646 MB / 401.2 MB, free: 4.484 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005864/0.6152, allocations: 175.8 kB / 401.4 MB, free: 4.352 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.6154, allocations: 87.36 kB / 401.5 MB, free: 4.297 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.971e-05/0.6155, allocations: 0 / 401.5 MB, free: 4.297 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004085/0.6159, allocations: 145.8 kB / 401.6 MB, free: 4.172 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 2.635e-06/0.6159, allocations: 0 / 401.6 MB, free: 4.172 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.0023/0.6183, allocations: 0.8824 MB / 402.5 MB, free: 3.332 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.6184, allocations: 59.39 kB / 402.6 MB, free: 3.262 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.6186, allocations: 152.8 kB / 402.7 MB, free: 3.121 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.538e-05/0.6187, allocations: 33.39 kB / 402.7 MB, free: 3.086 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.6188, allocations: 127.9 kB / 402.9 MB, free: 2.973 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.6189, allocations: 89.97 kB / 403 MB, free: 2.895 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/0.619, allocations: 7.562 kB / 403 MB, free: 2.895 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.6192, allocations: 338.4 kB / 403.3 MB, free: 2.562 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000255/0.6194, allocations: 79.33 kB / 403.4 MB, free: 2.516 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002907/0.6197, allocations: 118.6 kB / 403.5 MB, free: 2.418 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003024/0.62, allocations: 110 kB / 403.6 MB, free: 2.328 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.6201, allocations: 0 / 403.6 MB, free: 2.328 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001063/0.6211, allocations: 346.6 kB / 403.9 MB, free: 2.051 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.488e-05/0.6212, allocations: 37.64 kB / 404 MB, free: 2.008 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.941e-05/0.6213, allocations: 0 / 404 MB, free: 2.008 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003436/0.6216, allocations: 64.06 kB / 404 MB, free: 1.957 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004197/0.622, allocations: 55.78 kB / 404.1 MB, free: 1.906 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007222/0.6228, allocations: 0.6055 MB / 404.7 MB, free: 1.309 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005455/0.6234, allocations: 43.7 kB / 404.7 MB, free: 1.273 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.846e-05/0.6234, allocations: 12.06 kB / 404.7 MB, free: 1.262 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001689/0.6236, allocations: 128.5 kB / 404.9 MB, free: 1.141 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.118e-05/0.6237, allocations: 19.77 kB / 404.9 MB, free: 1.121 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008621/0.6246, allocations: 286.2 kB / 405.2 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.6246, allocations: 4 kB / 405.2 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.6246, allocations: 0 / 405.2 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.6246, allocations: 0 / 405.2 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.6262, allocations: 0.6453 MB / 405.8 MB, free: 316 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.6263, allocations: 3.938 kB / 405.8 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004672/0.6268, allocations: 50.72 kB / 405.9 MB, free: 264 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002844/0.6271, allocations: 57.36 kB / 405.9 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.493e-05/0.6271, allocations: 18.33 kB / 405.9 MB, free: 204 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006898/0.6278, allocations: 0.5949 MB / 406.5 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.6279, allocations: 0 / 406.5 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.6291, allocations: 485 kB / 407 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.6293, allocations: 107.9 kB / 407.1 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.289e-05/0.6294, allocations: 7.125 kB / 407.1 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004846/0.6299, allocations: 43.11 kB / 407.2 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.63, allocations: 38.5 kB / 407.2 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-05/0.6301, allocations: 11.23 kB / 407.2 MB, free: 15.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001848/0.6303, allocations: 128.6 kB / 407.3 MB, free: 14.9 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6303, allocations: 0 / 407.3 MB, free: 14.9 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005701/0.6309, allocations: 75.17 kB / 407.4 MB, free: 14.84 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001843/0.6328, allocations: 1.118 MB / 408.5 MB, free: 13.79 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009376/0.6338, allocations: 299 kB / 408.8 MB, free: 13.54 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.6338, allocations: 4.125 kB / 408.8 MB, free: 13.54 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004427/0.6342, allocations: 125.1 kB / 409 MB, free: 13.45 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005312/0.6348, allocations: 27.52 kB / 409 MB, free: 13.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.6368, allocations: 0.5903 MB / 409.6 MB, free: 12.84 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004313/0.6373, allocations: 0.7401 MB / 410.3 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002059/0.6375, allocations: 22.08 kB / 410.3 MB, free: 12.05 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.6377, allocations: 60.41 kB / 410.4 MB, free: 12.03 MB / 330.7 MB Notification: Performance of SimCode: time 1.553e-06/0.6377, allocations: 3.938 kB / 410.4 MB, free: 12.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03204/0.6697, allocations: 5.328 MB / 415.7 MB, free: 6.789 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003748/0.6702, allocations: 183.4 kB / 415.9 MB, free: 6.562 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.681/3.351, allocations: 0 / 415.9 MB, free: 6.562 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat does not exist to compare? outputFormat=mat