Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.512/2.512, allocations: 270 MB / 283.6 MB, free: 3.129 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.895e-05/3.914e-05, allocations: 4 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1383, allocations: 61.89 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.573/0.7113, allocations: 90.43 MB / 0.489 GB, free: 13.66 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.7116, allocations: 67.97 kB / 0.4891 GB, free: 13.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03494/0.7465, allocations: 6.171 MB / 0.4951 GB, free: 7.422 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.317e-06/0.7466, allocations: 0 / 0.4951 GB, free: 7.422 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.345e-05/0.7467, allocations: 12 kB / 0.4951 GB, free: 7.41 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001893/0.7487, allocations: 0.5182 MB / 0.4957 GB, free: 6.848 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.825e-05/0.7488, allocations: 12.03 kB / 0.4957 GB, free: 6.836 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001436/0.7489, allocations: 62.53 kB / 0.4957 GB, free: 6.766 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004354/0.7494, allocations: 47.61 kB / 0.4958 GB, free: 6.719 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007838/0.7502, allocations: 262.4 kB / 0.496 GB, free: 6.422 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/0.7503, allocations: 24.78 kB / 0.496 GB, free: 6.398 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002734/0.7506, allocations: 35.95 kB / 0.4961 GB, free: 6.363 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.7521, allocations: 286.8 kB / 0.4964 GB, free: 6.059 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.283e-05/0.7521, allocations: 3.906 kB / 0.4964 GB, free: 6.055 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.445e-05/0.7522, allocations: 16 kB / 0.4964 GB, free: 6.039 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.986e-05/0.7523, allocations: 8 kB / 0.4964 GB, free: 6.031 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006865/0.753, allocations: 164.3 kB / 0.4965 GB, free: 5.871 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005071/0.7581, allocations: 1.345 MB / 0.4978 GB, free: 4.422 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009479/0.7591, allocations: 233.3 kB / 0.4981 GB, free: 4.148 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002444/0.7593, allocations: 76.33 kB / 0.4981 GB, free: 4.059 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.961e-05/0.7594, allocations: 4.156 kB / 0.4981 GB, free: 4.055 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.895e-05/0.7595, allocations: 42.5 kB / 0.4982 GB, free: 4.004 MB / 410.7 MB Notification: Performance of pre-optimization done (n=22): time 5.22e-06/0.7595, allocations: 0 / 0.4982 GB, free: 4.004 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008948/0.7604, allocations: 169.5 kB / 0.4984 GB, free: 3.832 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001514/0.7606, allocations: 166.2 kB / 0.4985 GB, free: 3.633 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000816/0.7614, allocations: 195 kB / 0.4987 GB, free: 3.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.511e-05/0.7615, allocations: 25.7 kB / 0.4987 GB, free: 3.398 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004058/0.762, allocations: 187.8 kB / 0.4989 GB, free: 3.207 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001388/0.7621, allocations: 90.7 kB / 0.499 GB, free: 3.117 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.7622, allocations: 8 kB / 0.499 GB, free: 3.109 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002239/0.7624, allocations: 338.8 kB / 0.4993 GB, free: 2.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000266/0.7627, allocations: 60 kB / 0.4994 GB, free: 2.711 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004444/0.7631, allocations: 206.5 kB / 0.4996 GB, free: 2.445 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003746/0.7635, allocations: 96.06 kB / 0.4997 GB, free: 2.352 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.7636, allocations: 0 / 0.4997 GB, free: 2.352 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001871/0.7654, allocations: 300.9 kB / 0.4999 GB, free: 2.051 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/0.7655, allocations: 4 kB / 0.5 GB, free: 2.047 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.7655, allocations: 8.188 kB / 0.5 GB, free: 2.039 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.404e-05/0.7656, allocations: 8 kB / 0.5 GB, free: 2.031 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008172/0.7664, allocations: 88.42 kB / 0.5001 GB, free: 1.945 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.1e-05/0.7665, allocations: 11.94 kB / 0.5001 GB, free: 1.934 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004602/0.7669, allocations: 35.69 kB / 0.5001 GB, free: 1.898 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.044e-05/0.767, allocations: 19.98 kB / 0.5001 GB, free: 1.879 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001865/0.7672, allocations: 128.8 kB / 0.5002 GB, free: 1.746 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003098/0.7675, allocations: 23.72 kB / 0.5003 GB, free: 1.723 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000696/0.7683, allocations: 87.14 kB / 0.5003 GB, free: 1.629 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.84e-05/0.7683, allocations: 4 kB / 0.5003 GB, free: 1.625 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.503e-05/0.7684, allocations: 8 kB / 0.5004 GB, free: 1.617 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.82e-05/0.7684, allocations: 0 / 0.5004 GB, free: 1.617 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/0.7696, allocations: 317.3 kB / 0.5007 GB, free: 1.258 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.7696, allocations: 0 / 0.5007 GB, free: 1.258 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007101/0.7703, allocations: 63.91 kB / 0.5007 GB, free: 1.195 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.037e-05/0.7704, allocations: 4 kB / 0.5007 GB, free: 1.191 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.339e-05/0.7704, allocations: 8 kB / 0.5007 GB, free: 1.184 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.7704, allocations: 0 / 0.5007 GB, free: 1.184 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.7704, allocations: 4 kB / 0.5007 GB, free: 1.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007754/0.7712, allocations: 0.6737 MB / 0.5014 GB, free: 472 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.968e-05/0.7713, allocations: 96.86 kB / 0.5015 GB, free: 356 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.778e-05/0.7714, allocations: 15.95 kB / 0.5015 GB, free: 340 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003949/0.7718, allocations: 11.98 kB / 0.5015 GB, free: 328 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.846e-05/0.7718, allocations: 12.08 kB / 0.5015 GB, free: 316 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/0.7719, allocations: 11.94 kB / 0.5015 GB, free: 304 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001868/0.7721, allocations: 145.9 kB / 0.5017 GB, free: 160 kB / 410.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7721, allocations: 0 / 0.5017 GB, free: 160 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007534/0.7728, allocations: 83.75 kB / 0.5018 GB, free: 76 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00126/0.7741, allocations: 1.495 MB / 0.5032 GB, free: 14.53 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004834/0.7746, allocations: 175.9 kB / 0.5034 GB, free: 14.36 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.7746, allocations: 0 / 0.5034 GB, free: 14.36 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.7748, allocations: 69.05 kB / 0.5034 GB, free: 14.29 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008218/0.7757, allocations: 56.84 kB / 0.5035 GB, free: 14.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002967/0.7786, allocations: 1.104 MB / 0.5046 GB, free: 13.09 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.7791, allocations: 0.7758 MB / 0.5053 GB, free: 12.29 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002115/0.7794, allocations: 26.97 kB / 0.5054 GB, free: 12.26 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001972/0.7796, allocations: 91.41 kB / 0.5055 GB, free: 12.17 MB / 426.7 MB Notification: Performance of SimCode: time 1.062e-06/0.7796, allocations: 0 / 0.5055 GB, free: 12.17 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03133/0.8109, allocations: 4.809 MB / 0.5101 GB, free: 7.477 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000301/0.8113, allocations: 139.7 kB / 0.5103 GB, free: 7.254 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.501/3.312, allocations: 0 / 0.5103 GB, free: 7.254 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat