Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.915/1.915, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.758e-05/3.769e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1005, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4483/0.5489, allocations: 80 MB / 401.8 MB, free: 9.805 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003075/0.5493, allocations: 70.66 kB / 401.9 MB, free: 9.738 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06119/0.6105, allocations: 11.47 MB / 413.4 MB, free: 14.24 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.6105, allocations: 0 / 413.4 MB, free: 14.24 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.101e-05/0.6106, allocations: 20 kB / 413.4 MB, free: 14.22 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003419/0.614, allocations: 0.9505 MB / 414.4 MB, free: 13.22 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.6141, allocations: 12.03 kB / 414.4 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002548/0.6144, allocations: 98.52 kB / 414.5 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002503/0.6146, allocations: 83.02 kB / 414.5 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008646/0.6155, allocations: 408.6 kB / 414.9 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.444e-05/0.6156, allocations: 49.31 kB / 415 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001987/0.6158, allocations: 67.89 kB / 415.1 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002063/0.6179, allocations: 0.7647 MB / 415.8 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.995e-05/0.618, allocations: 11.98 kB / 415.8 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.6181, allocations: 24 kB / 415.9 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.263e-05/0.6181, allocations: 15.95 kB / 415.9 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002054/0.6202, allocations: 0.6761 MB / 416.6 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007444/0.6277, allocations: 2.598 MB / 419.2 MB, free: 8.227 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001982/0.6297, allocations: 0.577 MB / 419.7 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009948/0.6307, allocations: 340.1 kB / 420.1 MB, free: 7.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.95e-05/0.6308, allocations: 12.36 kB / 420.1 MB, free: 7.258 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.195e-05/0.6309, allocations: 46.88 kB / 420.1 MB, free: 7.203 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 3.407e-06/0.6309, allocations: 0 / 420.1 MB, free: 7.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=76): time 0.007066/0.638, allocations: 2.563 MB / 422.7 MB, free: 4.457 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.824e-05/0.6381, allocations: 140.5 kB / 422.8 MB, free: 4.289 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007256/0.6389, allocations: 363.1 kB / 423.2 MB, free: 3.926 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002175/0.6391, allocations: 53.7 kB / 423.2 MB, free: 3.867 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002869/0.6394, allocations: 330.7 kB / 423.5 MB, free: 3.539 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000383/0.6398, allocations: 264.5 kB / 423.8 MB, free: 3.277 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.345e-05/0.6399, allocations: 20 kB / 423.8 MB, free: 3.258 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.6401, allocations: 346.8 kB / 424.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.6412, allocations: 342 kB / 424.5 MB, free: 2.578 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001191/0.6424, allocations: 0.4926 MB / 425 MB, free: 2.023 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008735/0.6433, allocations: 296.8 kB / 425.3 MB, free: 1.738 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.6433, allocations: 8 kB / 425.3 MB, free: 1.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003963/0.6473, allocations: 1.24 MB / 426.5 MB, free: 488 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/0.6473, allocations: 4 kB / 426.5 MB, free: 484 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.6474, allocations: 4 kB / 426.5 MB, free: 480 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002405/0.6498, allocations: 0.7841 MB / 427.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/0.651, allocations: 159.7 kB / 427.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003479/0.6545, allocations: 2.666 MB / 430.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001884/0.6564, allocations: 203.9 kB / 430.3 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/0.6566, allocations: 43.98 kB / 430.4 MB, free: 12.5 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003258/0.657, allocations: 163.9 kB / 430.5 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002774/0.6572, allocations: 67.2 kB / 430.6 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000275/0.6575, allocations: 79.77 kB / 430.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.742e-05/0.6576, allocations: 15.92 kB / 430.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.6576, allocations: 11.94 kB / 430.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.6576, allocations: 3.984 kB / 430.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006422/0.664, allocations: 2.235 MB / 433 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.6641, allocations: 0 / 433 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/0.6653, allocations: 123.8 kB / 433.1 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002249/0.6676, allocations: 0.7489 MB / 433.8 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001764/0.6678, allocations: 27.97 kB / 433.9 MB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003342/0.6712, allocations: 2.62 MB / 436.5 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.6712, allocations: 4.062 kB / 436.5 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005102/0.6763, allocations: 1.799 MB / 438.3 MB, free: 4.379 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006273/0.677, allocations: 220.2 kB / 438.5 MB, free: 4.145 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002333/0.6773, allocations: 31.94 kB / 438.5 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001709/0.679, allocations: 175.8 kB / 438.7 MB, free: 3.941 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005695/0.6796, allocations: 175.6 kB / 438.9 MB, free: 3.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/0.6797, allocations: 35.97 kB / 438.9 MB, free: 3.734 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005178/0.6802, allocations: 277.2 kB / 439.2 MB, free: 3.465 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6803, allocations: 0 / 439.2 MB, free: 3.465 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001268/0.6815, allocations: 207.9 kB / 439.4 MB, free: 3.262 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.005552/0.6871, allocations: 2.601 MB / 442 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002895/0.69, allocations: 0.8329 MB / 442.8 MB, free: 15.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.6901, allocations: 0 / 442.8 MB, free: 15.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001701/0.6918, allocations: 455.6 kB / 443.3 MB, free: 15.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.6931, allocations: 89.92 kB / 443.3 MB, free: 15.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009395/0.7025, allocations: 2.195 MB / 445.5 MB, free: 12.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007335/0.7033, allocations: 0.9299 MB / 446.5 MB, free: 12.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006235/0.7039, allocations: 215.3 kB / 446.7 MB, free: 11.82 MB / 378.7 MB Notification: Performance of SimCode: time 1.202e-06/0.704, allocations: 0 / 446.7 MB, free: 11.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.972/3.676, allocations: 18.26 MB / 464.9 MB, free: 9.547 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat