Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(ModelicaTest): time 2.075/2.075, allocations: 209.3 MB / 216.3 MB, free: 6.805 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2589/2.334, allocations: 51.02 MB / 267.3 MB, free: 5.16 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/2.451, allocations: 48.69 MB / 316 MB, free: 4.383 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3471/2.798, allocations: 76.15 MB / 392.1 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003665/2.798, allocations: 67.22 kB / 392.2 MB, free: 0.5391 MB / 314.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.0753/2.874, allocations: 12 MB / 404.2 MB, free: 6.242 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/2.874, allocations: 8 kB / 404.2 MB, free: 6.234 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003069/2.874, allocations: 59.62 kB / 404.3 MB, free: 6.176 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00087/2.875, allocations: 342.1 kB / 404.6 MB, free: 5.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000843/2.876, allocations: 262.8 kB / 404.8 MB, free: 5.551 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001889/2.876, allocations: 20 kB / 404.9 MB, free: 5.531 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004283/2.88, allocations: 0.8018 MB / 405.7 MB, free: 4.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00277/2.883, allocations: 0.5067 MB / 406.2 MB, free: 4.613 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.505e-05/2.883, allocations: 11.86 kB / 406.2 MB, free: 4.602 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001359/2.883, allocations: 0 / 406.2 MB, free: 4.602 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.461e-05/2.883, allocations: 8 kB / 406.2 MB, free: 4.594 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007422/2.891, allocations: 1.351 MB / 407.5 MB, free: 3.531 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003148/2.894, allocations: 461 kB / 408 MB, free: 3.215 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/2.895, allocations: 295.3 kB / 408.3 MB, free: 3.043 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001207/2.895, allocations: 8.562 kB / 408.3 MB, free: 3.035 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/2.895, allocations: 41.06 kB / 408.3 MB, free: 2.992 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 3.617e-06/2.895, allocations: 4 kB / 408.3 MB, free: 2.988 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.04379/2.939, allocations: 7.169 MB / 415.5 MB, free: 12.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/2.939, allocations: 90.11 kB / 415.6 MB, free: 12.64 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007135/2.94, allocations: 319.3 kB / 415.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004025/2.94, allocations: 25.7 kB / 415.9 MB, free: 12.29 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/2.941, allocations: 165.3 kB / 416.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000667/2.941, allocations: 386.1 kB / 416.5 MB, free: 11.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002586/2.942, allocations: 0 / 416.5 MB, free: 11.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003104/2.942, allocations: 366.8 kB / 416.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004667/2.947, allocations: 0.9478 MB / 417.8 MB, free: 10.42 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003446/2.95, allocations: 1.043 MB / 418.8 MB, free: 9.355 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00271/2.953, allocations: 0.7956 MB / 419.6 MB, free: 8.562 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/2.953, allocations: 3.938 kB / 419.6 MB, free: 8.559 MB / 346.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.008794/2.962, allocations: 1.991 MB / 421.6 MB, free: 6.559 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.22e-05/2.962, allocations: 8 kB / 421.6 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.296e-05/2.962, allocations: 0 / 421.6 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.087e-05/2.962, allocations: 8 kB / 421.6 MB, free: 6.543 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008208/2.97, allocations: 483.4 kB / 422.1 MB, free: 6.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.09e-05/2.97, allocations: 12 kB / 422.1 MB, free: 6.059 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006168/2.976, allocations: 279.7 kB / 422.4 MB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006267/2.977, allocations: 35.98 kB / 422.4 MB, free: 5.75 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.0009276/2.978, allocations: 128.7 kB / 422.5 MB, free: 5.617 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006164/2.979, allocations: 59.28 kB / 422.6 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002876/2.979, allocations: 63.73 kB / 422.7 MB, free: 5.492 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-05/2.979, allocations: 15.91 kB / 422.7 MB, free: 5.477 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/2.979, allocations: 0 / 422.7 MB, free: 5.477 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.159e-05/2.979, allocations: 3.984 kB / 422.7 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02104/3, allocations: 4.724 MB / 427.4 MB, free: 388 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000103/3, allocations: 23.98 kB / 427.4 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005552/3.006, allocations: 431.5 kB / 427.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.449e-05/3.006, allocations: 28 kB / 427.9 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003404/3.007, allocations: 28 kB / 427.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.618e-05/3.007, allocations: 47.78 kB / 427.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.423e-05/3.007, allocations: 31.88 kB / 428 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007182/3.014, allocations: 3.252 MB / 431.2 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007693/3.022, allocations: 4.159 MB / 435.4 MB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007573/3.022, allocations: 240.3 kB / 435.6 MB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002333/3.023, allocations: 31.89 kB / 435.7 MB, free: 6.371 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002994/3.026, allocations: 263.8 kB / 435.9 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007505/3.027, allocations: 211.3 kB / 436.1 MB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000171/3.027, allocations: 56 kB / 436.2 MB, free: 5.852 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0004834/3.027, allocations: 247 kB / 436.4 MB, free: 5.609 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002445/3.03, allocations: 192 kB / 436.6 MB, free: 5.422 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.0003519/3.03, allocations: 154.6 kB / 436.8 MB, free: 5.262 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004987/3.035, allocations: 1.612 MB / 438.4 MB, free: 3.648 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.806e-05/3.035, allocations: 0 / 438.4 MB, free: 3.648 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00387/3.039, allocations: 0.7694 MB / 439.1 MB, free: 2.883 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/3.041, allocations: 108.5 kB / 439.2 MB, free: 2.777 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006382/3.047, allocations: 1.649 MB / 440.9 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002223/3.049, allocations: 1.013 MB / 441.9 MB, free: 15.77 MB / 378.7 MB Notification: Performance of SimCode: time 1.273e-06/3.049, allocations: 0 / 441.9 MB, free: 15.77 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat