Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.479/2.479, allocations: 270 MB / 283.6 MB, free: 3.129 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.162e-05/4.193e-05, allocations: 4 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1606, allocations: 61.88 MB / 410.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.524/0.6846, allocations: 92.65 MB / 0.4912 GB, free: 11.3 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.6849, allocations: 63.97 kB / 0.4913 GB, free: 11.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0667/0.7517, allocations: 12.08 MB / 0.5031 GB, free: 15.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.7517, allocations: 3.938 kB / 0.5031 GB, free: 15.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.79e-05/0.7518, allocations: 16 kB / 0.5031 GB, free: 15.1 MB / 426.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.00329/0.7551, allocations: 0.9272 MB / 0.504 GB, free: 14.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.7551, allocations: 16.02 kB / 0.504 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002485/0.7554, allocations: 110.5 kB / 0.5041 GB, free: 13.99 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002323/0.7557, allocations: 75.06 kB / 0.5042 GB, free: 13.92 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008741/0.7565, allocations: 408.7 kB / 0.5046 GB, free: 13.48 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.277e-05/0.7566, allocations: 45.31 kB / 0.5046 GB, free: 13.44 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001935/0.7568, allocations: 63.91 kB / 0.5047 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001984/0.7588, allocations: 0.7378 MB / 0.5054 GB, free: 12.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.447e-05/0.7589, allocations: 7.906 kB / 0.5054 GB, free: 12.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001119/0.759, allocations: 24 kB / 0.5054 GB, free: 12.57 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.733e-05/0.7591, allocations: 16 kB / 0.5054 GB, free: 12.55 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001828/0.7609, allocations: 0.6056 MB / 0.506 GB, free: 11.95 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007623/0.7685, allocations: 2.571 MB / 0.5085 GB, free: 9.258 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002143/0.7708, allocations: 0.5686 MB / 0.5091 GB, free: 8.652 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001205/0.772, allocations: 339.3 kB / 0.5094 GB, free: 8.309 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001704/0.7723, allocations: 15.98 kB / 0.5094 GB, free: 8.293 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.874e-05/0.7723, allocations: 42.56 kB / 0.5095 GB, free: 8.242 MB / 426.7 MB Notification: Performance of pre-optimization done (n=78): time 4.93e-06/0.7723, allocations: 0 / 0.5095 GB, free: 8.242 MB / 426.7 MB Notification: Performance of matching and sorting (n=82): time 0.007423/0.7798, allocations: 2.406 MB / 0.5118 GB, free: 5.652 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.7799, allocations: 144.5 kB / 0.512 GB, free: 5.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005901/0.7805, allocations: 323 kB / 0.5123 GB, free: 5.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001705/0.7807, allocations: 49.7 kB / 0.5123 GB, free: 5.105 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002509/0.781, allocations: 256.7 kB / 0.5126 GB, free: 4.848 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003853/0.7814, allocations: 296 kB / 0.5128 GB, free: 4.555 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.392e-05/0.7815, allocations: 19.98 kB / 0.5129 GB, free: 4.535 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.7817, allocations: 370.8 kB / 0.5132 GB, free: 4.164 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009738/0.7827, allocations: 310 kB / 0.5135 GB, free: 3.859 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/0.7837, allocations: 468.6 kB / 0.514 GB, free: 3.348 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000801/0.7846, allocations: 263.2 kB / 0.5142 GB, free: 3.102 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.7846, allocations: 0 / 0.5142 GB, free: 3.102 MB / 426.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004013/0.7886, allocations: 1.101 MB / 0.5153 GB, free: 1.988 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.767e-05/0.7887, allocations: 15.53 kB / 0.5153 GB, free: 1.977 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.02e-05/0.7887, allocations: 8 kB / 0.5153 GB, free: 1.969 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002039/0.7908, allocations: 0.5891 MB / 0.5159 GB, free: 1.367 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.792, allocations: 143.8 kB / 0.516 GB, free: 1.227 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003421/0.7955, allocations: 2.572 MB / 0.5185 GB, free: 14.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001956/0.7975, allocations: 199.9 kB / 0.5187 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002222/0.7977, allocations: 43.98 kB / 0.5188 GB, free: 14.31 MB / 442.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.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004072/0.7982, allocations: 162.3 kB / 0.5189 GB, free: 14.15 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002847/0.7985, allocations: 63.25 kB / 0.519 GB, free: 14.09 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003771/0.8022, allocations: 1.029 MB / 0.52 GB, free: 13.03 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.148e-05/0.8023, allocations: 8 kB / 0.52 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/0.8023, allocations: 0 / 0.52 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.228e-05/0.8024, allocations: 7.969 kB / 0.52 GB, free: 13.01 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006087/0.8085, allocations: 2.019 MB / 0.522 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.254e-05/0.8086, allocations: 0 / 0.522 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/0.8098, allocations: 127.9 kB / 0.5221 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001909/0.8118, allocations: 0.5537 MB / 0.5226 GB, free: 10.22 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001944/0.812, allocations: 35.95 kB / 0.5227 GB, free: 10.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003156/0.8152, allocations: 2.51 MB / 0.5251 GB, free: 7.574 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.8152, allocations: 0 / 0.5251 GB, free: 7.574 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004692/0.8199, allocations: 1.637 MB / 0.5267 GB, free: 5.875 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005875/0.8206, allocations: 212.2 kB / 0.5269 GB, free: 5.648 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002562/0.8208, allocations: 28.12 kB / 0.5269 GB, free: 5.621 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002431/0.8233, allocations: 183.8 kB / 0.5271 GB, free: 5.441 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006065/0.824, allocations: 171.6 kB / 0.5273 GB, free: 5.273 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001386/0.8241, allocations: 43.95 kB / 0.5273 GB, free: 5.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005133/0.8246, allocations: 257.2 kB / 0.5276 GB, free: 4.98 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.8247, allocations: 0 / 0.5276 GB, free: 4.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001319/0.826, allocations: 207.9 kB / 0.5278 GB, free: 4.777 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (55): * Single equations (assignments): 51 * 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.005231/0.8312, allocations: 2.574 MB / 0.5303 GB, free: 2.133 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002839/0.8341, allocations: 0.8948 MB / 0.5312 GB, free: 1.215 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/0.8342, allocations: 4 kB / 0.5312 GB, free: 1.211 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001845/0.8361, allocations: 467.6 kB / 0.5316 GB, free: 0.7539 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001214/0.8373, allocations: 98.88 kB / 0.5317 GB, free: 0.6562 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009059/0.8464, allocations: 2.171 MB / 0.5338 GB, free: 14.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006701/0.8471, allocations: 0.9182 MB / 0.5347 GB, free: 13.48 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.000502/0.8476, allocations: 60.81 kB / 0.5348 GB, free: 13.42 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004787/0.8481, allocations: 203.4 kB / 0.535 GB, free: 13.22 MB / 458.7 MB Notification: Performance of SimCode: time 1.303e-06/0.8481, allocations: 0 / 0.535 GB, free: 13.22 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07595/0.9241, allocations: 18.26 MB / 0.5528 GB, free: 11.12 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003031/0.9244, allocations: 170 kB / 0.553 GB, free: 10.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.344/4.268, allocations: 0 / 0.553 GB, free: 10.9 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat