Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.192/2.192, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.323e-05/3.377e-05, allocations: 6.031 kB / 292.7 MB, free: 8.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1276, allocations: 50.41 MB / 343.2 MB, free: 5.832 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4876/0.6152, allocations: 79.36 MB / 422.5 MB, free: 14.51 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.6156, allocations: 69.53 kB / 422.6 MB, free: 14.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01966/0.6353, allocations: 4.092 MB / 426.7 MB, free: 10.97 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.468e-06/0.6353, allocations: 0 / 426.7 MB, free: 10.97 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.6353, allocations: 7.938 kB / 426.7 MB, free: 10.96 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.001292/0.6366, allocations: 0.5208 MB / 427.2 MB, free: 10.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.6367, allocations: 12.03 kB / 427.2 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.415e-05/0.6368, allocations: 48.3 kB / 427.3 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.157e-05/0.6369, allocations: 27.28 kB / 427.3 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.6373, allocations: 221.6 kB / 427.5 MB, free: 10.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.6373, allocations: 15.5 kB / 427.5 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.463e-05/0.6374, allocations: 15.62 kB / 427.5 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005389/0.6379, allocations: 217.6 kB / 427.7 MB, free: 9.891 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.638, allocations: 3.953 kB / 427.7 MB, free: 9.887 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.638, allocations: 6.875 kB / 427.8 MB, free: 9.883 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.638, allocations: 4 kB / 427.8 MB, free: 9.879 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004306/0.6385, allocations: 136.3 kB / 427.9 MB, free: 9.789 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.64, allocations: 0.6613 MB / 428.6 MB, free: 9.172 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005764/0.6406, allocations: 173.8 kB / 428.7 MB, free: 9.043 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002322/0.6408, allocations: 82.23 kB / 428.8 MB, free: 8.988 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.231e-05/0.6409, allocations: 0 / 428.8 MB, free: 8.988 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003896/0.6413, allocations: 158.1 kB / 429 MB, free: 8.855 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 2.625e-06/0.6413, allocations: 0 / 429 MB, free: 8.855 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.002203/0.6435, allocations: 0.8786 MB / 429.8 MB, free: 8.023 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/0.6436, allocations: 63.22 kB / 429.9 MB, free: 7.953 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/0.6439, allocations: 153 kB / 430 MB, free: 7.809 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.305e-05/0.6439, allocations: 33.45 kB / 430.1 MB, free: 7.773 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.644, allocations: 134.8 kB / 430.2 MB, free: 7.656 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.6442, allocations: 92.41 kB / 430.3 MB, free: 7.578 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.41e-05/0.6442, allocations: 3.062 kB / 430.3 MB, free: 7.578 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.6444, allocations: 336.8 kB / 430.6 MB, free: 7.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002504/0.6447, allocations: 79.7 kB / 430.7 MB, free: 7.203 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002898/0.645, allocations: 126.6 kB / 430.8 MB, free: 7.098 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002968/0.6453, allocations: 113.1 kB / 430.9 MB, free: 7.008 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.6453, allocations: 0 / 430.9 MB, free: 7.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001011/0.6463, allocations: 334.4 kB / 431.3 MB, free: 6.738 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.062e-05/0.6464, allocations: 37.77 kB / 431.3 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.6464, allocations: 0 / 431.3 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003269/0.6468, allocations: 70.56 kB / 431.4 MB, free: 6.641 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003988/0.6472, allocations: 50.97 kB / 431.4 MB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000683/0.6479, allocations: 0.6156 MB / 432 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005171/0.6484, allocations: 39.39 kB / 432.1 MB, free: 5.953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.923e-05/0.6485, allocations: 11.62 kB / 432.1 MB, free: 5.945 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.0001477/0.6486, allocations: 119.8 kB / 432.2 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.193e-05/0.6487, allocations: 19.88 kB / 432.2 MB, free: 5.809 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007792/0.6495, allocations: 280.3 kB / 432.5 MB, free: 5.598 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.6495, allocations: 4 kB / 432.5 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/0.6496, allocations: 3.953 kB / 432.5 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.6496, allocations: 8.016 kB / 432.5 MB, free: 5.582 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.651, allocations: 0.6462 MB / 433.2 MB, free: 4.992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/0.6511, allocations: 3.984 kB / 433.2 MB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004443/0.6515, allocations: 39.97 kB / 433.2 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002634/0.6518, allocations: 66.14 kB / 433.3 MB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.182e-05/0.6518, allocations: 3.125 kB / 433.3 MB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006365/0.6525, allocations: 0.6052 MB / 433.9 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.6525, allocations: 0 / 433.9 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.6536, allocations: 468.6 kB / 434.3 MB, free: 3.918 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001709/0.6538, allocations: 116.3 kB / 434.5 MB, free: 3.793 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.584e-05/0.6539, allocations: 11.73 kB / 434.5 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004508/0.6543, allocations: 34.59 kB / 434.5 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.6545, allocations: 38.75 kB / 434.5 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-05/0.6546, allocations: 15.05 kB / 434.6 MB, free: 3.711 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002241/0.6548, allocations: 129.6 kB / 434.7 MB, free: 3.598 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.6548, allocations: 0 / 434.7 MB, free: 3.598 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001068/0.6559, allocations: 74.7 kB / 434.7 MB, free: 3.531 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.002662/0.6586, allocations: 1.113 MB / 435.9 MB, free: 2.492 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001518/0.6602, allocations: 308.9 kB / 436.2 MB, free: 2.234 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.6603, allocations: 3.938 kB / 436.2 MB, free: 2.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006771/0.6609, allocations: 125.7 kB / 436.3 MB, free: 2.141 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008927/0.6619, allocations: 35.05 kB / 436.3 MB, free: 2.113 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002849/0.6647, allocations: 0.5686 MB / 436.9 MB, free: 1.551 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006541/0.6654, allocations: 0.7518 MB / 437.6 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003715/0.6658, allocations: 22.06 kB / 437.7 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.6661, allocations: 61.42 kB / 437.7 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of SimCode: time 1.694e-06/0.6662, allocations: 0 / 437.7 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04024/0.7064, allocations: 5.318 MB / 443 MB, free: 11.52 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003114/0.7068, allocations: 187.6 kB / 443.2 MB, free: 11.29 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.622/3.329, allocations: 4.062 kB / 443.2 MB, free: 11.29 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat does not exist to compare? outputFormat=mat