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"}) Notification: Performance of loadModel(Modelica): time 2.235/2.235, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.213e-05/3.224e-05, allocations: 4 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3092, allocations: 44.49 MB / 294.2 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1887/0.498, allocations: 97.19 MB / 391.4 MB, free: 0.625 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.4983, allocations: 75.95 kB / 391.5 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6459/1.144, allocations: 118.7 MB / 0.4982 GB, free: 38.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.114e-06/1.144, allocations: 4 kB / 0.4982 GB, free: 38.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.057e-05/1.144, allocations: 40 kB / 0.4983 GB, free: 38.57 MB / 362.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.006226/1.151, allocations: 2.649 MB / 0.5009 GB, free: 35.87 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/1.151, allocations: 8.031 kB / 0.5009 GB, free: 35.86 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007316/1.151, allocations: 387.4 kB / 0.5013 GB, free: 35.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005364/1.157, allocations: 2.256 MB / 0.5035 GB, free: 33.15 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.198e-05/1.157, allocations: 19.98 kB / 0.5035 GB, free: 33.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002586/1.157, allocations: 35.84 kB / 0.5035 GB, free: 33.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002104/1.159, allocations: 0.6821 MB / 0.5042 GB, free: 32.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001992/1.161, allocations: 0.7323 MB / 0.5049 GB, free: 31.65 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/1.161, allocations: 4 kB / 0.5049 GB, free: 31.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001384/1.162, allocations: 4 kB / 0.5049 GB, free: 31.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.708e-05/1.162, allocations: 27.94 kB / 0.5049 GB, free: 31.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009675/1.171, allocations: 2.921 MB / 0.5078 GB, free: 28.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001956/1.173, allocations: 0.6225 MB / 0.5084 GB, free: 28 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002086/1.175, allocations: 0.861 MB / 0.5092 GB, free: 27.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06588/1.241, allocations: 35.95 MB / 0.5443 GB, free: 2.035 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/1.242, allocations: 0.4964 MB / 0.5448 GB, free: 1.523 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 3.977e-06/1.243, allocations: 0 / 0.5448 GB, free: 1.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=99): time 0.01075/1.253, allocations: 3.36 MB / 0.5481 GB, free: 14.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001923/1.254, allocations: 281.7 kB / 0.5484 GB, free: 13.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00474/1.258, allocations: 2.041 MB / 0.5504 GB, free: 11.65 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002603/1.259, allocations: 25.7 kB / 0.5504 GB, free: 11.62 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001928/1.261, allocations: 1.303 MB / 0.5517 GB, free: 10.31 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005898/1.261, allocations: 323.2 kB / 0.552 GB, free: 9.988 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.596e-05/1.261, allocations: 0 / 0.552 GB, free: 9.988 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/1.261, allocations: 354.2 kB / 0.5523 GB, free: 9.637 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008594/1.262, allocations: 310.6 kB / 0.5526 GB, free: 9.336 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/1.263, allocations: 0.5236 MB / 0.5531 GB, free: 8.723 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/1.265, allocations: 377.4 kB / 0.5535 GB, free: 8.359 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/1.265, allocations: 0 / 0.5535 GB, free: 8.359 MB / 394.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004597/1.269, allocations: 1.594 MB / 0.555 GB, free: 6.688 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/1.269, allocations: 11.94 kB / 0.555 GB, free: 6.676 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003626/1.27, allocations: 120 kB / 0.5552 GB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/1.271, allocations: 260.8 kB / 0.5554 GB, free: 6.273 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001784/1.273, allocations: 227.7 kB / 0.5556 GB, free: 6.051 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2823/1.555, allocations: 12.78 MB / 0.5681 GB, free: 81.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00255/1.557, allocations: 112.7 kB / 0.5682 GB, free: 81.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002184/1.558, allocations: 59.48 kB / 0.5683 GB, free: 81.39 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.0003353/1.558, allocations: 134.1 kB / 0.5684 GB, free: 81.28 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003635/1.562, allocations: 1.52 MB / 0.5699 GB, free: 80.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005807/1.562, allocations: 378.9 kB / 0.5702 GB, free: 80.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00614/1.568, allocations: 1.9 MB / 0.5721 GB, free: 80.41 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/1.569, allocations: 9.219 kB / 0.5721 GB, free: 80.41 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/1.569, allocations: 7.656 kB / 0.5721 GB, free: 80.41 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/1.569, allocations: 6.141 kB / 0.5721 GB, free: 80.41 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002966/1.572, allocations: 1.444 MB / 0.5735 GB, free: 80.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003135/1.572, allocations: 117.7 kB / 0.5736 GB, free: 80.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/1.573, allocations: 169 kB / 0.5738 GB, free: 80.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/1.574, allocations: 256.5 kB / 0.574 GB, free: 80.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001667/1.575, allocations: 31.88 kB / 0.5741 GB, free: 80.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008801/1.583, allocations: 12.77 MB / 0.5865 GB, free: 68.19 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/1.583, allocations: 0 / 0.5865 GB, free: 68.19 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004472/1.588, allocations: 2.054 MB / 0.5886 GB, free: 67.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/1.589, allocations: 0.4982 MB / 0.589 GB, free: 67.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007076/1.59, allocations: 15.14 kB / 0.5891 GB, free: 67.31 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001917/1.592, allocations: 106.6 kB / 0.5892 GB, free: 67.31 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005193/1.593, allocations: 139.1 kB / 0.5893 GB, free: 67.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001452/1.593, allocations: 50.66 kB / 0.5893 GB, free: 67.31 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002739/1.595, allocations: 1.532 MB / 0.5908 GB, free: 67.13 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.595, allocations: 0 / 0.5908 GB, free: 67.13 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002618/1.598, allocations: 0.6754 MB / 0.5915 GB, free: 67.13 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.006413/1.605, allocations: 3.5 MB / 0.5949 GB, free: 66.03 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003254/1.608, allocations: 2.111 MB / 0.597 GB, free: 64.86 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/1.608, allocations: 0 / 0.597 GB, free: 64.86 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002218/1.61, allocations: 1.72 MB / 0.5987 GB, free: 63.71 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002762/1.613, allocations: 469.8 kB / 0.5991 GB, free: 63.67 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01024/1.623, allocations: 3.979 MB / 0.603 GB, free: 62.59 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0012/1.624, allocations: 1.726 MB / 0.6047 GB, free: 61.86 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002008/1.626, allocations: 340.3 kB / 0.605 GB, free: 61.83 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001829/1.628, allocations: 1.148 MB / 0.6061 GB, free: 61.82 MB / 394.7 MB Notification: Performance of SimCode: time 1.322e-06/1.628, allocations: 2.094 kB / 0.6061 GB, free: 61.82 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1796/1.808, allocations: 56.89 MB / 0.6617 GB, free: 28.98 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002561/1.808, allocations: 132.4 kB / 0.6618 GB, free: 28.78 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.424/8.233, allocations: 2.406 kB / 0.6618 GB, free: 28.78 MB / 394.7 MB