Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_WiredX",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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(Modelica): time 1.582/1.582, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2279/1.81, allocations: 46.83 MB / 249.4 MB, free: 5.348 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09/1.9, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.301/2.201, allocations: 77.73 MB / 371.6 MB, free: 7.141 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002302/2.201, allocations: 68.7 kB / 371.7 MB, free: 7.141 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.1367/2.338, allocations: 43.08 MB / 414.8 MB, free: 6.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/2.338, allocations: 11.98 kB / 414.8 MB, free: 6.668 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000209/2.338, allocations: 83.06 kB / 414.9 MB, free: 6.586 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007707/2.339, allocations: 374.4 kB / 415.3 MB, free: 6.215 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.901e-05/2.339, allocations: 13.12 kB / 415.3 MB, free: 6.203 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/2.339, allocations: 13.06 kB / 415.3 MB, free: 6.191 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004858/2.339, allocations: 135.9 kB / 415.4 MB, free: 6.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007527/2.34, allocations: 279.7 kB / 415.7 MB, free: 5.852 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/2.34, allocations: 0 / 415.7 MB, free: 5.852 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.543e-05/2.34, allocations: 5.188 kB / 415.7 MB, free: 5.848 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/2.34, allocations: 8 kB / 415.7 MB, free: 5.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00218/2.343, allocations: 0.7583 MB / 416.5 MB, free: 5.062 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005076/2.343, allocations: 206.5 kB / 416.7 MB, free: 4.852 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004409/2.344, allocations: 180.8 kB / 416.8 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/2.344, allocations: 0 / 416.8 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006707/2.344, allocations: 393.4 kB / 417.2 MB, free: 4.254 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.234e-06/2.344, allocations: 0 / 417.2 MB, free: 4.254 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001238/2.346, allocations: 448.7 kB / 417.7 MB, free: 3.809 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001739/2.346, allocations: 281 kB / 417.9 MB, free: 3.473 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001718/2.347, allocations: 0.8 MB / 418.7 MB, free: 2.664 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.272e-05/2.348, allocations: 37.69 kB / 418.8 MB, free: 2.621 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.749e-05/2.348, allocations: 106 kB / 418.9 MB, free: 2.512 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/2.348, allocations: 59.27 kB / 418.9 MB, free: 2.453 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.267e-05/2.348, allocations: 8 kB / 418.9 MB, free: 2.445 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/2.348, allocations: 338.7 kB / 419.3 MB, free: 2.105 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003971/2.348, allocations: 128.2 kB / 419.4 MB, free: 1.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004581/2.349, allocations: 158.2 kB / 419.5 MB, free: 1.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003638/2.349, allocations: 119.9 kB / 419.7 MB, free: 1.703 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/2.349, allocations: 4 kB / 419.7 MB, free: 1.699 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001145/2.35, allocations: 421 kB / 420.1 MB, free: 1.281 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/2.35, allocations: 4 kB / 420.1 MB, free: 1.277 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/2.351, allocations: 3.938 kB / 420.1 MB, free: 1.273 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/2.351, allocations: 0 / 420.1 MB, free: 1.273 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.489e-05/2.351, allocations: 11.98 kB / 420.1 MB, free: 1.262 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/2.351, allocations: 0 / 420.1 MB, free: 1.262 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004607/2.351, allocations: 39.8 kB / 420.1 MB, free: 1.223 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003952/2.351, allocations: 255.8 kB / 420.4 MB, free: 0.9727 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * 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.0004254/2.352, allocations: 378.3 kB / 420.8 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000175/2.352, allocations: 79.06 kB / 420.8 MB, free: 480 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000362/2.352, allocations: 122.9 kB / 421 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/2.352, allocations: 4 kB / 421 MB, free: 352 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/2.353, allocations: 3.984 kB / 421 MB, free: 348 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/2.353, allocations: 4 kB / 421 MB, free: 344 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002166/2.355, allocations: 1.016 MB / 422 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/2.355, allocations: 0 / 422 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.329e-05/2.355, allocations: 4 kB / 422 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.808e-06/2.355, allocations: 0 / 422 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001223/2.355, allocations: 43.97 kB / 422 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/2.355, allocations: 4 kB / 422 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/2.355, allocations: 4 kB / 422 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001347/2.356, allocations: 0.5726 MB / 422.6 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001538/2.358, allocations: 0.9675 MB / 423.6 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/2.359, allocations: 439.8 kB / 424 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002262/2.359, allocations: 23.91 kB / 424 MB, free: 13.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004966/2.36, allocations: 31.98 kB / 424.1 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002763/2.36, allocations: 63.92 kB / 424.1 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004054/2.36, allocations: 267.5 kB / 424.4 MB, free: 12.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.001471/2.362, allocations: 0.6548 MB / 425 MB, free: 12.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001525/2.364, allocations: 80 kB / 425.1 MB, free: 12.09 MB / 330.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: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * 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.0002956/2.364, allocations: 145.4 kB / 425.3 MB, free: 11.94 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001214/2.365, allocations: 0.5632 MB / 425.8 MB, free: 11.33 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/2.365, allocations: 0 / 425.8 MB, free: 11.33 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000967/2.366, allocations: 0.5444 MB / 426.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001772/2.368, allocations: 222.7 kB / 426.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003169/2.371, allocations: 1.045 MB / 427.6 MB, free: 9.438 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001321/2.372, allocations: 1.041 MB / 428.7 MB, free: 8.363 MB / 330.7 MB Notification: Performance of SimCode: time 1.243e-06/2.372, allocations: 0 / 428.7 MB, free: 8.363 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat