Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.034/2.034, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.521e-05/2.567e-05, allocations: 2.75 kB / 249.8 MB, free: 5.238 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09675/0.09681, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.465/0.5619, allocations: 97.18 MB / 391.5 MB, free: 3.102 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.5622, allocations: 73.45 kB / 391.5 MB, free: 3.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7724/1.335, allocations: 118.7 MB / 0.4983 GB, free: 76.41 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.315e-06/1.335, allocations: 0 / 0.4983 GB, free: 76.41 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.956e-05/1.335, allocations: 42.62 kB / 0.4983 GB, free: 76.41 MB / 394.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.008227/1.343, allocations: 2.65 MB / 0.5009 GB, free: 75.26 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.848e-05/1.343, allocations: 10 kB / 0.5009 GB, free: 75.26 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001281/1.344, allocations: 383.1 kB / 0.5013 GB, free: 75.07 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007083/1.352, allocations: 2.25 MB / 0.5035 GB, free: 74.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/1.352, allocations: 18.59 kB / 0.5035 GB, free: 74.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002519/1.352, allocations: 36.48 kB / 0.5036 GB, free: 74.45 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001899/1.354, allocations: 0.6842 MB / 0.5042 GB, free: 74.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/1.355, allocations: 0.7367 MB / 0.5049 GB, free: 74.33 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.347e-05/1.356, allocations: 6.594 kB / 0.505 GB, free: 74.33 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/1.356, allocations: 3.969 kB / 0.505 GB, free: 74.33 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.061e-05/1.356, allocations: 18.8 kB / 0.505 GB, free: 74.33 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009068/1.365, allocations: 2.925 MB / 0.5078 GB, free: 73.89 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/1.366, allocations: 0.6276 MB / 0.5084 GB, free: 73.87 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001537/1.368, allocations: 0.8609 MB / 0.5093 GB, free: 73.85 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06406/1.432, allocations: 35.96 MB / 0.5444 GB, free: 47.46 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002081/1.434, allocations: 0.4991 MB / 0.5449 GB, free: 47.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 8.897e-06/1.434, allocations: 0 / 0.5449 GB, free: 47.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=99): time 0.01311/1.447, allocations: 3.358 MB / 0.5482 GB, free: 46.21 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/1.448, allocations: 270.5 kB / 0.5484 GB, free: 45.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004205/1.452, allocations: 2.047 MB / 0.5504 GB, free: 45.63 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002849/1.452, allocations: 33.36 kB / 0.5505 GB, free: 45.6 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001624/1.454, allocations: 1.303 MB / 0.5517 GB, free: 45.44 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005151/1.454, allocations: 324.2 kB / 0.552 GB, free: 45.23 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/1.454, allocations: 0 / 0.552 GB, free: 45.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.836e-05/1.455, allocations: 348.6 kB / 0.5524 GB, free: 44.92 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008392/1.455, allocations: 307.5 kB / 0.5527 GB, free: 44.92 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009802/1.456, allocations: 0.5246 MB / 0.5532 GB, free: 44.68 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/1.457, allocations: 371.8 kB / 0.5535 GB, free: 44.67 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/1.457, allocations: 3.25 kB / 0.5535 GB, free: 44.67 MB / 394.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004511/1.462, allocations: 1.595 MB / 0.5551 GB, free: 44.16 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.73e-05/1.462, allocations: 13.98 kB / 0.5551 GB, free: 44.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003637/1.462, allocations: 118 kB / 0.5552 GB, free: 44.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/1.464, allocations: 259.2 kB / 0.5555 GB, free: 44.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001947/1.466, allocations: 229.4 kB / 0.5557 GB, free: 44.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01003/1.476, allocations: 12.79 MB / 0.5682 GB, free: 32.12 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00319/1.479, allocations: 102.2 kB / 0.5683 GB, free: 32.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004009/1.479, allocations: 65.19 kB / 0.5683 GB, free: 32.12 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.0004047/1.48, allocations: 135 kB / 0.5685 GB, free: 32.01 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004197/1.484, allocations: 1.522 MB / 0.5699 GB, free: 31.47 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000963/1.485, allocations: 375.3 kB / 0.5703 GB, free: 31.29 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007091/1.492, allocations: 1.904 MB / 0.5722 GB, free: 30.88 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.751e-05/1.492, allocations: 7.531 kB / 0.5722 GB, free: 30.88 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/1.492, allocations: 5.312 kB / 0.5722 GB, free: 30.88 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/1.492, allocations: 3.469 kB / 0.5722 GB, free: 30.88 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003473/1.496, allocations: 1.449 MB / 0.5736 GB, free: 30.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003267/1.496, allocations: 110.5 kB / 0.5737 GB, free: 30.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/1.498, allocations: 172.6 kB / 0.5739 GB, free: 30.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/1.499, allocations: 246.8 kB / 0.5741 GB, free: 30.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001752/1.499, allocations: 35.97 kB / 0.5741 GB, free: 30.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009573/1.509, allocations: 12.78 MB / 0.5866 GB, free: 18.64 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/1.509, allocations: 1.969 kB / 0.5866 GB, free: 18.64 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005161/1.514, allocations: 2.056 MB / 0.5886 GB, free: 18.04 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001583/1.515, allocations: 0.4921 MB / 0.5891 GB, free: 17.75 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007676/1.516, allocations: 10.44 kB / 0.5891 GB, free: 17.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002104/1.518, allocations: 109.5 kB / 0.5892 GB, free: 17.75 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000564/1.519, allocations: 142.8 kB / 0.5894 GB, free: 17.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001632/1.519, allocations: 51.08 kB / 0.5894 GB, free: 17.75 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002924/1.522, allocations: 1.529 MB / 0.5909 GB, free: 17.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.522, allocations: 3.969 kB / 0.5909 GB, free: 17.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003007/1.525, allocations: 0.6742 MB / 0.5916 GB, free: 17.51 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.006956/1.532, allocations: 3.504 MB / 0.595 GB, free: 16.33 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004278/1.536, allocations: 2.111 MB / 0.597 GB, free: 31.17 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/1.536, allocations: 3.969 kB / 0.597 GB, free: 31.17 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002735/1.539, allocations: 1.714 MB / 0.5987 GB, free: 30 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003089/1.542, allocations: 468.4 kB / 0.5992 GB, free: 29.97 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/1.554, allocations: 3.988 MB / 0.6031 GB, free: 28.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001479/1.555, allocations: 1.721 MB / 0.6047 GB, free: 27.79 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00243/1.558, allocations: 344.5 kB / 0.6051 GB, free: 27.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001988/1.56, allocations: 1.149 MB / 0.6062 GB, free: 27.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.643e-06/1.56, allocations: 0 / 0.6062 GB, free: 27.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4827/2.042, allocations: 56.91 MB / 0.6618 GB, free: 84.07 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002317/2.043, allocations: 129.4 kB / 0.6619 GB, free: 83.88 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.075/9.117, allocations: 5.688 kB / 0.6619 GB, free: 83.88 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Spice3.Examples.Nor_res.mat does not exist to compare? outputFormat=mat