Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.535/2.535, allocations: 270 MB / 282.6 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.172e-05/4.183e-05, allocations: 4 kB / 347.1 MB, free: 3.133 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4174/0.4174, allocations: 61.86 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1932/0.6107, allocations: 95.58 MB / 0.4927 GB, free: 10.95 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/0.611, allocations: 67.97 kB / 0.4927 GB, free: 10.89 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0656/0.6766, allocations: 14.38 MB / 0.5068 GB, free: 12.46 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6767, allocations: 0 / 0.5068 GB, free: 12.46 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.767e-05/0.6768, allocations: 20 kB / 0.5068 GB, free: 12.45 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.002274/0.6791, allocations: 0.8724 MB / 0.5076 GB, free: 11.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.6791, allocations: 16.03 kB / 0.5077 GB, free: 11.51 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001814/0.6793, allocations: 90.52 kB / 0.5078 GB, free: 11.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002384/0.6796, allocations: 87.31 kB / 0.5078 GB, free: 11.32 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001295/0.6809, allocations: 0.5153 MB / 0.5083 GB, free: 10.77 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.594e-05/0.681, allocations: 41.31 kB / 0.5084 GB, free: 10.73 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.6811, allocations: 60 kB / 0.5084 GB, free: 10.67 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001295/0.6824, allocations: 0.5663 MB / 0.509 GB, free: 10.05 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.811e-05/0.6825, allocations: 0 / 0.509 GB, free: 10.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.153e-05/0.6826, allocations: 24 kB / 0.509 GB, free: 10.02 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/0.6826, allocations: 12.66 kB / 0.509 GB, free: 10.01 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009354/0.6835, allocations: 325.3 kB / 0.5093 GB, free: 9.695 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006414/0.69, allocations: 3.029 MB / 0.5123 GB, free: 6.523 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.691, allocations: 368 kB / 0.5126 GB, free: 6.145 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003625/0.6914, allocations: 137.7 kB / 0.5128 GB, free: 6.004 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.313e-05/0.6915, allocations: 8 kB / 0.5128 GB, free: 5.996 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.6915, allocations: 38.56 kB / 0.5128 GB, free: 5.949 MB / 442.7 MB Notification: Performance of pre-optimization done (n=39): time 2.675e-06/0.6916, allocations: 0 / 0.5128 GB, free: 5.949 MB / 442.7 MB Notification: Performance of matching and sorting (n=39): time 0.001103/0.6927, allocations: 358 kB / 0.5132 GB, free: 5.59 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.823e-05/0.6928, allocations: 106.8 kB / 0.5133 GB, free: 5.461 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008787/0.6936, allocations: 487.4 kB / 0.5137 GB, free: 4.977 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.093e-05/0.6937, allocations: 33.7 kB / 0.5138 GB, free: 4.938 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003229/0.6941, allocations: 398.5 kB / 0.5141 GB, free: 4.543 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.6942, allocations: 149.8 kB / 0.5143 GB, free: 4.395 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.402e-05/0.6943, allocations: 16 kB / 0.5143 GB, free: 4.379 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.6945, allocations: 330.8 kB / 0.5146 GB, free: 4.047 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004322/0.6949, allocations: 145.6 kB / 0.5147 GB, free: 3.902 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006193/0.6955, allocations: 352.8 kB / 0.5151 GB, free: 3.465 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005489/0.6961, allocations: 191.6 kB / 0.5153 GB, free: 3.277 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.6961, allocations: 0 / 0.5153 GB, free: 3.277 MB / 442.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00136/0.6975, allocations: 0.5213 MB / 0.5158 GB, free: 2.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00114/0.6986, allocations: 2.621 MB / 0.5183 GB, free: 15.93 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.6987, allocations: 4 kB / 0.5183 GB, free: 15.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.595e-05/0.6987, allocations: 12 kB / 0.5184 GB, free: 15.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/0.6999, allocations: 147.7 kB / 0.5185 GB, free: 15.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.605e-05/0.6999, allocations: 11.94 kB / 0.5185 GB, free: 15.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008332/0.7008, allocations: 87.41 kB / 0.5186 GB, free: 15.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.701e-05/0.7009, allocations: 28 kB / 0.5186 GB, free: 15.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.7009, allocations: 4 kB / 0.5186 GB, free: 15.64 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001281/0.7022, allocations: 475.1 kB / 0.5191 GB, free: 15.17 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.7022, allocations: 8 kB / 0.5191 GB, free: 15.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.544e-05/0.7022, allocations: 12.88 kB / 0.5191 GB, free: 15.15 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009663/0.7032, allocations: 143.8 kB / 0.5192 GB, free: 15.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.316e-05/0.7033, allocations: 15.94 kB / 0.5192 GB, free: 15 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005503/0.7038, allocations: 55.58 kB / 0.5193 GB, free: 14.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.35e-05/0.7039, allocations: 24 kB / 0.5193 GB, free: 14.92 MB / 458.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.00022/0.7041, allocations: 152.7 kB / 0.5195 GB, free: 14.76 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002311/0.7044, allocations: 67.25 kB / 0.5195 GB, free: 14.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002264/0.7046, allocations: 70.28 kB / 0.5196 GB, free: 14.62 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.869e-06/0.7046, allocations: 4 kB / 0.5196 GB, free: 14.62 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.7046, allocations: 0 / 0.5196 GB, free: 14.62 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.7047, allocations: 0 / 0.5196 GB, free: 14.62 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.7059, allocations: 0.5828 MB / 0.5202 GB, free: 13.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.7059, allocations: 4 kB / 0.5202 GB, free: 13.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.707, allocations: 87.89 kB / 0.5203 GB, free: 13.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.115e-05/0.707, allocations: 8 kB / 0.5203 GB, free: 13.89 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.543e-05/0.707, allocations: 11.98 kB / 0.5203 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.7071, allocations: 7.938 kB / 0.5203 GB, free: 13.87 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.7071, allocations: 0 / 0.5203 GB, free: 13.87 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/0.7086, allocations: 0.7008 MB / 0.521 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003067/0.7089, allocations: 168.4 kB / 0.5211 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/0.709, allocations: 16 kB / 0.5211 GB, free: 12.94 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006843/0.7097, allocations: 35.91 kB / 0.5212 GB, free: 12.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.7099, allocations: 27.95 kB / 0.5212 GB, free: 12.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.691e-05/0.7099, allocations: 8 kB / 0.5212 GB, free: 12.87 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006737/0.7106, allocations: 371.2 kB / 0.5216 GB, free: 12.51 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.7106, allocations: 4 kB / 0.5216 GB, free: 12.51 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001308/0.7119, allocations: 243.2 kB / 0.5218 GB, free: 12.27 MB / 458.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.001974/0.7139, allocations: 1.335 MB / 0.5231 GB, free: 10.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.7158, allocations: 0.6004 MB / 0.5237 GB, free: 10.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.7158, allocations: 0 / 0.5237 GB, free: 10.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004312/0.7163, allocations: 164.3 kB / 0.5238 GB, free: 10.14 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.7177, allocations: 162.1 kB / 0.524 GB, free: 9.992 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003445/0.7211, allocations: 1.244 MB / 0.5252 GB, free: 8.699 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006641/0.7218, allocations: 0.931 MB / 0.5261 GB, free: 7.742 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005968/0.7225, allocations: 243.4 kB / 0.5264 GB, free: 7.504 MB / 458.7 MB Notification: Performance of SimCode: time 1.243e-06/0.7225, allocations: 0 / 0.5264 GB, free: 7.504 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.982/3.704, allocations: 10.23 MB / 0.5364 GB, free: 119.2 MB / 458.7 MB