Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.544/2.544, allocations: 270 MB / 282.6 MB, free: 1.801 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.892e-05/3.901e-05, allocations: 4 kB / 347 MB, free: 3.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.408/0.4081, allocations: 61.87 MB / 408.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1647/0.5728, allocations: 90.44 MB / 499.4 MB, free: 176 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002548/0.5732, allocations: 63.97 kB / 499.4 MB, free: 112 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02788/0.6011, allocations: 6.173 MB / 0.4937 GB, free: 9.926 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.6011, allocations: 4 kB / 0.4937 GB, free: 9.922 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.01e-05/0.6012, allocations: 12 kB / 0.4938 GB, free: 9.91 MB / 426.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.00111/0.6023, allocations: 0.5143 MB / 0.4943 GB, free: 9.352 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.6024, allocations: 12.03 kB / 0.4943 GB, free: 9.34 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001094/0.6025, allocations: 66.53 kB / 0.4943 GB, free: 9.266 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002999/0.6028, allocations: 51.61 kB / 0.4944 GB, free: 9.215 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004226/0.6032, allocations: 254.4 kB / 0.4946 GB, free: 8.926 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.6033, allocations: 20.78 kB / 0.4946 GB, free: 8.906 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.309e-05/0.6034, allocations: 39.94 kB / 0.4947 GB, free: 8.867 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006938/0.6041, allocations: 290.8 kB / 0.495 GB, free: 8.559 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.2e-05/0.6041, allocations: 3.906 kB / 0.495 GB, free: 8.555 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.285e-05/0.6042, allocations: 20 kB / 0.495 GB, free: 8.535 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.6042, allocations: 8 kB / 0.495 GB, free: 8.527 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004911/0.6047, allocations: 160.3 kB / 0.4951 GB, free: 8.371 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002922/0.6077, allocations: 1.341 MB / 0.4964 GB, free: 6.926 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006489/0.6084, allocations: 237.3 kB / 0.4967 GB, free: 6.648 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.6086, allocations: 72.3 kB / 0.4967 GB, free: 6.562 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.6086, allocations: 4 kB / 0.4967 GB, free: 6.559 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/0.6087, allocations: 42.53 kB / 0.4968 GB, free: 6.508 MB / 426.7 MB Notification: Performance of pre-optimization done (n=22): time 6.893e-06/0.6087, allocations: 4 kB / 0.4968 GB, free: 6.504 MB / 426.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005973/0.6093, allocations: 161.6 kB / 0.4969 GB, free: 6.34 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.993e-05/0.6094, allocations: 170.1 kB / 0.4971 GB, free: 6.137 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002812/0.6097, allocations: 187 kB / 0.4973 GB, free: 5.941 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.6097, allocations: 29.7 kB / 0.4973 GB, free: 5.906 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.6099, allocations: 246.2 kB / 0.4976 GB, free: 5.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.61, allocations: 90.92 kB / 0.4976 GB, free: 5.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.506e-05/0.6101, allocations: 11.94 kB / 0.4976 GB, free: 5.559 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.6102, allocations: 334.8 kB / 0.498 GB, free: 5.223 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.6104, allocations: 64 kB / 0.498 GB, free: 5.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003044/0.6107, allocations: 194.5 kB / 0.4982 GB, free: 4.906 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002754/0.611, allocations: 95.84 kB / 0.4983 GB, free: 4.812 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.611, allocations: 8 kB / 0.4983 GB, free: 4.805 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007282/0.6118, allocations: 281.2 kB / 0.4986 GB, free: 4.523 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.6118, allocations: 8.531 kB / 0.4986 GB, free: 4.516 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.6118, allocations: 4 kB / 0.4986 GB, free: 4.512 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.688e-05/0.6119, allocations: 12 kB / 0.4986 GB, free: 4.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006136/0.6125, allocations: 83.89 kB / 0.4987 GB, free: 4.418 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.127e-05/0.6125, allocations: 11.94 kB / 0.4987 GB, free: 4.406 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.6129, allocations: 39.59 kB / 0.4987 GB, free: 4.367 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.002e-05/0.6129, allocations: 15.98 kB / 0.4987 GB, free: 4.352 MB / 426.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.0001404/0.6131, allocations: 128.8 kB / 0.4989 GB, free: 4.219 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.6132, allocations: 19.81 kB / 0.4989 GB, free: 4.199 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000283/0.6135, allocations: 99.05 kB / 0.499 GB, free: 4.094 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.6136, allocations: 4 kB / 0.499 GB, free: 4.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.6136, allocations: 0 / 0.499 GB, free: 4.09 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.6136, allocations: 0 / 0.499 GB, free: 4.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009042/0.6145, allocations: 313.4 kB / 0.4993 GB, free: 3.734 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.6145, allocations: 4 kB / 0.4993 GB, free: 3.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007193/0.6153, allocations: 63.91 kB / 0.4994 GB, free: 3.668 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/0.6153, allocations: 0 / 0.4994 GB, free: 3.668 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.632e-05/0.6153, allocations: 8 kB / 0.4994 GB, free: 3.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.223e-06/0.6154, allocations: 4 kB / 0.4994 GB, free: 3.656 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.6154, allocations: 0 / 0.4994 GB, free: 3.656 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008643/0.6162, allocations: 0.6791 MB / 0.5 GB, free: 2.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.6164, allocations: 100.8 kB / 0.5001 GB, free: 2.812 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.81e-05/0.6165, allocations: 15.89 kB / 0.5001 GB, free: 2.797 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000396/0.6169, allocations: 8 kB / 0.5001 GB, free: 2.789 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.437e-05/0.6169, allocations: 16.08 kB / 0.5002 GB, free: 2.773 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.617, allocations: 11.94 kB / 0.5002 GB, free: 2.762 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002012/0.6172, allocations: 149.6 kB / 0.5003 GB, free: 2.617 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6172, allocations: 0 / 0.5003 GB, free: 2.617 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007789/0.618, allocations: 83.84 kB / 0.5004 GB, free: 2.535 MB / 426.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.001236/0.6192, allocations: 1.501 MB / 0.5019 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005295/0.6198, allocations: 175.6 kB / 0.502 GB, free: 0.8203 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.6198, allocations: 1.062 kB / 0.502 GB, free: 0.8203 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000176/0.62, allocations: 63.94 kB / 0.5021 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008805/0.6209, allocations: 60.64 kB / 0.5021 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0031/0.624, allocations: 1.117 MB / 0.5032 GB, free: 15.53 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004713/0.6245, allocations: 0.7796 MB / 0.504 GB, free: 14.73 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.6248, allocations: 91.41 kB / 0.5041 GB, free: 14.64 MB / 442.7 MB Notification: Performance of SimCode: time 1.343e-06/0.6248, allocations: 0 / 0.5041 GB, free: 14.64 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.612/3.237, allocations: 4.532 MB / 0.5085 GB, free: 10.12 MB / 442.7 MB