Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.761/2.761, allocations: 235.2 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.813e-05/1.812e-05, allocations: 0 / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3904/0.3904, allocations: 54.85 MB / 354.4 MB, free: 15.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1801/0.5706, allocations: 83.12 MB / 437.5 MB, free: 12.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.5709, allocations: 59.97 kB / 437.6 MB, free: 11.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05494/0.6259, allocations: 9.713 MB / 447.3 MB, free: 2.258 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.6259, allocations: 0 / 447.3 MB, free: 2.258 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.6259, allocations: 3.938 kB / 447.3 MB, free: 2.254 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0008033/0.6268, allocations: 480.5 kB / 447.8 MB, free: 1.734 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/0.6268, allocations: 8.031 kB / 447.8 MB, free: 1.727 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.71e-05/0.6269, allocations: 3.953 kB / 447.8 MB, free: 1.723 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.627, allocations: 159.1 kB / 448 MB, free: 1.527 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.627, allocations: 8 kB / 448 MB, free: 1.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.6271, allocations: 3.938 kB / 448 MB, free: 1.516 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.049e-05/0.6271, allocations: 4 kB / 448 MB, free: 1.512 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.381e-05/0.6272, allocations: 29.64 kB / 448 MB, free: 1.477 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.6272, allocations: 4 kB / 448 MB, free: 1.473 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.6273, allocations: 4 kB / 448 MB, free: 1.469 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.6273, allocations: 3.953 kB / 448 MB, free: 1.465 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001443/0.6274, allocations: 126.2 kB / 448.1 MB, free: 1.305 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.763e-05/0.6275, allocations: 18.58 kB / 448.2 MB, free: 1.277 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.218e-05/0.6275, allocations: 8.953 kB / 448.2 MB, free: 1.266 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.949e-06/0.6276, allocations: 0 / 448.2 MB, free: 1.266 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.008e-05/0.6276, allocations: 60.69 kB / 448.2 MB, free: 1.191 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.933e-06/0.6276, allocations: 0 / 448.2 MB, free: 1.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002274/0.6279, allocations: 49.58 kB / 448.3 MB, free: 1.137 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.628, allocations: 81.05 kB / 448.4 MB, free: 1.039 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.093e-05/0.628, allocations: 85 kB / 448.4 MB, free: 0.9492 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.6281, allocations: 29.73 kB / 448.5 MB, free: 0.9141 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.991e-05/0.6281, allocations: 80.14 kB / 448.5 MB, free: 0.832 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.275e-05/0.6281, allocations: 0 / 448.5 MB, free: 0.832 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-06/0.6282, allocations: 0 / 448.5 MB, free: 0.832 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.6283, allocations: 314.8 kB / 448.9 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.444e-05/0.6283, allocations: 4 kB / 448.9 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.394e-06/0.6284, allocations: 0 / 448.9 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.755e-05/0.6284, allocations: 0 / 448.9 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.6284, allocations: 4.062 kB / 448.9 MB, free: 0.5078 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001059/0.6285, allocations: 41.69 kB / 448.9 MB, free: 472 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/0.6286, allocations: 29.7 kB / 448.9 MB, free: 436 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.6286, allocations: 0 / 448.9 MB, free: 436 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.6286, allocations: 0 / 448.9 MB, free: 436 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.374e-06/0.6287, allocations: 4 kB / 448.9 MB, free: 432 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.6287, allocations: 0 / 448.9 MB, free: 432 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.214e-05/0.6287, allocations: 0 / 448.9 MB, free: 432 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.6287, allocations: 0 / 448.9 MB, free: 432 kB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001245/0.6289, allocations: 142.6 kB / 449.1 MB, free: 276 kB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001/0.629, allocations: 37.69 kB / 449.1 MB, free: 232 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.368e-06/0.629, allocations: 0 / 449.1 MB, free: 232 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.752e-05/0.629, allocations: 7.703 kB / 449.1 MB, free: 228 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.629, allocations: 7.875 kB / 449.1 MB, free: 220 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.6291, allocations: 0 / 449.1 MB, free: 220 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.6291, allocations: 0 / 449.1 MB, free: 220 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.6292, allocations: 138.2 kB / 449.3 MB, free: 44 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.6292, allocations: 0 / 449.3 MB, free: 44 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.293e-06/0.6292, allocations: 0 / 449.3 MB, free: 44 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.6292, allocations: 32 / 449.3 MB, free: 44 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.6293, allocations: 4 kB / 449.3 MB, free: 40 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.6293, allocations: 0 / 449.3 MB, free: 40 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.6293, allocations: 0 / 449.3 MB, free: 40 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001534/0.6295, allocations: 65.14 kB / 449.3 MB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.944e-05/0.6295, allocations: 81.09 kB / 449.4 MB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.6295, allocations: 0 / 449.4 MB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.473e-05/0.6296, allocations: 0 / 449.4 MB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.457e-05/0.6296, allocations: 12.03 kB / 449.4 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.6296, allocations: 0 / 449.4 MB, free: 15.84 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.175e-05/0.6297, allocations: 79.28 kB / 449.5 MB, free: 15.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6297, allocations: 0 / 449.5 MB, free: 15.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00103/0.6307, allocations: 175.8 kB / 449.7 MB, free: 15.59 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.001915/0.6327, allocations: 0.8927 MB / 450.6 MB, free: 14.68 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001391/0.6328, allocations: 63.41 kB / 450.6 MB, free: 14.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.6329, allocations: 0 / 450.6 MB, free: 14.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.37e-05/0.6329, allocations: 55.34 kB / 450.7 MB, free: 14.54 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.6331, allocations: 4.688 kB / 450.7 MB, free: 14.53 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006775/0.6338, allocations: 173.4 kB / 450.8 MB, free: 14.32 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.6341, allocations: 0.6766 MB / 451.5 MB, free: 13.62 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 6.773e-06/0.6341, allocations: 0 / 451.5 MB, free: 13.62 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.41e-05/0.6341, allocations: 7.438 kB / 451.5 MB, free: 13.62 MB / 394.7 MB Notification: Performance of SimCode: time 9.52e-07/0.6341, allocations: 0 / 451.5 MB, free: 13.62 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1264/0.7605, allocations: 4.691 MB / 456.2 MB, free: 8.938 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002647/0.7609, allocations: 187.8 kB / 456.4 MB, free: 8.734 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.915/3.676, allocations: 4.031 kB / 456.4 MB, free: 8.73 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.ComplexMath.TestComplexOperations_res.mat does not exist to compare? outputFormat=mat