Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.111/2.111, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.283e-05/3.279e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1056, allocations: 48.71 MB / 316.3 MB, free: 4.516 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4397/0.5453, allocations: 76.24 MB / 392.5 MB, free: 96 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.5457, allocations: 64.28 kB / 392.6 MB, free: 64 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06037/0.606, allocations: 11.31 MB / 403.9 MB, free: 6.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6061, allocations: 4 kB / 403.9 MB, free: 6.477 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.477e-05/0.6062, allocations: 4 kB / 403.9 MB, free: 6.473 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.00374/0.6099, allocations: 0.8672 MB / 404.8 MB, free: 5.594 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.61, allocations: 12.03 kB / 404.8 MB, free: 5.582 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003392/0.6103, allocations: 64.08 kB / 404.9 MB, free: 5.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009607/0.6113, allocations: 336.6 kB / 405.2 MB, free: 5.188 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006438/0.612, allocations: 249.9 kB / 405.4 MB, free: 4.906 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000194/0.6122, allocations: 35.52 kB / 405.5 MB, free: 4.875 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002382/0.6146, allocations: 0.7905 MB / 406.3 MB, free: 4.34 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.6161, allocations: 0.4947 MB / 406.8 MB, free: 3.984 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.644e-05/0.6162, allocations: 7.984 kB / 406.8 MB, free: 3.977 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.215e-05/0.6163, allocations: 0 / 406.8 MB, free: 3.977 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.6163, allocations: 8 kB / 406.8 MB, free: 3.969 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00465/0.621, allocations: 1.332 MB / 408.1 MB, free: 2.922 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002484/0.6235, allocations: 0.5655 MB / 408.7 MB, free: 2.516 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009152/0.6245, allocations: 298.7 kB / 409 MB, free: 2.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001814/0.6247, allocations: 8.5 kB / 409 MB, free: 2.332 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.6248, allocations: 46.98 kB / 409 MB, free: 2.281 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 4.058e-06/0.6248, allocations: 0 / 409 MB, free: 2.281 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.03769/0.6625, allocations: 7.093 MB / 416.1 MB, free: 12.33 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.243e-05/0.6627, allocations: 98.17 kB / 416.2 MB, free: 12.22 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006666/0.6633, allocations: 310.2 kB / 416.5 MB, free: 11.91 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003402/0.6637, allocations: 25.7 kB / 416.5 MB, free: 11.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.6639, allocations: 247.8 kB / 416.8 MB, free: 11.63 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006735/0.6646, allocations: 374.2 kB / 417.1 MB, free: 11.26 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002668/0.6649, allocations: 0 / 417.1 MB, free: 11.26 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.6651, allocations: 362.7 kB / 417.5 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002669/0.6678, allocations: 0.9439 MB / 418.4 MB, free: 9.949 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002988/0.6708, allocations: 1.036 MB / 419.5 MB, free: 8.895 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00236/0.6732, allocations: 0.7891 MB / 420.3 MB, free: 8.109 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/0.6733, allocations: 0 / 420.3 MB, free: 8.109 MB / 346.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.00611/0.6794, allocations: 1.941 MB / 422.2 MB, free: 6.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.468e-05/0.6795, allocations: 8.062 kB / 422.2 MB, free: 6.152 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.6796, allocations: 4 kB / 422.2 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.302e-05/0.6796, allocations: 4 kB / 422.2 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005593/0.6852, allocations: 459.4 kB / 422.7 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.054e-05/0.6853, allocations: 4 kB / 422.7 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004055/0.6894, allocations: 255.7 kB / 422.9 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003833/0.6898, allocations: 35.98 kB / 423 MB, free: 5.406 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP1b.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 142 * 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.0005692/0.6904, allocations: 124.8 kB / 423.1 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005442/0.6958, allocations: 1.699 MB / 424.8 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005156/0.6964, allocations: 55.34 kB / 424.8 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003639/0.6968, allocations: 96.05 kB / 424.9 MB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.6968, allocations: 12 kB / 424.9 MB, free: 3.41 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.6968, allocations: 0 / 424.9 MB, free: 3.41 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/0.6969, allocations: 3.984 kB / 424.9 MB, free: 3.406 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01689/0.7138, allocations: 4.555 MB / 429.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.831e-05/0.7139, allocations: 20 kB / 429.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003498/0.7174, allocations: 416.1 kB / 429.9 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.039e-05/0.7176, allocations: 28 kB / 430 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003438/0.718, allocations: 28 kB / 430 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.972e-05/0.718, allocations: 43.8 kB / 430 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.075e-05/0.7181, allocations: 39.81 kB / 430.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005756/0.7239, allocations: 3.229 MB / 433.3 MB, free: 9.871 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007704/0.7247, allocations: 244.3 kB / 433.5 MB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000255/0.725, allocations: 31.98 kB / 433.6 MB, free: 9.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002696/0.7277, allocations: 239.7 kB / 433.8 MB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001012/0.7288, allocations: 239.2 kB / 434 MB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002179/0.7291, allocations: 59.94 kB / 434.1 MB, free: 9.055 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004758/0.7295, allocations: 237.9 kB / 434.3 MB, free: 8.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.7296, allocations: 0 / 434.3 MB, free: 8.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001885/0.7315, allocations: 196 kB / 434.5 MB, free: 8.629 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 122 * 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.008409/0.7399, allocations: 10.23 MB / 444.7 MB, free: 13.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004647/0.7446, allocations: 1.603 MB / 446.3 MB, free: 12.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.431e-05/0.7447, allocations: 4 kB / 446.3 MB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00346/0.7482, allocations: 0.7625 MB / 447.1 MB, free: 11.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.7498, allocations: 103 kB / 447.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006793/0.7567, allocations: 1.751 MB / 449 MB, free: 9.188 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008498/0.7576, allocations: 0.9244 MB / 449.9 MB, free: 8.234 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/0.7592, allocations: 211.3 kB / 450.1 MB, free: 8.027 MB / 378.7 MB Notification: Performance of SimCode: time 1.443e-06/0.7593, allocations: 0 / 450.1 MB, free: 8.027 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.798/3.558, allocations: 15.36 MB / 465.4 MB, free: 8.648 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat