Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Spice3_Examples_Nor",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.728/1.728, allocations: 194.9 MB / 202.6 MB, free: 6.879 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2369/1.965, allocations: 46.83 MB / 249.4 MB, free: 5.316 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09056/2.056, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3136/2.369, allocations: 97.13 MB / 391 MB, free: 3.039 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/2.37, allocations: 72.3 kB / 391.1 MB, free: 3.027 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.614/2.984, allocations: 122.2 MB / 0.5012 GB, free: 80.22 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/2.984, allocations: 7.188 kB / 0.5013 GB, free: 80.22 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007419/2.984, allocations: 385.7 kB / 0.5016 GB, free: 80.03 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006077/2.991, allocations: 2.253 MB / 0.5038 GB, free: 79.41 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.101e-05/2.991, allocations: 19.34 kB / 0.5038 GB, free: 79.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002164/2.991, allocations: 35.84 kB / 0.5039 GB, free: 79.41 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001896/2.993, allocations: 0.6783 MB / 0.5045 GB, free: 79.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/2.994, allocations: 0.7302 MB / 0.5052 GB, free: 79.29 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.338e-05/2.995, allocations: 0 / 0.5052 GB, free: 79.29 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/2.995, allocations: 5.891 kB / 0.5053 GB, free: 79.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.869e-05/2.995, allocations: 19.47 kB / 0.5053 GB, free: 79.29 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008783/3.003, allocations: 2.961 MB / 0.5082 GB, free: 78.86 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/3.005, allocations: 435.8 kB / 0.5086 GB, free: 78.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001625/3.006, allocations: 0.8166 MB / 0.5094 GB, free: 78.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05151/3.058, allocations: 35.84 MB / 0.5444 GB, free: 52.45 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00116/3.059, allocations: 495.4 kB / 0.5449 GB, free: 52.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.328e-06/3.059, allocations: 0 / 0.5449 GB, free: 52.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=99): time 0.01134/3.07, allocations: 3.355 MB / 0.5481 GB, free: 51.22 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.385e-05/3.071, allocations: 283.2 kB / 0.5484 GB, free: 50.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004144/3.075, allocations: 2.039 MB / 0.5504 GB, free: 50.64 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002411/3.075, allocations: 28.48 kB / 0.5504 GB, free: 50.61 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004497/3.075, allocations: 0.4998 MB / 0.5509 GB, free: 50.45 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003552/3.076, allocations: 324.3 kB / 0.5512 GB, free: 50.24 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/3.076, allocations: 0 / 0.5512 GB, free: 50.24 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.447e-05/3.076, allocations: 349.7 kB / 0.5516 GB, free: 49.93 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009706/3.077, allocations: 310.8 kB / 0.5518 GB, free: 49.93 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/3.078, allocations: 0.5275 MB / 0.5524 GB, free: 49.69 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/3.079, allocations: 368.4 kB / 0.5527 GB, free: 49.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/3.079, allocations: 6.344 kB / 0.5527 GB, free: 49.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004431/3.084, allocations: 1.603 MB / 0.5543 GB, free: 49.17 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/3.084, allocations: 6.656 kB / 0.5543 GB, free: 49.17 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002828/3.084, allocations: 119.8 kB / 0.5544 GB, free: 49.17 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00121/3.085, allocations: 260.1 kB / 0.5547 GB, free: 49.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002091/3.087, allocations: 246.8 kB / 0.5549 GB, free: 49.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/3.098, allocations: 12.7 MB / 0.5673 GB, free: 37.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003142/3.101, allocations: 123.2 kB / 0.5674 GB, free: 37.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002237/3.101, allocations: 57.5 kB / 0.5675 GB, free: 37.14 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003589/3.101, allocations: 142 kB / 0.5676 GB, free: 37.03 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005706/3.102, allocations: 374.1 kB / 0.568 GB, free: 36.84 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00944/3.111, allocations: 2.147 MB / 0.5701 GB, free: 36.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.75e-05/3.111, allocations: 11.88 kB / 0.5701 GB, free: 36.45 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/3.111, allocations: 3.969 kB / 0.5701 GB, free: 36.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/3.111, allocations: 3.844 kB / 0.5701 GB, free: 36.45 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003181/3.115, allocations: 1.442 MB / 0.5715 GB, free: 36.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002726/3.115, allocations: 115 kB / 0.5716 GB, free: 36.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001776/3.117, allocations: 188.6 kB / 0.5718 GB, free: 36.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001211/3.118, allocations: 261.5 kB / 0.572 GB, free: 36.16 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001756/3.118, allocations: 27.59 kB / 0.572 GB, free: 36.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009899/3.128, allocations: 12.69 MB / 0.5844 GB, free: 24.22 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/3.128, allocations: 0 / 0.5844 GB, free: 24.22 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005518/3.134, allocations: 2.046 MB / 0.5864 GB, free: 23.62 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007314/3.141, allocations: 2.943 MB / 0.5893 GB, free: 22.64 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00158/3.143, allocations: 0.4978 MB / 0.5898 GB, free: 22.36 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007782/3.143, allocations: 8 kB / 0.5898 GB, free: 22.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002582/3.146, allocations: 119.5 kB / 0.5899 GB, free: 22.35 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004675/3.147, allocations: 113.2 kB / 0.59 GB, free: 22.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001926/3.147, allocations: 56.27 kB / 0.5901 GB, free: 22.35 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.003744/3.15, allocations: 1.534 MB / 0.5916 GB, free: 22.17 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004313/3.155, allocations: 0.6867 MB / 0.5923 GB, free: 22.11 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002412/3.157, allocations: 0.9834 MB / 0.5932 GB, free: 21.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004534/3.162, allocations: 2.051 MB / 0.5952 GB, free: 20.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.74e-06/3.162, allocations: 1 kB / 0.5952 GB, free: 20.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002969/3.165, allocations: 1.65 MB / 0.5968 GB, free: 19.64 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002984/3.168, allocations: 458.6 kB / 0.5973 GB, free: 19.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/3.178, allocations: 3.512 MB / 0.6007 GB, free: 16.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001934/3.18, allocations: 1.88 MB / 0.6025 GB, free: 15 MB / 394.7 MB Notification: Performance of SimCode: time 1.293e-06/3.18, allocations: 0 / 0.6025 GB, free: 15 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Spice3.Examples.Nor_res.mat does not exist to compare? outputFormat=mat