Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.972/1.972, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.585e-05/3.591e-05, allocations: 4 kB / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.107, allocations: 50.42 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4675/0.5746, allocations: 104.5 MB / 447.1 MB, free: 5.895 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/0.5749, allocations: 76.22 kB / 447.2 MB, free: 5.855 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8252/1.4, allocations: 139.3 MB / 0.5728 GB, free: 102 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.164e-06/1.4, allocations: 0 / 0.5728 GB, free: 102 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.282e-05/1.4, allocations: 46.22 kB / 0.5728 GB, free: 102 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.006709/1.407, allocations: 2.63 MB / 0.5754 GB, free: 100.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/1.407, allocations: 15.03 kB / 0.5754 GB, free: 100.4 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003046/1.407, allocations: 95.8 kB / 0.5755 GB, free: 100.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007018/1.408, allocations: 382.3 kB / 0.5758 GB, free: 100.1 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005552/1.414, allocations: 2.238 MB / 0.578 GB, free: 99.11 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.098e-05/1.414, allocations: 35.11 kB / 0.5781 GB, free: 99.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002067/1.414, allocations: 52.81 kB / 0.5781 GB, free: 99.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001736/1.416, allocations: 0.7881 MB / 0.5789 GB, free: 98.71 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/1.416, allocations: 4 kB / 0.5789 GB, free: 98.71 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/1.416, allocations: 15.97 kB / 0.5789 GB, free: 98.7 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.92e-05/1.416, allocations: 22.64 kB / 0.5789 GB, free: 98.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/1.418, allocations: 0.6967 MB / 0.5796 GB, free: 98.49 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007934/1.425, allocations: 3.038 MB / 0.5826 GB, free: 97.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/1.427, allocations: 0.6388 MB / 0.5832 GB, free: 96.72 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001543/1.429, allocations: 0.8806 MB / 0.584 GB, free: 96.39 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04537/1.474, allocations: 35.87 MB / 0.6191 GB, free: 64.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001107/1.475, allocations: 0.5222 MB / 0.6196 GB, free: 64.17 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 4.629e-06/1.475, allocations: 0 / 0.6196 GB, free: 64.17 MB / 442.7 MB Notification: Performance of matching and sorting (n=99): time 0.01067/1.486, allocations: 3.469 MB / 0.623 GB, free: 60.57 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/1.486, allocations: 277.8 kB / 0.6232 GB, free: 60.24 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004206/1.49, allocations: 2.205 MB / 0.6254 GB, free: 58.02 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002528/1.491, allocations: 45.69 kB / 0.6254 GB, free: 57.97 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/1.492, allocations: 1.059 MB / 0.6265 GB, free: 56.91 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004154/1.492, allocations: 339.5 kB / 0.6268 GB, free: 56.58 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/1.492, allocations: 16 kB / 0.6268 GB, free: 56.56 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.896e-05/1.492, allocations: 358.7 kB / 0.6272 GB, free: 56.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008795/1.493, allocations: 326.3 kB / 0.6275 GB, free: 55.89 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009806/1.494, allocations: 0.5385 MB / 0.628 GB, free: 55.25 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009214/1.495, allocations: 392.7 kB / 0.6284 GB, free: 54.87 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/1.495, allocations: 0 / 0.6284 GB, free: 54.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00329/1.498, allocations: 1.376 MB / 0.6297 GB, free: 53.42 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/1.499, allocations: 8 kB / 0.6297 GB, free: 53.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002274/1.499, allocations: 116 kB / 0.6298 GB, free: 53.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/1.5, allocations: 260.9 kB / 0.6301 GB, free: 53.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001731/1.502, allocations: 239.6 kB / 0.6303 GB, free: 52.78 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008947/1.511, allocations: 13.21 MB / 0.6432 GB, free: 38.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002778/1.513, allocations: 132 kB / 0.6433 GB, free: 38.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002331/1.514, allocations: 63.98 kB / 0.6434 GB, free: 38.07 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.0003431/1.514, allocations: 168.7 kB / 0.6436 GB, free: 37.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000538/1.515, allocations: 367.6 kB / 0.6439 GB, free: 37.54 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006239/1.521, allocations: 1.954 MB / 0.6458 GB, free: 35.52 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.632e-05/1.521, allocations: 8 kB / 0.6458 GB, free: 35.51 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/1.521, allocations: 4 kB / 0.6458 GB, free: 35.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/1.521, allocations: 3.984 kB / 0.6458 GB, free: 35.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00316/1.524, allocations: 1.539 MB / 0.6473 GB, free: 33.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002203/1.524, allocations: 112 kB / 0.6474 GB, free: 33.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001406/1.526, allocations: 171.8 kB / 0.6476 GB, free: 33.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00103/1.527, allocations: 263.3 kB / 0.6479 GB, free: 33.37 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001792/1.527, allocations: 43.98 kB / 0.6479 GB, free: 33.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008894/1.536, allocations: 13.22 MB / 0.6608 GB, free: 18.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/1.536, allocations: 0 / 0.6608 GB, free: 18.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00486/1.541, allocations: 2.111 MB / 0.6629 GB, free: 16.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001351/1.542, allocations: 0.4926 MB / 0.6633 GB, free: 16.08 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005474/1.543, allocations: 20 kB / 0.6634 GB, free: 16.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001971/1.545, allocations: 115.9 kB / 0.6635 GB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004813/1.545, allocations: 140.6 kB / 0.6636 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001443/1.545, allocations: 55.97 kB / 0.6637 GB, free: 15.76 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003152/1.549, allocations: 1.697 MB / 0.6653 GB, free: 14.05 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.549, allocations: 0 / 0.6653 GB, free: 14.05 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002807/1.551, allocations: 0.7144 MB / 0.666 GB, free: 13.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.00648/1.558, allocations: 3.47 MB / 0.6694 GB, free: 9.934 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003525/1.562, allocations: 2.137 MB / 0.6715 GB, free: 7.676 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/1.562, allocations: 0 / 0.6715 GB, free: 7.676 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002326/1.564, allocations: 1.734 MB / 0.6732 GB, free: 5.82 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004282/1.568, allocations: 0.5771 MB / 0.6737 GB, free: 5.258 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/1.579, allocations: 4.095 MB / 0.6777 GB, free: 1.121 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001439/1.58, allocations: 1.715 MB / 0.6794 GB, free: 15.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002189/1.582, allocations: 1.148 MB / 0.6805 GB, free: 14.23 MB / 458.7 MB Notification: Performance of SimCode: time 1.513e-06/1.582, allocations: 0 / 0.6805 GB, free: 14.23 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.738/6.32, allocations: 153.3 MB / 0.8302 GB, free: 16.27 MB / 458.7 MB