Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.032/2.032, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.241e-05/3.26e-05, allocations: 8 kB / 255.4 MB, free: 2.629 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1113, allocations: 44.52 MB / 300 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4667/0.578, allocations: 82.91 MB / 382.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.5784, allocations: 70.95 kB / 382.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1159/0.6943, allocations: 22.88 MB / 405.8 MB, free: 8.414 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.6944, allocations: 0 / 405.8 MB, free: 8.414 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.69e-05/0.6945, allocations: 23.38 kB / 405.8 MB, free: 8.41 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.00452/0.699, allocations: 1.261 MB / 407.1 MB, free: 7.613 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.6991, allocations: 11.62 kB / 407.1 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003597/0.6994, allocations: 150.7 kB / 407.3 MB, free: 7.551 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007341/0.7002, allocations: 136.7 kB / 407.4 MB, free: 7.484 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.7014, allocations: 0.5311 MB / 407.9 MB, free: 7.117 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004977/0.7019, allocations: 200.9 kB / 408.1 MB, free: 7.008 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000282/0.7022, allocations: 110.3 kB / 408.2 MB, free: 6.996 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002836/0.7051, allocations: 1.141 MB / 409.4 MB, free: 6.699 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.151e-05/0.7051, allocations: 11.59 kB / 409.4 MB, free: 6.695 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001672/0.7053, allocations: 35.75 kB / 409.4 MB, free: 6.695 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.782e-05/0.7054, allocations: 31.33 kB / 409.5 MB, free: 6.688 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002997/0.7084, allocations: 1.145 MB / 410.6 MB, free: 6.551 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01069/0.7191, allocations: 3.702 MB / 414.3 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003298/0.7225, allocations: 0.9308 MB / 415.2 MB, free: 4.582 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/0.7243, allocations: 0.5933 MB / 415.8 MB, free: 4.555 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000194/0.7245, allocations: 24.17 kB / 415.9 MB, free: 4.551 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/0.7246, allocations: 54 kB / 415.9 MB, free: 4.504 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 5.25e-06/0.7246, allocations: 0 / 415.9 MB, free: 4.504 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.01557/0.7402, allocations: 3.734 MB / 419.6 MB, free: 3.359 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.039e-05/0.7403, allocations: 97.86 kB / 419.7 MB, free: 3.262 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.7415, allocations: 444.8 kB / 420.2 MB, free: 3.105 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005186/0.742, allocations: 66.69 kB / 420.2 MB, free: 3.07 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003374/0.7424, allocations: 313.4 kB / 420.5 MB, free: 2.867 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008169/0.7432, allocations: 0.489 MB / 421 MB, free: 2.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002128/0.7434, allocations: 27.47 kB / 421.1 MB, free: 2.516 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002145/0.7437, allocations: 403.6 kB / 421.4 MB, free: 2.168 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001962/0.7457, allocations: 0.5152 MB / 422 MB, free: 2.148 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002527/0.7482, allocations: 0.6452 MB / 422.6 MB, free: 2.035 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001841/0.7501, allocations: 467.1 kB / 423.1 MB, free: 1.957 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.7502, allocations: 0 / 423.1 MB, free: 1.957 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006036/0.7562, allocations: 1.649 MB / 424.7 MB, free: 1.668 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.7563, allocations: 3.906 kB / 424.7 MB, free: 1.668 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.662e-05/0.7564, allocations: 3.875 kB / 424.7 MB, free: 1.668 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002547/0.7589, allocations: 0.7827 MB / 425.5 MB, free: 1.484 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002058/0.761, allocations: 254.7 kB / 425.8 MB, free: 1.426 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003085/0.7641, allocations: 1.872 MB / 427.6 MB, free: 292 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002348/0.7665, allocations: 207 kB / 427.8 MB, free: 236 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002166/0.7668, allocations: 60.03 kB / 427.9 MB, free: 228 kB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.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,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004456/0.7672, allocations: 194.3 kB / 428.1 MB, free: 92 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002816/0.7675, allocations: 88.09 kB / 428.2 MB, free: 48 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009348/0.7769, allocations: 1.787 MB / 429.9 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.599e-05/0.777, allocations: 19.56 kB / 430 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.302e-05/0.7771, allocations: 3.875 kB / 430 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.291e-05/0.7772, allocations: 11.97 kB / 430 MB, free: 15.57 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01567/0.7929, allocations: 3.035 MB / 433 MB, free: 13.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.988e-05/0.793, allocations: 3.938 kB / 433 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003695/0.7967, allocations: 260.7 kB / 433.3 MB, free: 13.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003199/0.8, allocations: 0.743 MB / 434 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000371/0.8004, allocations: 51.88 kB / 434.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003575/0.804, allocations: 1.803 MB / 435.9 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.826e-06/0.8041, allocations: 4.031 kB / 435.9 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007821/0.8119, allocations: 2.251 MB / 438.1 MB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001325/0.8133, allocations: 303.8 kB / 438.4 MB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005115/0.8138, allocations: 40 kB / 438.5 MB, free: 8.113 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002595/0.8165, allocations: 215.8 kB / 438.7 MB, free: 7.902 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001143/0.8177, allocations: 232.8 kB / 438.9 MB, free: 7.676 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002983/0.818, allocations: 63.94 kB / 439 MB, free: 7.613 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008599/0.8189, allocations: 349.5 kB / 439.3 MB, free: 7.27 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.8189, allocations: 0 / 439.3 MB, free: 7.27 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001777/0.8207, allocations: 328 kB / 439.6 MB, free: 6.949 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.008042/0.8288, allocations: 3.151 MB / 442.8 MB, free: 3.742 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004756/0.8336, allocations: 1.421 MB / 444.2 MB, free: 2.297 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/0.8337, allocations: 112 / 444.2 MB, free: 2.297 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002821/0.8365, allocations: 0.7742 MB / 445 MB, free: 1.523 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001615/0.8382, allocations: 130.5 kB / 445.1 MB, free: 1.395 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.016/0.8542, allocations: 3.151 MB / 448.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008702/0.8551, allocations: 1.043 MB / 449.3 MB, free: 13.12 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00107/0.8562, allocations: 139.2 kB / 449.4 MB, free: 12.98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008925/0.8571, allocations: 343.2 kB / 449.8 MB, free: 12.65 MB / 346.7 MB Notification: Performance of SimCode: time 1.032e-06/0.8571, allocations: 0 / 449.8 MB, free: 12.65 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.135/0.9922, allocations: 26.47 MB / 476.2 MB, free: 2.219 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000404/0.9926, allocations: 190.6 kB / 476.4 MB, free: 1.984 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.691/4.683, allocations: 0 / 476.4 MB, free: 1.984 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat