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.861/1.861, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.151e-05/2.173e-05, allocations: 0 / 219.5 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2862, allocations: 38.76 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1247/0.411, allocations: 65.31 MB / 323.6 MB, free: 12.62 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/0.4113, allocations: 59.97 kB / 323.7 MB, free: 12.56 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005286/0.4166, allocations: 1.226 MB / 324.9 MB, free: 11.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4167, allocations: 224 / 324.9 MB, free: 11.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.4167, allocations: 0 / 324.9 MB, free: 11.34 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.0006332/0.4173, allocations: 370.3 kB / 325.3 MB, free: 10.93 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/0.4174, allocations: 16.02 kB / 325.3 MB, free: 10.91 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.264e-05/0.4174, allocations: 7.906 kB / 325.3 MB, free: 10.91 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.4176, allocations: 174.9 kB / 325.5 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.4176, allocations: 4 kB / 325.5 MB, free: 10.69 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.4177, allocations: 4 kB / 325.5 MB, free: 10.69 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001475/0.4178, allocations: 24 kB / 325.5 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00014/0.418, allocations: 57.64 kB / 325.5 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.418, allocations: 7.969 kB / 325.6 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.418, allocations: 0 / 325.6 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.418, allocations: 0 / 325.6 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000506/0.4186, allocations: 281.2 kB / 325.8 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.4187, allocations: 42.56 kB / 325.9 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.652e-05/0.4188, allocations: 16.86 kB / 325.9 MB, free: 10.21 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.4188, allocations: 3.984 kB / 325.9 MB, free: 10.21 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.4189, allocations: 34.56 kB / 325.9 MB, free: 10.16 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 2.054e-06/0.4189, allocations: 4 kB / 325.9 MB, free: 10.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002245/0.4191, allocations: 61.72 kB / 326 MB, free: 10.09 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.4192, allocations: 55.41 kB / 326 MB, free: 10.03 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.03e-05/0.4193, allocations: 97 kB / 326.1 MB, free: 9.926 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.4193, allocations: 25.7 kB / 326.2 MB, free: 9.895 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.266e-05/0.4194, allocations: 158.5 kB / 326.3 MB, free: 9.738 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.931e-05/0.4195, allocations: 15.81 kB / 326.3 MB, free: 9.723 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-06/0.4195, allocations: 0 / 326.3 MB, free: 9.723 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.4196, allocations: 314.8 kB / 326.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.882e-05/0.4197, allocations: 8 kB / 326.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.371e-05/0.4197, allocations: 12 kB / 326.7 MB, free: 9.387 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.153e-05/0.4198, allocations: 11.98 kB / 326.7 MB, free: 9.375 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4198, allocations: 0 / 326.7 MB, free: 9.375 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001421/0.4199, allocations: 61.58 kB / 326.7 MB, free: 9.309 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.42, allocations: 8 kB / 326.7 MB, free: 9.301 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.42, allocations: 0 / 326.7 MB, free: 9.301 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.42, allocations: 0 / 326.7 MB, free: 9.301 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002367/0.4202, allocations: 23.98 kB / 326.8 MB, free: 9.277 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.4203, allocations: 0 / 326.8 MB, free: 9.277 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001639/0.4204, allocations: 19.97 kB / 326.8 MB, free: 9.258 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.818e-06/0.4205, allocations: 3.938 kB / 326.8 MB, free: 9.254 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 8.436e-05/0.4205, allocations: 106.4 kB / 326.9 MB, free: 9.145 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001513/0.4207, allocations: 65.55 kB / 327 MB, free: 9.074 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.273e-05/0.4208, allocations: 4 kB / 327 MB, free: 9.07 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002052/0.421, allocations: 81.86 kB / 327 MB, free: 8.98 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.421, allocations: 3.938 kB / 327 MB, free: 8.977 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.421, allocations: 0 / 327 MB, free: 8.977 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.421, allocations: 240 / 327 MB, free: 8.977 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000224/0.4213, allocations: 158.1 kB / 327.2 MB, free: 8.785 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.4213, allocations: 3.953 kB / 327.2 MB, free: 8.781 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002182/0.4215, allocations: 27.98 kB / 327.2 MB, free: 8.754 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.4215, allocations: 3.984 kB / 327.2 MB, free: 8.75 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.4215, allocations: 0 / 327.2 MB, free: 8.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4215, allocations: 0 / 327.2 MB, free: 8.75 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4216, allocations: 0 / 327.2 MB, free: 8.75 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002066/0.4218, allocations: 163.5 kB / 327.4 MB, free: 8.574 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.928e-05/0.4218, allocations: 92.95 kB / 327.5 MB, free: 8.465 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.4219, allocations: 0 / 327.5 MB, free: 8.465 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002006/0.4221, allocations: 19.98 kB / 327.5 MB, free: 8.445 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.038e-05/0.4222, allocations: 7.984 kB / 327.5 MB, free: 8.438 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.4222, allocations: 4 kB / 327.5 MB, free: 8.434 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.47e-05/0.4222, allocations: 83.28 kB / 327.6 MB, free: 8.352 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.4223, allocations: 0 / 327.6 MB, free: 8.352 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003174/0.4226, allocations: 12 kB / 327.6 MB, free: 8.34 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.0005925/0.4232, allocations: 0.7007 MB / 328.3 MB, free: 7.609 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001491/0.4233, allocations: 35.94 kB / 328.3 MB, free: 7.574 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.4234, allocations: 0 / 328.3 MB, free: 7.574 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.771e-05/0.4234, allocations: 20 kB / 328.4 MB, free: 7.555 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002385/0.4237, allocations: 11.59 kB / 328.4 MB, free: 7.547 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005527/0.4243, allocations: 155.3 kB / 328.5 MB, free: 7.348 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000309/0.4246, allocations: 0.6947 MB / 329.2 MB, free: 6.629 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.553e-05/0.4247, allocations: 15.44 kB / 329.2 MB, free: 6.613 MB / 282.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4247, allocations: 3.938 kB / 329.2 MB, free: 6.609 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.392/2.817, allocations: 1.184 MB / 330.4 MB, free: 5.426 MB / 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