Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Spice3_Examples_Nand",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.82/1.82, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2527/2.073, allocations: 46.82 MB / 249.4 MB, free: 5.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/2.167, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3228/2.49, allocations: 96.92 MB / 390.8 MB, free: 3.031 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/2.49, allocations: 71.89 kB / 390.9 MB, free: 3.02 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.628/3.119, allocations: 121.2 MB / 0.5001 GB, free: 79.49 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/3.119, allocations: 7.938 kB / 0.5001 GB, free: 79.49 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007253/3.119, allocations: 373.1 kB / 0.5005 GB, free: 79.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006123/3.125, allocations: 2.25 MB / 0.5027 GB, free: 78.68 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/3.126, allocations: 14.75 kB / 0.5027 GB, free: 78.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002066/3.126, allocations: 38.12 kB / 0.5027 GB, free: 78.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001821/3.128, allocations: 0.6568 MB / 0.5034 GB, free: 78.68 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/3.129, allocations: 0.6939 MB / 0.504 GB, free: 78.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/3.129, allocations: 0 / 0.504 GB, free: 78.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/3.129, allocations: 3.594 kB / 0.504 GB, free: 78.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.105e-05/3.13, allocations: 18.72 kB / 0.5041 GB, free: 78.57 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008496/3.138, allocations: 2.837 MB / 0.5068 GB, free: 78.12 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008754/3.139, allocations: 357.1 kB / 0.5072 GB, free: 78.11 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001168/3.14, allocations: 0.5476 MB / 0.5077 GB, free: 78.09 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05109/3.191, allocations: 35.92 MB / 0.5428 GB, free: 51.71 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006644/3.192, allocations: 295.7 kB / 0.5431 GB, free: 51.66 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 4.058e-06/3.192, allocations: 0 / 0.5431 GB, free: 51.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=50): time 0.002479/3.194, allocations: 0.8705 MB / 0.5439 GB, free: 51.42 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.31e-05/3.195, allocations: 264 kB / 0.5442 GB, free: 51.11 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004264/3.199, allocations: 2.103 MB / 0.5462 GB, free: 50.83 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001474/3.199, allocations: 32.02 kB / 0.5462 GB, free: 50.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005121/3.2, allocations: 0.6136 MB / 0.5468 GB, free: 50.55 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001968/3.2, allocations: 162.5 kB / 0.547 GB, free: 50.45 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.416e-05/3.2, allocations: 3.906 kB / 0.547 GB, free: 50.45 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.592e-05/3.2, allocations: 338.8 kB / 0.5473 GB, free: 50.14 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005414/3.201, allocations: 165 kB / 0.5475 GB, free: 50.14 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007457/3.201, allocations: 0.5637 MB / 0.548 GB, free: 49.64 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008189/3.202, allocations: 270.5 kB / 0.5483 GB, free: 49.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.577e-06/3.202, allocations: 3.844 kB / 0.5483 GB, free: 49.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002834/3.205, allocations: 1.086 MB / 0.5494 GB, free: 49.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/3.205, allocations: 6.062 kB / 0.5494 GB, free: 49.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001867/3.205, allocations: 84.78 kB / 0.5494 GB, free: 49.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000962/3.206, allocations: 272.7 kB / 0.5497 GB, free: 49.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/3.208, allocations: 183.4 kB / 0.5499 GB, free: 49.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001701/3.209, allocations: 0.9368 MB / 0.5508 GB, free: 48.87 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002366/3.212, allocations: 106.8 kB / 0.5509 GB, free: 48.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001768/3.212, allocations: 66.84 kB / 0.551 GB, free: 48.82 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002751/3.212, allocations: 149.9 kB / 0.5511 GB, free: 48.71 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005739/3.213, allocations: 367.7 kB / 0.5515 GB, free: 48.52 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007609/3.22, allocations: 1.449 MB / 0.5529 GB, free: 48.42 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/3.22, allocations: 7.312 kB / 0.5529 GB, free: 48.42 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/3.22, allocations: 0 / 0.5529 GB, free: 48.42 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/3.22, allocations: 6.719 kB / 0.5529 GB, free: 48.42 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005486/3.226, allocations: 2.005 MB / 0.5548 GB, free: 48.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001834/3.226, allocations: 71.66 kB / 0.5549 GB, free: 48.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007866/3.227, allocations: 84.67 kB / 0.555 GB, free: 48.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008769/3.228, allocations: 259.5 kB / 0.5552 GB, free: 48.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/3.228, allocations: 27.56 kB / 0.5553 GB, free: 48.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001668/3.23, allocations: 0.9282 MB / 0.5562 GB, free: 47.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/3.23, allocations: 10.39 kB / 0.5562 GB, free: 47.5 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00244/3.232, allocations: 1.123 MB / 0.5573 GB, free: 46.96 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002614/3.235, allocations: 1.571 MB / 0.5588 GB, free: 46.06 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001317/3.236, allocations: 474 kB / 0.5593 GB, free: 45.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000692/3.237, allocations: 11.28 kB / 0.5593 GB, free: 45.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001892/3.239, allocations: 43.19 kB / 0.5593 GB, free: 45.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002562/3.239, allocations: 62.52 kB / 0.5594 GB, free: 45.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/3.239, allocations: 42.19 kB / 0.5594 GB, free: 45.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.003448/3.243, allocations: 1.559 MB / 0.5609 GB, free: 45.59 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00359/3.246, allocations: 0.6004 MB / 0.5615 GB, free: 45.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.00195/3.248, allocations: 0.9495 MB / 0.5624 GB, free: 45.38 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002091/3.25, allocations: 0.6898 MB / 0.5631 GB, free: 45.24 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/3.25, allocations: 0 / 0.5631 GB, free: 45.24 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/3.252, allocations: 428.3 kB / 0.5635 GB, free: 45.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002893/3.254, allocations: 450.4 kB / 0.564 GB, free: 45.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00832/3.263, allocations: 2.781 MB / 0.5667 GB, free: 44.14 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002049/3.265, allocations: 1.809 MB / 0.5684 GB, free: 43.41 MB / 394.7 MB Notification: Performance of SimCode: time 1.423e-06/3.265, allocations: 0 / 0.5684 GB, free: 43.41 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat