Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.792/2.792, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.747e-05/4.758e-05, allocations: 4 kB / 323.5 MB, free: 4.23 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.432/0.4321, allocations: 58.84 MB / 382.3 MB, free: 10.22 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.203/0.6352, allocations: 105.1 MB / 487.4 MB, free: 3.305 MB / 410.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/0.6355, allocations: 63.97 kB / 487.4 MB, free: 3.242 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.2408/0.8764, allocations: 49.23 MB / 0.5241 GB, free: 1.82 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.304e-06/0.8764, allocations: 0 / 0.5241 GB, free: 1.82 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0001921/0.8766, allocations: 51.98 kB / 0.5241 GB, free: 1.77 MB / 458.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.3674/1.244, allocations: 2.35 MB / 0.5264 GB, free: 113.6 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 7.604e-05/1.244, allocations: 10.17 kB / 0.5264 GB, free: 113.6 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001581/1.246, allocations: 306.7 kB / 0.5267 GB, free: 113.6 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00231/1.248, allocations: 293.8 kB / 0.527 GB, free: 113.5 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004081/1.252, allocations: 0.9742 MB / 0.528 GB, free: 113.2 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001678/1.254, allocations: 466.2 kB / 0.5284 GB, free: 113 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001336/1.255, allocations: 239.3 kB / 0.5286 GB, free: 113 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01083/1.266, allocations: 2.319 MB / 0.5309 GB, free: 112.7 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003309/1.267, allocations: 33.19 kB / 0.5309 GB, free: 112.7 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005992/1.267, allocations: 89.22 kB / 0.531 GB, free: 112.7 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-05/1.267, allocations: 52.88 kB / 0.5311 GB, free: 112.7 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008014/1.275, allocations: 2.177 MB / 0.5332 GB, free: 112.7 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02208/1.297, allocations: 6.762 MB / 0.5398 GB, free: 111.4 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005983/1.304, allocations: 2.219 MB / 0.542 GB, free: 110.8 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003764/1.307, allocations: 1.205 MB / 0.5431 GB, free: 110.3 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004856/1.308, allocations: 131.8 kB / 0.5433 GB, free: 110.2 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.494e-05/1.308, allocations: 65 kB / 0.5433 GB, free: 110.1 MB / 458.8 MB Notification: Performance of pre-optimization done (n=280): time 6.422e-06/1.308, allocations: 0 / 0.5433 GB, free: 110.1 MB / 458.8 MB Notification: Performance of matching and sorting (n=338): time 0.03091/1.339, allocations: 11.11 MB / 0.5542 GB, free: 103.6 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001533/1.339, allocations: 326.8 kB / 0.5545 GB, free: 103.3 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002018/1.341, allocations: 0.912 MB / 0.5554 GB, free: 102.9 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008643/1.342, allocations: 94.66 kB / 0.5555 GB, free: 102.8 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007477/1.343, allocations: 0.672 MB / 0.5561 GB, free: 102.3 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001777/1.345, allocations: 1.131 MB / 0.5572 GB, free: 101.4 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005206/1.345, allocations: 71.5 kB / 0.5573 GB, free: 101.4 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0002243/1.345, allocations: 427.9 kB / 0.5577 GB, free: 101 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003331/1.349, allocations: 1.007 MB / 0.5587 GB, free: 100.6 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00382/1.353, allocations: 1.41 MB / 0.5601 GB, free: 99.84 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003174/1.356, allocations: 1.017 MB / 0.5611 GB, free: 99.47 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.961e-05/1.356, allocations: 0 / 0.5611 GB, free: 99.47 MB / 458.8 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01086/1.367, allocations: 3.267 MB / 0.5643 GB, free: 98.22 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.729e-05/1.367, allocations: 9.188 kB / 0.5643 GB, free: 98.22 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-05/1.367, allocations: 11.22 kB / 0.5643 GB, free: 98.22 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003621/1.371, allocations: 1.022 MB / 0.5653 GB, free: 97.93 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006001/1.377, allocations: 0.7433 MB / 0.566 GB, free: 97.88 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/1.389, allocations: 7.392 MB / 0.5732 GB, free: 91.42 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004351/1.393, allocations: 294.1 kB / 0.5735 GB, free: 91.21 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007351/1.394, allocations: 125.3 kB / 0.5736 GB, free: 91.1 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0009141/1.395, allocations: 298.1 kB / 0.5739 GB, free: 90.8 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008929/1.396, allocations: 217.4 kB / 0.5741 GB, free: 90.59 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006652/1.402, allocations: 2.289 MB / 0.5763 GB, free: 88.61 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.241e-05/1.403, allocations: 32 kB / 0.5764 GB, free: 88.58 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.53e-05/1.403, allocations: 4 kB / 0.5764 GB, free: 88.58 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.171e-05/1.403, allocations: 20.69 kB / 0.5764 GB, free: 88.57 MB / 458.8 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0228/1.426, allocations: 7.331 MB / 0.5836 GB, free: 82.39 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-05/1.426, allocations: 11.95 kB / 0.5836 GB, free: 82.38 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006722/1.432, allocations: 0.7378 MB / 0.5843 GB, free: 81.79 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003873/1.436, allocations: 1.007 MB / 0.5853 GB, free: 80.96 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008712/1.437, allocations: 101.1 kB / 0.5854 GB, free: 80.89 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01387/1.451, allocations: 10.01 MB / 0.5951 GB, free: 70.74 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.231e-05/1.451, allocations: 15.89 kB / 0.5952 GB, free: 70.73 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01444/1.466, allocations: 5.747 MB / 0.6008 GB, free: 64.99 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00216/1.468, allocations: 0.5363 MB / 0.6013 GB, free: 64.54 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000882/1.469, allocations: 88 kB / 0.6014 GB, free: 64.45 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004646/1.473, allocations: 299.3 kB / 0.6017 GB, free: 64.22 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001807/1.475, allocations: 451.6 kB / 0.6021 GB, free: 63.98 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005895/1.476, allocations: 131 kB / 0.6022 GB, free: 63.88 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.001454/1.477, allocations: 0.7016 MB / 0.6029 GB, free: 63.23 MB / 458.8 MB Notification: Performance of sort global known variables: time 8.01e-07/1.477, allocations: 0 / 0.6029 GB, free: 63.23 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.004746/1.482, allocations: 0.7261 MB / 0.6036 GB, free: 62.51 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 263 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01575/1.498, allocations: 8.86 MB / 0.6123 GB, free: 53.64 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.008738/1.507, allocations: 3.017 MB / 0.6152 GB, free: 50.71 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-05/1.507, allocations: 4 kB / 0.6152 GB, free: 50.71 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008276/1.515, allocations: 2.597 MB / 0.6178 GB, free: 48.22 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004273/1.52, allocations: 314.2 kB / 0.6181 GB, free: 47.97 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02018/1.54, allocations: 6.151 MB / 0.6241 GB, free: 42.48 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001302/1.541, allocations: 1.596 MB / 0.6256 GB, free: 41.17 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.002332/1.544, allocations: 308.3 kB / 0.6259 GB, free: 40.94 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002744/1.546, allocations: 0.8682 MB / 0.6268 GB, free: 40.16 MB / 458.8 MB Notification: Performance of SimCode: time 1.694e-06/1.546, allocations: 2.516 kB / 0.6268 GB, free: 40.16 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1736/1.72, allocations: 53.47 MB / 0.679 GB, free: 2.945 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003097/1.72, allocations: 183.3 kB / 0.6792 GB, free: 2.711 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.47/7.19, allocations: 0 / 0.6792 GB, free: 2.711 MB / 474.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat