Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.122/2.122, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.248e-05/3.267e-05, allocations: 0 / 292.2 MB, free: 8.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1216, allocations: 50.39 MB / 342.6 MB, free: 5.852 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5737/0.6954, allocations: 79.36 MB / 422 MB, free: 14.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004524/0.6959, allocations: 75.77 kB / 422.1 MB, free: 14.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02977/0.7257, allocations: 4.094 MB / 426.2 MB, free: 11 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.7258, allocations: 4 kB / 426.2 MB, free: 10.99 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.114e-05/0.7258, allocations: 4 kB / 426.2 MB, free: 10.99 MB / 346.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.001349/0.7272, allocations: 0.5165 MB / 426.7 MB, free: 10.43 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.7272, allocations: 8.031 kB / 426.7 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.695e-05/0.7273, allocations: 53.05 kB / 426.7 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.466e-05/0.7275, allocations: 27.7 kB / 426.8 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003734/0.7278, allocations: 227.7 kB / 427 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.607e-05/0.7279, allocations: 15.44 kB / 427 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.075e-05/0.728, allocations: 20.94 kB / 427 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005593/0.7285, allocations: 195.8 kB / 427.2 MB, free: 9.926 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.7286, allocations: 7.953 kB / 427.2 MB, free: 9.918 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.7286, allocations: 10.88 kB / 427.2 MB, free: 9.914 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.7287, allocations: 4 kB / 427.2 MB, free: 9.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004437/0.7291, allocations: 138.3 kB / 427.4 MB, free: 9.816 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001599/0.7307, allocations: 0.6573 MB / 428 MB, free: 9.203 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005902/0.7314, allocations: 171.2 kB / 428.2 MB, free: 9.078 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/0.7316, allocations: 82.59 kB / 428.3 MB, free: 9.023 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.871e-05/0.7317, allocations: 4 kB / 428.3 MB, free: 9.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004011/0.7321, allocations: 157.6 kB / 428.4 MB, free: 8.887 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.382e-05/0.7322, allocations: 0 / 428.4 MB, free: 8.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.002259/0.7344, allocations: 0.8785 MB / 429.3 MB, free: 8.055 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.776e-05/0.7345, allocations: 55.41 kB / 429.4 MB, free: 7.988 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002388/0.7348, allocations: 160.5 kB / 429.5 MB, free: 7.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.397e-05/0.7349, allocations: 37.45 kB / 429.6 MB, free: 7.801 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.735, allocations: 127.9 kB / 429.7 MB, free: 7.688 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.7351, allocations: 97.64 kB / 429.8 MB, free: 7.605 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.7351, allocations: 3.812 kB / 429.8 MB, free: 7.605 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.7353, allocations: 329.6 kB / 430.1 MB, free: 7.281 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/0.7356, allocations: 83.94 kB / 430.2 MB, free: 7.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002913/0.7359, allocations: 123.1 kB / 430.3 MB, free: 7.129 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.7362, allocations: 108 kB / 430.4 MB, free: 7.043 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.7362, allocations: 4 kB / 430.4 MB, free: 7.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001032/0.7373, allocations: 337.9 kB / 430.8 MB, free: 6.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.455e-05/0.7373, allocations: 33.69 kB / 430.8 MB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.7374, allocations: 4 kB / 430.8 MB, free: 6.727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003276/0.7377, allocations: 64.39 kB / 430.9 MB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004202/0.7382, allocations: 51.34 kB / 430.9 MB, free: 6.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007006/0.7389, allocations: 0.6141 MB / 431.5 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005387/0.7394, allocations: 50.81 kB / 431.6 MB, free: 5.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.187e-05/0.7395, allocations: 8 kB / 431.6 MB, free: 5.973 MB / 346.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.0001624/0.7397, allocations: 126.4 kB / 431.7 MB, free: 5.855 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.115e-05/0.7398, allocations: 19.8 kB / 431.7 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008705/0.7406, allocations: 280.7 kB / 432 MB, free: 5.625 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.7407, allocations: 4 kB / 432 MB, free: 5.621 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.7407, allocations: 3.953 kB / 432 MB, free: 5.617 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.7407, allocations: 0 / 432 MB, free: 5.617 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00154/0.7423, allocations: 0.6387 MB / 432.6 MB, free: 5.031 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.7423, allocations: 4.031 kB / 432.6 MB, free: 5.027 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004647/0.7428, allocations: 47.47 kB / 432.7 MB, free: 4.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002804/0.7431, allocations: 58.27 kB / 432.7 MB, free: 4.938 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-05/0.7432, allocations: 7.484 kB / 432.8 MB, free: 4.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006311/0.7438, allocations: 0.6106 MB / 433.4 MB, free: 4.332 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.7438, allocations: 4.031 kB / 433.4 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.745, allocations: 466 kB / 433.8 MB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001806/0.7452, allocations: 115.8 kB / 433.9 MB, free: 3.824 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.088e-05/0.7453, allocations: 11.5 kB / 433.9 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004672/0.7458, allocations: 43.02 kB / 434 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.7459, allocations: 34.94 kB / 434 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.733e-05/0.746, allocations: 8 kB / 434 MB, free: 3.742 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001702/0.7462, allocations: 128 kB / 434.2 MB, free: 3.633 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7462, allocations: 4 kB / 434.2 MB, free: 3.629 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000556/0.7468, allocations: 82.5 kB / 434.2 MB, free: 3.555 MB / 346.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.001735/0.7485, allocations: 1.11 MB / 435.4 MB, free: 2.516 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009663/0.7495, allocations: 304.4 kB / 435.6 MB, free: 2.262 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.7496, allocations: 0 / 435.6 MB, free: 2.262 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004503/0.75, allocations: 127.6 kB / 435.8 MB, free: 2.176 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005681/0.7506, allocations: 37.95 kB / 435.8 MB, free: 2.145 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.7526, allocations: 0.5795 MB / 436.4 MB, free: 1.574 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/0.753, allocations: 0.744 MB / 437.1 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002001/0.7533, allocations: 18.08 kB / 437.2 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.7534, allocations: 65.97 kB / 437.2 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of SimCode: time 1.302e-06/0.7534, allocations: 0 / 437.2 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03225/0.7857, allocations: 5.32 MB / 442.5 MB, free: 11.55 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000375/0.7862, allocations: 198.5 kB / 442.7 MB, free: 11.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.815/3.602, allocations: 0 / 442.7 MB, free: 11.32 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat does not exist to compare? outputFormat=mat