Running command: "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.153e-05/4.157e-05, allocations: 8 kB / 225.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2646, allocations: 38.76 MB / 263.8 MB, free: 9.746 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.3988, allocations: 65.98 MB / 329.8 MB, free: 7.672 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/0.3992, allocations: 63.97 kB / 329.9 MB, free: 7.609 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006918/0.4061, allocations: 1.233 MB / 331.1 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4062, allocations: 0 / 331.1 MB, free: 6.375 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.4062, allocations: 0 / 331.1 MB, free: 6.375 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000839/0.407, allocations: 378.4 kB / 331.5 MB, free: 5.961 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.098e-05/0.4071, allocations: 12.03 kB / 331.5 MB, free: 5.949 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.234e-05/0.4072, allocations: 34.5 kB / 331.5 MB, free: 5.906 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.52e-05/0.4073, allocations: 7.906 kB / 331.5 MB, free: 5.898 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001822/0.4075, allocations: 167 kB / 331.7 MB, free: 5.695 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.4075, allocations: 4 kB / 331.7 MB, free: 5.691 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.62e-05/0.4075, allocations: 4 kB / 331.7 MB, free: 5.688 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002442/0.4078, allocations: 69.61 kB / 331.8 MB, free: 5.613 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.4078, allocations: 3.938 kB / 331.8 MB, free: 5.609 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.4079, allocations: 0 / 331.8 MB, free: 5.609 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.4079, allocations: 4 kB / 331.8 MB, free: 5.605 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001773/0.4081, allocations: 35.94 kB / 331.8 MB, free: 5.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006855/0.4088, allocations: 292.7 kB / 332.1 MB, free: 5.234 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00019/0.409, allocations: 50.59 kB / 332.2 MB, free: 5.176 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.588e-05/0.4091, allocations: 16.86 kB / 332.2 MB, free: 5.156 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.4091, allocations: 8 kB / 332.2 MB, free: 5.148 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.4092, allocations: 30.56 kB / 332.2 MB, free: 5.109 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 2.455e-06/0.4092, allocations: 0 / 332.2 MB, free: 5.109 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003131/0.4095, allocations: 61.69 kB / 332.3 MB, free: 5.043 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.506e-05/0.4096, allocations: 56.06 kB / 332.3 MB, free: 4.977 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.4098, allocations: 97 kB / 332.4 MB, free: 4.875 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.4098, allocations: 25.7 kB / 332.4 MB, free: 4.844 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.4099, allocations: 166.5 kB / 332.6 MB, free: 4.68 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.461e-05/0.41, allocations: 15.81 kB / 332.6 MB, free: 4.664 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.958e-05/0.41, allocations: 0 / 332.6 MB, free: 4.664 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.4102, allocations: 322.7 kB / 332.9 MB, free: 4.34 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.938e-05/0.4103, allocations: 12 kB / 332.9 MB, free: 4.328 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.163e-05/0.4103, allocations: 12 kB / 333 MB, free: 4.316 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.82e-05/0.4104, allocations: 11.98 kB / 333 MB, free: 4.305 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4104, allocations: 0 / 333 MB, free: 4.305 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002214/0.4107, allocations: 57.69 kB / 333 MB, free: 4.242 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.4107, allocations: 8 kB / 333 MB, free: 4.234 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.4107, allocations: 4 kB / 333 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.4108, allocations: 0 / 333 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003136/0.4111, allocations: 23.98 kB / 333.1 MB, free: 4.207 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.4111, allocations: 0 / 333.1 MB, free: 4.207 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.4114, allocations: 19.97 kB / 333.1 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.4114, allocations: 0 / 333.1 MB, free: 4.188 MB / 282.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 9.536e-05/0.4115, allocations: 112.9 kB / 333.2 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.776e-05/0.4116, allocations: 11.84 kB / 333.2 MB, free: 4.059 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000232/0.4118, allocations: 73.7 kB / 333.3 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.4118, allocations: 0 / 333.3 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4118, allocations: 192 / 333.3 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.4119, allocations: 0 / 333.3 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002727/0.4121, allocations: 193.5 kB / 333.5 MB, free: 3.734 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.4122, allocations: 0 / 333.5 MB, free: 3.734 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000242/0.4124, allocations: 27.98 kB / 333.5 MB, free: 3.707 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.4124, allocations: 0 / 333.5 MB, free: 3.707 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.4124, allocations: 3.984 kB / 333.5 MB, free: 3.703 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.4125, allocations: 0 / 333.5 MB, free: 3.703 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.4125, allocations: 3.938 kB / 333.5 MB, free: 3.699 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002379/0.4127, allocations: 171.4 kB / 333.7 MB, free: 3.516 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.529e-05/0.4128, allocations: 85.06 kB / 333.7 MB, free: 3.414 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.4128, allocations: 0 / 333.7 MB, free: 3.414 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.413, allocations: 19.98 kB / 333.8 MB, free: 3.395 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.936e-05/0.4131, allocations: 7.984 kB / 333.8 MB, free: 3.387 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.4131, allocations: 0 / 333.8 MB, free: 3.387 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.469e-05/0.4132, allocations: 91.58 kB / 333.9 MB, free: 3.297 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4132, allocations: 0 / 333.9 MB, free: 3.297 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003129/0.4135, allocations: 11.91 kB / 333.9 MB, free: 3.285 MB / 282.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0006216/0.4142, allocations: 0.7203 MB / 334.6 MB, free: 2.539 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001595/0.4144, allocations: 35.94 kB / 334.6 MB, free: 2.504 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4144, allocations: 4 kB / 334.6 MB, free: 2.5 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.211e-05/0.4145, allocations: 20 kB / 334.7 MB, free: 2.48 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002349/0.4147, allocations: 9.703 kB / 334.7 MB, free: 2.473 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005595/0.4153, allocations: 156.3 kB / 334.8 MB, free: 2.273 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.4156, allocations: 0.6887 MB / 335.5 MB, free: 1.559 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.026e-05/0.4157, allocations: 15.44 kB / 335.5 MB, free: 1.543 MB / 282.7 MB Notification: Performance of SimCode: time 8.52e-07/0.4157, allocations: 0 / 335.5 MB, free: 1.543 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.651/3.067, allocations: 1.192 MB / 336.7 MB, free: 368 kB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat does not exist to compare? outputFormat=mat