Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.032/2.032, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.844e-05/2.855e-05, allocations: 8 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3333, allocations: 44.5 MB / 294.2 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1747/0.5081, allocations: 97.19 MB / 391.4 MB, free: 0.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002856/0.5084, allocations: 67.97 kB / 391.5 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6975/1.206, allocations: 118.7 MB / 0.4982 GB, free: 38.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.064e-06/1.206, allocations: 4 kB / 0.4982 GB, free: 38.8 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.062e-05/1.206, allocations: 44 kB / 0.4983 GB, free: 38.75 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.006046/1.212, allocations: 2.652 MB / 0.5009 GB, free: 36.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/1.212, allocations: 8.031 kB / 0.5009 GB, free: 36.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007393/1.213, allocations: 387.4 kB / 0.5012 GB, free: 35.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005318/1.218, allocations: 2.244 MB / 0.5034 GB, free: 33.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.397e-05/1.218, allocations: 23.98 kB / 0.5034 GB, free: 33.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001808/1.219, allocations: 39.84 kB / 0.5035 GB, free: 33.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001466/1.22, allocations: 0.6821 MB / 0.5042 GB, free: 32.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/1.221, allocations: 0.7284 MB / 0.5049 GB, free: 31.83 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/1.222, allocations: 4 kB / 0.5049 GB, free: 31.83 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/1.222, allocations: 4 kB / 0.5049 GB, free: 31.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.654e-05/1.222, allocations: 23.94 kB / 0.5049 GB, free: 31.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00744/1.229, allocations: 2.925 MB / 0.5077 GB, free: 28.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/1.23, allocations: 0.6148 MB / 0.5083 GB, free: 28.19 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001357/1.232, allocations: 0.8688 MB / 0.5092 GB, free: 27.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0892/1.321, allocations: 35.95 MB / 0.5443 GB, free: 2.219 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001629/1.323, allocations: 0.4925 MB / 0.5448 GB, free: 1.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 5.069e-06/1.323, allocations: 0 / 0.5448 GB, free: 1.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=99): time 0.0187/1.341, allocations: 3.365 MB / 0.5481 GB, free: 14.22 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001878/1.342, allocations: 281.7 kB / 0.5483 GB, free: 13.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004682/1.346, allocations: 2.037 MB / 0.5503 GB, free: 11.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002733/1.347, allocations: 33.7 kB / 0.5504 GB, free: 11.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001537/1.348, allocations: 1.051 MB / 0.5514 GB, free: 10.74 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005917/1.349, allocations: 323.3 kB / 0.5517 GB, free: 10.42 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.486e-05/1.349, allocations: 0 / 0.5517 GB, free: 10.42 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002518/1.349, allocations: 367 kB / 0.5521 GB, free: 10.05 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/1.351, allocations: 310.6 kB / 0.5523 GB, free: 9.754 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/1.352, allocations: 0.5196 MB / 0.5529 GB, free: 9.145 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/1.353, allocations: 373.7 kB / 0.5532 GB, free: 8.781 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/1.353, allocations: 0 / 0.5532 GB, free: 8.781 MB / 394.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003565/1.357, allocations: 1.312 MB / 0.5545 GB, free: 7.395 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.139e-05/1.357, allocations: 8 kB / 0.5545 GB, free: 7.387 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004032/1.357, allocations: 120 kB / 0.5546 GB, free: 7.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/1.358, allocations: 252.6 kB / 0.5549 GB, free: 6.992 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001807/1.36, allocations: 231.7 kB / 0.5551 GB, free: 6.766 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3035/1.664, allocations: 12.77 MB / 0.5675 GB, free: 81.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002897/1.667, allocations: 109.3 kB / 0.5676 GB, free: 81.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003262/1.667, allocations: 59.53 kB / 0.5677 GB, free: 81.57 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.0003643/1.667, allocations: 136.1 kB / 0.5678 GB, free: 81.46 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005296/1.673, allocations: 1.52 MB / 0.5693 GB, free: 81.13 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009845/1.674, allocations: 374.5 kB / 0.5697 GB, free: 81 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0103/1.684, allocations: 1.904 MB / 0.5715 GB, free: 80.61 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-05/1.684, allocations: 8.156 kB / 0.5715 GB, free: 80.61 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.088e-05/1.684, allocations: 4.594 kB / 0.5715 GB, free: 80.61 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-05/1.684, allocations: 7.172 kB / 0.5716 GB, free: 80.61 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005062/1.689, allocations: 1.445 MB / 0.573 GB, free: 80.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0005107/1.69, allocations: 117.9 kB / 0.5731 GB, free: 80.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001956/1.692, allocations: 165.9 kB / 0.5732 GB, free: 80.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001571/1.693, allocations: 254.3 kB / 0.5735 GB, free: 80.33 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003078/1.694, allocations: 36.5 kB / 0.5735 GB, free: 80.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01352/1.707, allocations: 12.78 MB / 0.586 GB, free: 68.38 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/1.707, allocations: 3.953 kB / 0.586 GB, free: 68.38 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007311/1.715, allocations: 2.052 MB / 0.588 GB, free: 67.79 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002207/1.717, allocations: 0.4937 MB / 0.5885 GB, free: 67.51 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001286/1.718, allocations: 6 kB / 0.5885 GB, free: 67.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00323/1.722, allocations: 108.8 kB / 0.5886 GB, free: 67.51 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008119/1.722, allocations: 142.7 kB / 0.5887 GB, free: 67.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002534/1.723, allocations: 52 kB / 0.5888 GB, free: 67.51 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004882/1.728, allocations: 1.534 MB / 0.5903 GB, free: 67.33 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.162e-06/1.728, allocations: 0 / 0.5903 GB, free: 67.33 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00433/1.732, allocations: 0.6783 MB / 0.5909 GB, free: 67.33 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.009934/1.742, allocations: 3.511 MB / 0.5944 GB, free: 66.22 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005318/1.747, allocations: 2.105 MB / 0.5964 GB, free: 65.05 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.806e-06/1.747, allocations: 0 / 0.5964 GB, free: 65.05 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003485/1.751, allocations: 1.714 MB / 0.5981 GB, free: 63.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004251/1.755, allocations: 469.4 kB / 0.5985 GB, free: 63.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0162/1.771, allocations: 4.038 MB / 0.6025 GB, free: 62.75 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002049/1.774, allocations: 1.721 MB / 0.6042 GB, free: 62.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002929/1.776, allocations: 1.151 MB / 0.6053 GB, free: 62.02 MB / 394.7 MB Notification: Performance of SimCode: time 1.483e-06/1.777, allocations: 2.531 kB / 0.6053 GB, free: 62.02 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.939/6.715, allocations: 154.4 MB / 0.7561 GB, free: 106.6 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Nor_res.mat does not exist to compare? outputFormat=mat