Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.754/2.754, allocations: 270 MB / 283.6 MB, free: 1.875 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.308e-05/3.319e-05, allocations: 4 kB / 348.5 MB, free: 2.684 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3988/0.3989, allocations: 61.87 MB / 410.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1741/0.5731, allocations: 95.58 MB / 0.4941 GB, free: 10.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.5734, allocations: 67.97 kB / 0.4941 GB, free: 10.84 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06613/0.6395, allocations: 14.38 MB / 0.5082 GB, free: 12.41 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.6396, allocations: 0 / 0.5082 GB, free: 12.41 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.495e-05/0.6397, allocations: 20 kB / 0.5082 GB, free: 12.39 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.002443/0.6421, allocations: 0.8801 MB / 0.5091 GB, free: 11.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.6422, allocations: 8.031 kB / 0.5091 GB, free: 11.46 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001886/0.6424, allocations: 94.52 kB / 0.5092 GB, free: 11.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002674/0.6427, allocations: 87.31 kB / 0.5092 GB, free: 11.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001341/0.644, allocations: 0.5076 MB / 0.5097 GB, free: 10.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.002e-05/0.6441, allocations: 45.31 kB / 0.5098 GB, free: 10.68 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/0.6443, allocations: 63.94 kB / 0.5098 GB, free: 10.61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/0.6457, allocations: 0.5585 MB / 0.5104 GB, free: 10 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.709e-05/0.6458, allocations: 3.938 kB / 0.5104 GB, free: 9.996 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.016e-05/0.6459, allocations: 24 kB / 0.5104 GB, free: 9.973 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.146e-05/0.646, allocations: 12 kB / 0.5104 GB, free: 9.961 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.647, allocations: 321.4 kB / 0.5107 GB, free: 9.648 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006706/0.6537, allocations: 3.033 MB / 0.5137 GB, free: 6.473 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.6548, allocations: 362.5 kB / 0.514 GB, free: 6.098 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003831/0.6552, allocations: 145.7 kB / 0.5142 GB, free: 5.949 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.255e-05/0.6553, allocations: 4 kB / 0.5142 GB, free: 5.945 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.6553, allocations: 38.56 kB / 0.5142 GB, free: 5.898 MB / 442.7 MB Notification: Performance of pre-optimization done (n=39): time 3.317e-06/0.6554, allocations: 0 / 0.5142 GB, free: 5.898 MB / 442.7 MB Notification: Performance of matching and sorting (n=39): time 0.00109/0.6565, allocations: 354 kB / 0.5146 GB, free: 5.543 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.439e-05/0.6565, allocations: 114.7 kB / 0.5147 GB, free: 5.406 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000923/0.6575, allocations: 483.5 kB / 0.5151 GB, free: 4.926 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.345e-05/0.6576, allocations: 33.7 kB / 0.5152 GB, free: 4.887 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003797/0.658, allocations: 372 kB / 0.5155 GB, free: 4.516 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002008/0.6582, allocations: 149.9 kB / 0.5157 GB, free: 4.367 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.351e-05/0.6582, allocations: 8 kB / 0.5157 GB, free: 4.359 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.6584, allocations: 382.8 kB / 0.516 GB, free: 3.977 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004411/0.6589, allocations: 145.6 kB / 0.5162 GB, free: 3.832 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006196/0.6595, allocations: 352.8 kB / 0.5165 GB, free: 3.395 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005315/0.6601, allocations: 191.7 kB / 0.5167 GB, free: 3.207 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.842e-06/0.6601, allocations: 4 kB / 0.5167 GB, free: 3.203 MB / 442.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001533/0.6616, allocations: 0.5594 MB / 0.5172 GB, free: 2.637 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.34/1.002, allocations: 2.609 MB / 0.5198 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.398e-05/1.002, allocations: 7.219 kB / 0.5198 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.467e-05/1.002, allocations: 10.94 kB / 0.5198 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/1.003, allocations: 145.8 kB / 0.5199 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.242e-05/1.003, allocations: 15.12 kB / 0.52 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008422/1.004, allocations: 78.77 kB / 0.52 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.587e-05/1.004, allocations: 26.09 kB / 0.5201 GB, free: 105.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/1.004, allocations: 6.266 kB / 0.5201 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001509/1.006, allocations: 484.3 kB / 0.5205 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.097e-05/1.006, allocations: 6.844 kB / 0.5205 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.433e-05/1.006, allocations: 11.69 kB / 0.5205 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/1.007, allocations: 137.7 kB / 0.5207 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.889e-05/1.007, allocations: 16.08 kB / 0.5207 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007574/1.008, allocations: 64.36 kB / 0.5208 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.067e-05/1.008, allocations: 27.33 kB / 0.5208 GB, free: 105.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * 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.0002356/1.008, allocations: 148.2 kB / 0.5209 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001863/1.008, allocations: 63.77 kB / 0.521 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002202/1.008, allocations: 71.59 kB / 0.521 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/1.008, allocations: 5.188 kB / 0.5211 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/1.008, allocations: 0.5625 kB / 0.5211 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/1.008, allocations: 3.281 kB / 0.5211 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/1.01, allocations: 0.5781 MB / 0.5216 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/1.01, allocations: 2.344 kB / 0.5216 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/1.011, allocations: 91.45 kB / 0.5217 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.25e-05/1.011, allocations: 2.719 kB / 0.5217 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.837e-05/1.011, allocations: 11.36 kB / 0.5217 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.334e-06/1.011, allocations: 2.125 kB / 0.5217 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/1.011, allocations: 2.656 kB / 0.5217 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/1.013, allocations: 0.7076 MB / 0.5224 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003237/1.013, allocations: 175.4 kB / 0.5226 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/1.013, allocations: 11.77 kB / 0.5226 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006962/1.014, allocations: 34.67 kB / 0.5226 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/1.014, allocations: 31.78 kB / 0.5227 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.955e-05/1.014, allocations: 12.42 kB / 0.5227 GB, free: 104.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006419/1.015, allocations: 371.9 kB / 0.523 GB, free: 104.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.015, allocations: 0 / 0.523 GB, free: 104.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001327/1.016, allocations: 243.2 kB / 0.5233 GB, free: 104.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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.001608/1.018, allocations: 1.335 MB / 0.5246 GB, free: 103.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001745/1.019, allocations: 0.6287 MB / 0.5252 GB, free: 103.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.019, allocations: 3.828 kB / 0.5252 GB, free: 103.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004214/1.02, allocations: 159.5 kB / 0.5253 GB, free: 103.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/1.021, allocations: 162.1 kB / 0.5255 GB, free: 103.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003085/1.024, allocations: 1.207 MB / 0.5267 GB, free: 103.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004775/1.025, allocations: 0.9253 MB / 0.5276 GB, free: 102.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008602/1.026, allocations: 117 kB / 0.5277 GB, free: 102.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004239/1.026, allocations: 240.3 kB / 0.5279 GB, free: 102.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.403e-06/1.026, allocations: 0 / 0.5279 GB, free: 102.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04226/1.069, allocations: 12.65 MB / 0.5403 GB, free: 98.71 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002271/1.069, allocations: 133.5 kB / 0.5404 GB, free: 98.49 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.877/3.945, allocations: 0 / 0.5404 GB, free: 98.49 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat