Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Spice3_Examples_Nor",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(Modelica): time 1.63/1.63, allocations: 194.9 MB / 202.5 MB, free: 6.934 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2565/1.887, allocations: 46.83 MB / 249.3 MB, free: 5.363 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08943/1.976, allocations: 44.51 MB / 293.8 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3721/2.348, allocations: 97.12 MB / 391 MB, free: 3.082 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/2.349, allocations: 68.34 kB / 391 MB, free: 3.074 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.6097/2.959, allocations: 122.2 MB / 0.5012 GB, free: 79.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/2.959, allocations: 11.16 kB / 0.5012 GB, free: 79.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009394/2.96, allocations: 382.5 kB / 0.5016 GB, free: 79.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00653/2.966, allocations: 2.258 MB / 0.5038 GB, free: 78.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.103e-05/2.966, allocations: 16.81 kB / 0.5038 GB, free: 78.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002873/2.966, allocations: 36.22 kB / 0.5038 GB, free: 78.47 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001892/2.968, allocations: 0.6807 MB / 0.5045 GB, free: 78.47 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001966/2.97, allocations: 0.73 MB / 0.5052 GB, free: 78.36 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.063e-05/2.971, allocations: 3 kB / 0.5052 GB, free: 78.36 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/2.971, allocations: 3.812 kB / 0.5052 GB, free: 78.36 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.171e-05/2.971, allocations: 19.25 kB / 0.5052 GB, free: 78.36 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009573/2.98, allocations: 2.96 MB / 0.5081 GB, free: 77.92 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/2.982, allocations: 436 kB / 0.5085 GB, free: 77.9 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001745/2.983, allocations: 0.8193 MB / 0.5093 GB, free: 77.88 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05087/3.034, allocations: 35.84 MB / 0.5443 GB, free: 51.51 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/3.036, allocations: 486.9 kB / 0.5448 GB, free: 51.45 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 6.623e-06/3.036, allocations: 0 / 0.5448 GB, free: 51.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=99): time 0.01085/3.046, allocations: 3.364 MB / 0.5481 GB, free: 50.28 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.492e-05/3.047, allocations: 275.6 kB / 0.5483 GB, free: 49.97 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004184/3.051, allocations: 2.04 MB / 0.5503 GB, free: 49.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002517/3.051, allocations: 29.45 kB / 0.5504 GB, free: 49.67 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004694/3.052, allocations: 0.5028 MB / 0.5508 GB, free: 49.51 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003649/3.052, allocations: 328.3 kB / 0.5512 GB, free: 49.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.597e-05/3.052, allocations: 0 / 0.5512 GB, free: 49.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.45e-05/3.052, allocations: 345 kB / 0.5515 GB, free: 48.99 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009083/3.053, allocations: 313.3 kB / 0.5518 GB, free: 48.99 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009988/3.054, allocations: 0.5229 MB / 0.5523 GB, free: 48.75 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/3.055, allocations: 372.3 kB / 0.5527 GB, free: 48.74 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/3.055, allocations: 3.938 kB / 0.5527 GB, free: 48.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004171/3.059, allocations: 1.6 MB / 0.5542 GB, free: 48.24 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/3.059, allocations: 6.719 kB / 0.5542 GB, free: 48.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002667/3.06, allocations: 129.5 kB / 0.5544 GB, free: 48.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/3.061, allocations: 250.7 kB / 0.5546 GB, free: 48.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001869/3.063, allocations: 245.4 kB / 0.5548 GB, free: 48.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009296/3.072, allocations: 12.7 MB / 0.5672 GB, free: 36.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002931/3.075, allocations: 123.4 kB / 0.5673 GB, free: 36.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002851/3.075, allocations: 61.19 kB / 0.5674 GB, free: 36.21 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.0003647/3.076, allocations: 136.5 kB / 0.5675 GB, free: 36.1 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007385/3.076, allocations: 377.1 kB / 0.5679 GB, free: 35.91 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008609/3.085, allocations: 2.142 MB / 0.57 GB, free: 35.51 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.767e-05/3.085, allocations: 11.66 kB / 0.57 GB, free: 35.51 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/3.085, allocations: 3.938 kB / 0.57 GB, free: 35.51 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/3.085, allocations: 3.891 kB / 0.57 GB, free: 35.51 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003215/3.088, allocations: 1.443 MB / 0.5714 GB, free: 35.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002755/3.089, allocations: 115.6 kB / 0.5715 GB, free: 35.31 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001606/3.09, allocations: 186.8 kB / 0.5717 GB, free: 35.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001125/3.092, allocations: 258.5 kB / 0.572 GB, free: 35.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002596/3.092, allocations: 34.62 kB / 0.572 GB, free: 35.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009269/3.101, allocations: 12.69 MB / 0.5844 GB, free: 23.28 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.623e-06/3.101, allocations: 2.188 kB / 0.5844 GB, free: 23.28 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005121/3.106, allocations: 2.042 MB / 0.5864 GB, free: 22.68 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006769/3.113, allocations: 2.946 MB / 0.5893 GB, free: 21.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001708/3.115, allocations: 0.4926 MB / 0.5897 GB, free: 21.42 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009436/3.116, allocations: 12.27 kB / 0.5897 GB, free: 21.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00254/3.118, allocations: 119.6 kB / 0.5899 GB, free: 21.41 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004749/3.119, allocations: 118.8 kB / 0.59 GB, free: 21.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000189/3.119, allocations: 50.66 kB / 0.59 GB, free: 21.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.003922/3.123, allocations: 1.531 MB / 0.5915 GB, free: 21.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004244/3.127, allocations: 0.6877 MB / 0.5922 GB, free: 21.17 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.002401/3.13, allocations: 0.9906 MB / 0.5932 GB, free: 20.96 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004402/3.134, allocations: 2.048 MB / 0.5952 GB, free: 19.82 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/3.134, allocations: 1.156 kB / 0.5952 GB, free: 19.82 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002848/3.137, allocations: 1.656 MB / 0.5968 GB, free: 18.69 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003446/3.141, allocations: 454.3 kB / 0.5972 GB, free: 18.63 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/3.152, allocations: 3.522 MB / 0.6006 GB, free: 15.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002198/3.154, allocations: 1.873 MB / 0.6025 GB, free: 14.42 MB / 394.7 MB Notification: Performance of SimCode: time 2.034e-06/3.154, allocations: 0 / 0.6025 GB, free: 14.42 MB / 394.7 MB