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 1.895/1.895, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.724e-05/4.729e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 48.69 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3944/0.5036, allocations: 76.67 MB / 398.5 MB, free: 13.26 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.5039, allocations: 66.62 kB / 398.6 MB, free: 13.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0596/0.5635, allocations: 11.37 MB / 409.9 MB, free: 1.809 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5636, allocations: 0 / 409.9 MB, free: 1.809 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.879e-05/0.5636, allocations: 4 kB / 409.9 MB, free: 1.805 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.003654/0.5673, allocations: 0.8687 MB / 410.8 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.991e-05/0.5674, allocations: 8.031 kB / 410.8 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002867/0.5677, allocations: 87.22 kB / 410.9 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002018/0.5679, allocations: 63.39 kB / 411 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007746/0.5687, allocations: 337.4 kB / 411.3 MB, free: 368 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006019/0.5693, allocations: 270.9 kB / 411.6 MB, free: 60 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.5694, allocations: 43.89 kB / 411.6 MB, free: 16 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/0.571, allocations: 0.548 MB / 412.2 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.5711, allocations: 4 kB / 412.2 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-05/0.5712, allocations: 16 kB / 412.2 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.5712, allocations: 12 kB / 412.2 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00237/0.5736, allocations: 0.8136 MB / 413 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004114/0.5777, allocations: 1.406 MB / 414.4 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002399/0.5801, allocations: 0.5838 MB / 415 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008573/0.581, allocations: 306.8 kB / 415.3 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001175/0.5811, allocations: 12.56 kB / 415.3 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.5812, allocations: 43.06 kB / 415.3 MB, free: 12.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 3.808e-06/0.5812, allocations: 0 / 415.3 MB, free: 12.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.03813/0.6193, allocations: 7.388 MB / 422.7 MB, free: 4.625 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.422e-05/0.6195, allocations: 90.23 kB / 422.8 MB, free: 4.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006185/0.6201, allocations: 327.3 kB / 423.1 MB, free: 4.191 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002277/0.6203, allocations: 45.7 kB / 423.2 MB, free: 4.141 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.6205, allocations: 235.8 kB / 423.4 MB, free: 3.906 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005911/0.6211, allocations: 406.1 kB / 423.8 MB, free: 3.504 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002275/0.6214, allocations: 20 kB / 423.8 MB, free: 3.484 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.6216, allocations: 354.8 kB / 424.2 MB, free: 3.129 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002769/0.6243, allocations: 0.9595 MB / 425.1 MB, free: 2.168 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002825/0.6272, allocations: 1.067 MB / 426.2 MB, free: 1.086 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002303/0.6295, allocations: 0.8114 MB / 427 MB, free: 284 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.193e-05/0.6295, allocations: 0 / 427 MB, free: 284 kB / 346.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.00588/0.6354, allocations: 2.015 MB / 429 MB, free: 14.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.6355, allocations: 8 kB / 429 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.6355, allocations: 0 / 429 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.065e-05/0.6355, allocations: 8.062 kB / 429 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005322/0.6409, allocations: 459.4 kB / 429.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.442e-05/0.6409, allocations: 11.95 kB / 429.5 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003813/0.6447, allocations: 279.7 kB / 429.8 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002494/0.645, allocations: 39.98 kB / 429.8 MB, free: 13.46 MB / 362.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.0005385/0.6456, allocations: 156.8 kB / 430 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003315/0.6459, allocations: 67.25 kB / 430 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003441/0.6463, allocations: 103.7 kB / 430.1 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.797e-05/0.6463, allocations: 16 kB / 430.2 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.6463, allocations: 4 kB / 430.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.646e-05/0.6463, allocations: 7.938 kB / 430.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01528/0.6616, allocations: 4.718 MB / 434.9 MB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.037e-05/0.6617, allocations: 20 kB / 434.9 MB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003138/0.6649, allocations: 411.7 kB / 435.3 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.962e-05/0.6649, allocations: 35.89 kB / 435.3 MB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001481/0.6651, allocations: 51.98 kB / 435.4 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.315e-05/0.6651, allocations: 39.86 kB / 435.4 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.119e-05/0.6652, allocations: 31.88 kB / 435.5 MB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005822/0.671, allocations: 3.303 MB / 438.8 MB, free: 3.305 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006605/0.6717, allocations: 244.2 kB / 439 MB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001964/0.6719, allocations: 51.98 kB / 439 MB, free: 2.996 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002608/0.6746, allocations: 251.8 kB / 439.3 MB, free: 2.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007868/0.6754, allocations: 235.3 kB / 439.5 MB, free: 2.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001578/0.6755, allocations: 59.92 kB / 439.6 MB, free: 2.461 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004727/0.676, allocations: 247.1 kB / 439.8 MB, free: 2.215 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.676, allocations: 4 kB / 439.8 MB, free: 2.211 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00155/0.6776, allocations: 232 kB / 440.1 MB, free: 1.984 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.008221/0.6859, allocations: 10.32 MB / 450.4 MB, free: 7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004806/0.6907, allocations: 1.628 MB / 452 MB, free: 5.375 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-05/0.6908, allocations: 3.938 kB / 452 MB, free: 5.371 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003545/0.6943, allocations: 0.7897 MB / 452.8 MB, free: 4.586 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/0.6958, allocations: 133 kB / 452.9 MB, free: 4.453 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006636/0.7025, allocations: 1.84 MB / 454.8 MB, free: 2.285 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000757/0.7033, allocations: 0.9241 MB / 455.7 MB, free: 1.336 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001427/0.7047, allocations: 207.4 kB / 455.9 MB, free: 1.133 MB / 378.7 MB Notification: Performance of SimCode: time 1.383e-06/0.7048, allocations: 0 / 455.9 MB, free: 1.133 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.678/3.383, allocations: 15.37 MB / 471.3 MB, free: 1.738 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