Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.251/2.251, allocations: 225.8 MB / 239.3 MB, free: 1.258 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.382e-05/3.386e-05, allocations: 4 kB / 292.7 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1146, allocations: 50.41 MB / 343.1 MB, free: 8.973 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4669/0.5815, allocations: 104.2 MB / 447.4 MB, free: 1.703 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.5818, allocations: 71.16 kB / 447.4 MB, free: 1.668 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8067/1.389, allocations: 139.3 MB / 0.573 GB, free: 91.08 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.004e-06/1.389, allocations: 0 / 0.573 GB, free: 91.08 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001035/1.389, allocations: 42.47 kB / 0.573 GB, free: 91.08 MB / 442.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.008994/1.398, allocations: 2.627 MB / 0.5756 GB, free: 89.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.376e-05/1.398, allocations: 7.812 kB / 0.5756 GB, free: 89.8 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003942/1.398, allocations: 103.3 kB / 0.5757 GB, free: 89.77 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001126/1.399, allocations: 378 kB / 0.576 GB, free: 89.57 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008493/1.408, allocations: 2.242 MB / 0.5782 GB, free: 88.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.216e-05/1.408, allocations: 35.03 kB / 0.5783 GB, free: 88.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004518/1.409, allocations: 57.38 kB / 0.5783 GB, free: 88.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003071/1.412, allocations: 0.7836 MB / 0.5791 GB, free: 88.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.45e-05/1.412, allocations: 3.969 kB / 0.5791 GB, free: 88.84 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000185/1.412, allocations: 17.78 kB / 0.5791 GB, free: 88.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.813e-05/1.412, allocations: 22.62 kB / 0.5791 GB, free: 88.84 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002799/1.415, allocations: 0.7012 MB / 0.5798 GB, free: 88.83 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0144/1.429, allocations: 3.032 MB / 0.5828 GB, free: 88.34 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002613/1.432, allocations: 0.6384 MB / 0.5834 GB, free: 88.32 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002771/1.435, allocations: 0.886 MB / 0.5843 GB, free: 88.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07437/1.509, allocations: 35.87 MB / 0.6193 GB, free: 61.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001748/1.511, allocations: 0.5207 MB / 0.6198 GB, free: 61.82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 7.534e-06/1.511, allocations: 0 / 0.6198 GB, free: 61.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.01373/1.525, allocations: 3.469 MB / 0.6232 GB, free: 60.64 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/1.525, allocations: 275.4 kB / 0.6235 GB, free: 60.33 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00397/1.529, allocations: 2.211 MB / 0.6256 GB, free: 60.05 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002586/1.529, allocations: 45.11 kB / 0.6257 GB, free: 60.02 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001378/1.531, allocations: 1.303 MB / 0.6269 GB, free: 59.85 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004972/1.531, allocations: 339.5 kB / 0.6273 GB, free: 59.64 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/1.531, allocations: 17.09 kB / 0.6273 GB, free: 59.64 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.845e-05/1.531, allocations: 344.5 kB / 0.6276 GB, free: 59.34 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008617/1.532, allocations: 328.1 kB / 0.6279 GB, free: 59.33 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009865/1.533, allocations: 0.5396 MB / 0.6284 GB, free: 59.09 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009234/1.534, allocations: 391.3 kB / 0.6288 GB, free: 59.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/1.534, allocations: 3.938 kB / 0.6288 GB, free: 59.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004027/1.538, allocations: 1.665 MB / 0.6304 GB, free: 58.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/1.538, allocations: 11.75 kB / 0.6305 GB, free: 58.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002328/1.539, allocations: 120.5 kB / 0.6306 GB, free: 58.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001058/1.54, allocations: 257.2 kB / 0.6308 GB, free: 58.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001734/1.541, allocations: 232 kB / 0.631 GB, free: 58.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009314/1.551, allocations: 13.21 MB / 0.6439 GB, free: 44.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00301/1.554, allocations: 128.7 kB / 0.6441 GB, free: 44.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003422/1.554, allocations: 60.62 kB / 0.6441 GB, free: 44.88 MB / 442.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.0003891/1.555, allocations: 180.1 kB / 0.6443 GB, free: 44.73 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008114/1.556, allocations: 375.4 kB / 0.6446 GB, free: 44.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006432/1.562, allocations: 1.954 MB / 0.6466 GB, free: 43.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.765e-05/1.562, allocations: 13.72 kB / 0.6466 GB, free: 43.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/1.562, allocations: 3.812 kB / 0.6466 GB, free: 43.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/1.562, allocations: 3.234 kB / 0.6466 GB, free: 43.71 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003341/1.565, allocations: 1.541 MB / 0.6481 GB, free: 43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002472/1.566, allocations: 108.6 kB / 0.6482 GB, free: 43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001476/1.567, allocations: 170.5 kB / 0.6483 GB, free: 43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/1.568, allocations: 258.2 kB / 0.6486 GB, free: 42.88 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002546/1.569, allocations: 47.17 kB / 0.6486 GB, free: 42.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009378/1.578, allocations: 13.21 MB / 0.6615 GB, free: 29.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.578, allocations: 0 / 0.6615 GB, free: 29.62 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008263/1.586, allocations: 2.106 MB / 0.6636 GB, free: 28.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0027/1.589, allocations: 0.4962 MB / 0.6641 GB, free: 28.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001382/1.591, allocations: 19.84 kB / 0.6641 GB, free: 28.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004153/1.595, allocations: 116 kB / 0.6642 GB, free: 28.13 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009694/1.596, allocations: 148.6 kB / 0.6643 GB, free: 28.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002643/1.596, allocations: 46.62 kB / 0.6644 GB, free: 28.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006458/1.603, allocations: 1.707 MB / 0.6661 GB, free: 27.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.866e-06/1.603, allocations: 0 / 0.6661 GB, free: 27.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004479/1.607, allocations: 0.7141 MB / 0.6668 GB, free: 27.33 MB / 442.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.01084/1.618, allocations: 3.469 MB / 0.6701 GB, free: 25.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005794/1.624, allocations: 2.137 MB / 0.6722 GB, free: 24.05 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/1.624, allocations: 3.656 kB / 0.6722 GB, free: 24.05 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003942/1.628, allocations: 1.73 MB / 0.6739 GB, free: 22.69 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007081/1.635, allocations: 0.5637 MB / 0.6745 GB, free: 22.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01734/1.652, allocations: 4.046 MB / 0.6784 GB, free: 18.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002273/1.655, allocations: 1.713 MB / 0.6801 GB, free: 17.48 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003586/1.658, allocations: 345.6 kB / 0.6804 GB, free: 17.24 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002837/1.661, allocations: 1.142 MB / 0.6815 GB, free: 16.19 MB / 442.7 MB Notification: Performance of SimCode: time 2.555e-06/1.661, allocations: 0 / 0.6815 GB, free: 16.19 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4725/2.134, allocations: 62.04 MB / 0.7421 GB, free: 97.99 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002554/2.134, allocations: 159.2 kB / 0.7423 GB, free: 97.77 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.231/8.366, allocations: 3.938 kB / 0.7423 GB, free: 97.77 MB / 458.7 MB