Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.797/1.797, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.135e-05/2.15e-05, allocations: 0 / 219.6 MB, free: 6.949 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3419, allocations: 38.78 MB / 258.4 MB, free: 12.17 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.16/0.5019, allocations: 93.36 MB / 351.7 MB, free: 372 kB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.5023, allocations: 71.97 kB / 351.8 MB, free: 300 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6491/1.151, allocations: 120.8 MB / 472.6 MB, free: 2.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.064e-06/1.151, allocations: 0 / 472.6 MB, free: 2.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.588e-05/1.151, allocations: 40 kB / 472.6 MB, free: 2.23 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.00638/1.158, allocations: 2.645 MB / 475.2 MB, free: 15.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/1.158, allocations: 8.031 kB / 475.3 MB, free: 15.52 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008606/1.159, allocations: 383.4 kB / 475.6 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006642/1.165, allocations: 2.253 MB / 477.9 MB, free: 12.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.456e-05/1.166, allocations: 16 kB / 477.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002113/1.166, allocations: 35.91 kB / 477.9 MB, free: 12.76 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001778/1.168, allocations: 0.686 MB / 478.6 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/1.169, allocations: 0.7325 MB / 479.4 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/1.169, allocations: 3.938 kB / 479.4 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/1.17, allocations: 4 kB / 479.4 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.782e-05/1.17, allocations: 19.98 kB / 479.4 MB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00945/1.179, allocations: 2.94 MB / 482.3 MB, free: 8.281 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001804/1.181, allocations: 0.6226 MB / 482.9 MB, free: 7.652 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002013/1.183, allocations: 0.8647 MB / 483.8 MB, free: 6.789 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2989/1.482, allocations: 35.95 MB / 0.5076 GB, free: 53.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001005/1.483, allocations: 0.4891 MB / 0.5081 GB, free: 53.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 4.919e-06/1.483, allocations: 0 / 0.5081 GB, free: 53.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.009802/1.493, allocations: 3.372 MB / 0.5113 GB, free: 52.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.789e-05/1.493, allocations: 275.8 kB / 0.5116 GB, free: 52.47 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004245/1.497, allocations: 2.04 MB / 0.5136 GB, free: 52.21 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002754/1.498, allocations: 35.66 kB / 0.5136 GB, free: 52.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001622/1.499, allocations: 1.299 MB / 0.5149 GB, free: 52.04 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005211/1.5, allocations: 320.8 kB / 0.5152 GB, free: 51.87 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.737e-05/1.5, allocations: 0 / 0.5152 GB, free: 51.87 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/1.5, allocations: 345.9 kB / 0.5155 GB, free: 51.56 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008025/1.501, allocations: 312.9 kB / 0.5158 GB, free: 51.56 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009936/1.502, allocations: 0.5269 MB / 0.5164 GB, free: 51.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001543/1.503, allocations: 367 kB / 0.5167 GB, free: 51.31 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/1.503, allocations: 0 / 0.5167 GB, free: 51.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004607/1.508, allocations: 1.601 MB / 0.5183 GB, free: 50.81 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/1.508, allocations: 15.97 kB / 0.5183 GB, free: 50.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003224/1.508, allocations: 119.5 kB / 0.5184 GB, free: 50.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/1.51, allocations: 252 kB / 0.5186 GB, free: 50.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001724/1.511, allocations: 233 kB / 0.5189 GB, free: 50.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009356/1.521, allocations: 12.77 MB / 0.5313 GB, free: 38.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00276/1.523, allocations: 109.1 kB / 0.5314 GB, free: 38.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003502/1.524, allocations: 62.61 kB / 0.5315 GB, free: 38.78 MB / 346.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.0003812/1.524, allocations: 141.9 kB / 0.5316 GB, free: 38.67 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003838/1.528, allocations: 1.522 MB / 0.5331 GB, free: 38.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009527/1.529, allocations: 370.2 kB / 0.5335 GB, free: 37.96 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00647/1.536, allocations: 1.909 MB / 0.5353 GB, free: 37.56 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.918e-05/1.536, allocations: 9.062 kB / 0.5353 GB, free: 37.56 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/1.536, allocations: 3.031 kB / 0.5354 GB, free: 37.56 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-05/1.536, allocations: 3.703 kB / 0.5354 GB, free: 37.56 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003342/1.539, allocations: 1.446 MB / 0.5368 GB, free: 37.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003353/1.539, allocations: 118.2 kB / 0.5369 GB, free: 37.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/1.541, allocations: 166.4 kB / 0.537 GB, free: 37.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00106/1.542, allocations: 254.7 kB / 0.5373 GB, free: 37.29 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002815/1.542, allocations: 39.72 kB / 0.5373 GB, free: 37.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009011/1.551, allocations: 12.77 MB / 0.5498 GB, free: 25.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.213e-06/1.551, allocations: 3.953 kB / 0.5498 GB, free: 25.32 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004788/1.556, allocations: 2.058 MB / 0.5518 GB, free: 24.73 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001545/1.558, allocations: 0.4914 MB / 0.5523 GB, free: 24.45 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008477/1.559, allocations: 6.219 kB / 0.5523 GB, free: 24.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002193/1.561, allocations: 108.8 kB / 0.5524 GB, free: 24.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005964/1.562, allocations: 142.3 kB / 0.5525 GB, free: 24.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001594/1.562, allocations: 53.86 kB / 0.5526 GB, free: 24.45 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003199/1.565, allocations: 1.53 MB / 0.5541 GB, free: 24.27 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.72e-07/1.565, allocations: 0 / 0.5541 GB, free: 24.27 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002838/1.568, allocations: 0.6796 MB / 0.5547 GB, free: 24.27 MB / 346.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.007012/1.575, allocations: 3.499 MB / 0.5582 GB, free: 23.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003762/1.579, allocations: 2.107 MB / 0.5602 GB, free: 22 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.936e-06/1.579, allocations: 3.969 kB / 0.5602 GB, free: 22 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002517/1.581, allocations: 1.717 MB / 0.5619 GB, free: 20.85 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0029/1.584, allocations: 469 kB / 0.5623 GB, free: 20.81 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/1.596, allocations: 3.98 MB / 0.5662 GB, free: 19.74 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00137/1.597, allocations: 1.722 MB / 0.5679 GB, free: 19.01 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002211/1.599, allocations: 340.7 kB / 0.5682 GB, free: 18.98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002007/1.601, allocations: 1.151 MB / 0.5694 GB, free: 18.98 MB / 346.7 MB Notification: Performance of SimCode: time 1.333e-06/1.601, allocations: 0 / 0.5694 GB, free: 18.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1633/1.765, allocations: 56.89 MB / 0.6249 GB, free: 9.812 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000222/1.765, allocations: 135.9 kB / 0.625 GB, free: 9.609 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.304/8.069, allocations: 0 / 0.625 GB, free: 9.609 MB / 378.7 MB