Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.045/2.045, allocations: 209.3 MB / 221.5 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.86e-05/3.864e-05, allocations: 4 kB / 273.2 MB, free: 156 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1183, allocations: 48.7 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4202/0.5385, allocations: 82.35 MB / 404.2 MB, free: 7.156 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.5389, allocations: 67.97 kB / 404.3 MB, free: 7.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0682/0.6071, allocations: 14.15 MB / 418.4 MB, free: 8.918 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.6071, allocations: 0 / 418.4 MB, free: 8.918 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.587e-05/0.6072, allocations: 12 kB / 418.4 MB, free: 8.906 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002388/0.6096, allocations: 0.8333 MB / 419.3 MB, free: 8.027 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.6097, allocations: 8.031 kB / 419.3 MB, free: 8.02 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001812/0.6099, allocations: 82.53 kB / 419.4 MB, free: 7.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002721/0.6102, allocations: 79.06 kB / 419.4 MB, free: 7.852 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001406/0.6116, allocations: 487.6 kB / 419.9 MB, free: 7.336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.872e-05/0.6117, allocations: 40.98 kB / 420 MB, free: 7.293 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.6118, allocations: 52 kB / 420 MB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.613, allocations: 458 kB / 420.5 MB, free: 6.781 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.801e-05/0.6131, allocations: 352 / 420.5 MB, free: 6.781 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-05/0.6132, allocations: 23.95 kB / 420.5 MB, free: 6.758 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.6132, allocations: 12 kB / 420.5 MB, free: 6.746 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008521/0.6141, allocations: 281.5 kB / 420.8 MB, free: 6.469 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005449/0.6195, allocations: 1.777 MB / 422.5 MB, free: 4.605 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.6206, allocations: 361.6 kB / 422.9 MB, free: 4.234 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003728/0.621, allocations: 133.7 kB / 423 MB, free: 4.098 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.781e-05/0.6211, allocations: 8 kB / 423 MB, free: 4.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.6212, allocations: 38.5 kB / 423.1 MB, free: 4.043 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 3.527e-06/0.6212, allocations: 0 / 423.1 MB, free: 4.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.00108/0.6223, allocations: 334 kB / 423.4 MB, free: 3.707 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.6224, allocations: 136.5 kB / 423.5 MB, free: 3.543 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007876/0.6232, allocations: 396.7 kB / 423.9 MB, free: 3.145 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.94e-05/0.6233, allocations: 33.7 kB / 424 MB, free: 3.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003363/0.6236, allocations: 316.6 kB / 424.3 MB, free: 2.793 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/0.6238, allocations: 146 kB / 424.4 MB, free: 2.648 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.725e-05/0.6239, allocations: 8 kB / 424.4 MB, free: 2.641 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.6241, allocations: 374.8 kB / 424.8 MB, free: 2.266 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003951/0.6245, allocations: 125.1 kB / 424.9 MB, free: 2.141 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005229/0.625, allocations: 271.9 kB / 425.2 MB, free: 1.824 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004697/0.6255, allocations: 167.4 kB / 425.3 MB, free: 1.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.6255, allocations: 3.953 kB / 425.3 MB, free: 1.656 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.00126/0.6268, allocations: 468.4 kB / 425.8 MB, free: 1.191 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.6269, allocations: 8 kB / 425.8 MB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.6269, allocations: 4 kB / 425.8 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.858e-05/0.6269, allocations: 8 kB / 425.8 MB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.628, allocations: 124.2 kB / 425.9 MB, free: 1.051 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/0.628, allocations: 8 kB / 425.9 MB, free: 1.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007103/0.6287, allocations: 67.56 kB / 426 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.304e-05/0.6288, allocations: 19.98 kB / 426 MB, free: 0.957 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 63 * 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.0001831/0.629, allocations: 137.1 kB / 426.2 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.6291, allocations: 59.3 kB / 426.2 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001987/0.6294, allocations: 65.28 kB / 426.3 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.6294, allocations: 4 kB / 426.3 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.6294, allocations: 8 kB / 426.3 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/0.6294, allocations: 3.984 kB / 426.3 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.6306, allocations: 0.5323 MB / 426.8 MB, free: 96 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.6306, allocations: 0 / 426.8 MB, free: 96 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.6317, allocations: 91.84 kB / 426.9 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.267e-05/0.6317, allocations: 8.047 kB / 426.9 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.169e-05/0.6318, allocations: 7.938 kB / 426.9 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.017e-06/0.6318, allocations: 4 kB / 426.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.6318, allocations: 0 / 426.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001444/0.6333, allocations: 0.6883 MB / 427.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003029/0.6336, allocations: 164.5 kB / 427.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.6337, allocations: 12 kB / 427.8 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006875/0.6344, allocations: 35.97 kB / 427.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.6346, allocations: 31.95 kB / 427.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.716e-05/0.6346, allocations: 4 kB / 427.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005508/0.6352, allocations: 313.6 kB / 428.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6352, allocations: 7.938 kB / 428.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007598/0.636, allocations: 123.7 kB / 428.3 MB, free: 14.58 MB / 362.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 (38): * Single equations (assignments): 38 * 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.001788/0.6378, allocations: 1.317 MB / 429.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009577/0.6388, allocations: 323.5 kB / 429.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.6388, allocations: 0 / 429.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003927/0.6392, allocations: 156.1 kB / 430.1 MB, free: 12.76 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.6405, allocations: 142.6 kB / 430.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003161/0.6437, allocations: 1.107 MB / 431.3 MB, free: 11.47 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006269/0.6444, allocations: 0.9025 MB / 432.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004418/0.6448, allocations: 60.25 kB / 432.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004462/0.6453, allocations: 211.4 kB / 432.5 MB, free: 10.28 MB / 362.7 MB Notification: Performance of SimCode: time 1.443e-06/0.6453, allocations: 0 / 432.5 MB, free: 10.28 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04471/0.69, allocations: 10.31 MB / 442.8 MB, free: 56 kB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003217/0.6904, allocations: 137.1 kB / 442.9 MB, free: 15.83 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.895/3.585, allocations: 0 / 442.9 MB, free: 15.83 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat