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 1.958/1.958, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.395e-05/3.414e-05, allocations: 0 / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09546/0.09554, allocations: 44.5 MB / 299.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4389/0.5345, allocations: 97.87 MB / 397.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.5348, allocations: 73.86 kB / 397.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4067/0.9415, allocations: 123.9 MB / 0.5096 GB, free: 9.738 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.9416, allocations: 0 / 0.5096 GB, free: 9.738 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.581e-05/0.9416, allocations: 44 kB / 0.5096 GB, free: 9.695 MB / 410.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.007926/0.9496, allocations: 2.648 MB / 0.5122 GB, free: 6.992 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.9497, allocations: 8.031 kB / 0.5122 GB, free: 6.984 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003221/0.95, allocations: 98.5 kB / 0.5123 GB, free: 6.879 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008563/0.9509, allocations: 379.4 kB / 0.5127 GB, free: 6.504 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00654/0.9574, allocations: 2.255 MB / 0.5149 GB, free: 4.176 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.326e-05/0.9575, allocations: 37 kB / 0.5149 GB, free: 4.141 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002184/0.9578, allocations: 55.89 kB / 0.515 GB, free: 4.086 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001981/0.9597, allocations: 0.7852 MB / 0.5157 GB, free: 3.266 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.9598, allocations: 3.953 kB / 0.5157 GB, free: 3.262 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/0.9599, allocations: 20 kB / 0.5157 GB, free: 3.242 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.408e-05/0.96, allocations: 19.98 kB / 0.5158 GB, free: 3.223 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001809/0.9618, allocations: 0.6975 MB / 0.5164 GB, free: 2.523 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2784/1.24, allocations: 3.038 MB / 0.5194 GB, free: 80.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00201/1.242, allocations: 0.6436 MB / 0.52 GB, free: 80.22 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002087/1.244, allocations: 0.8831 MB / 0.5209 GB, free: 80.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0495/1.294, allocations: 35.98 MB / 0.556 GB, free: 53.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001131/1.295, allocations: 0.5241 MB / 0.5566 GB, free: 53.85 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 3.677e-06/1.295, allocations: 0 / 0.5566 GB, free: 53.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=99): time 0.009854/1.305, allocations: 3.473 MB / 0.5599 GB, free: 52.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/1.305, allocations: 280.6 kB / 0.5602 GB, free: 52.42 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004117/1.309, allocations: 2.222 MB / 0.5624 GB, free: 52.14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002587/1.31, allocations: 46.73 kB / 0.5624 GB, free: 52.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/1.311, allocations: 1.056 MB / 0.5635 GB, free: 51.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004254/1.311, allocations: 333.5 kB / 0.5638 GB, free: 51.74 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.898e-05/1.311, allocations: 16.56 kB / 0.5638 GB, free: 51.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.023e-05/1.311, allocations: 354.3 kB / 0.5641 GB, free: 51.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008635/1.312, allocations: 326.9 kB / 0.5644 GB, free: 51.42 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009731/1.313, allocations: 0.5455 MB / 0.565 GB, free: 51.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009205/1.314, allocations: 377.5 kB / 0.5653 GB, free: 51.17 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.533e-06/1.314, allocations: 7.609 kB / 0.5653 GB, free: 51.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003315/1.317, allocations: 1.365 MB / 0.5667 GB, free: 50.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/1.318, allocations: 12.12 kB / 0.5667 GB, free: 50.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002421/1.318, allocations: 123.8 kB / 0.5668 GB, free: 50.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001494/1.319, allocations: 256.7 kB / 0.567 GB, free: 50.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001828/1.321, allocations: 233.1 kB / 0.5673 GB, free: 50.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009144/1.33, allocations: 13.22 MB / 0.5802 GB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002736/1.333, allocations: 123.8 kB / 0.5803 GB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002058/1.333, allocations: 64.14 kB / 0.5804 GB, free: 38.21 MB / 410.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.0003469/1.334, allocations: 168 kB / 0.5805 GB, free: 38.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005163/1.334, allocations: 377.5 kB / 0.5809 GB, free: 37.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006209/1.34, allocations: 1.967 MB / 0.5828 GB, free: 37.53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.717e-05/1.34, allocations: 11.22 kB / 0.5828 GB, free: 37.53 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/1.341, allocations: 7.922 kB / 0.5828 GB, free: 37.53 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/1.341, allocations: 7.078 kB / 0.5828 GB, free: 37.53 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003271/1.344, allocations: 1.541 MB / 0.5843 GB, free: 37.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002381/1.344, allocations: 121.6 kB / 0.5844 GB, free: 37.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/1.346, allocations: 167.2 kB / 0.5846 GB, free: 37.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/1.347, allocations: 256.3 kB / 0.5849 GB, free: 37.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001538/1.347, allocations: 48.62 kB / 0.5849 GB, free: 37.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009927/1.357, allocations: 13.21 MB / 0.5978 GB, free: 40.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/1.357, allocations: 3.891 kB / 0.5978 GB, free: 40.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004953/1.362, allocations: 2.108 MB / 0.5999 GB, free: 40.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001415/1.363, allocations: 0.4896 MB / 0.6003 GB, free: 39.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005726/1.364, allocations: 20.91 kB / 0.6004 GB, free: 39.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001992/1.366, allocations: 120.3 kB / 0.6005 GB, free: 39.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004911/1.366, allocations: 143.9 kB / 0.6006 GB, free: 39.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/1.366, allocations: 49 kB / 0.6007 GB, free: 39.82 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003269/1.37, allocations: 1.713 MB / 0.6023 GB, free: 39.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.51e-07/1.37, allocations: 0 / 0.6023 GB, free: 39.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002885/1.373, allocations: 0.7172 MB / 0.603 GB, free: 39.61 MB / 426.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.006995/1.38, allocations: 3.48 MB / 0.6064 GB, free: 38.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003837/1.384, allocations: 2.145 MB / 0.6085 GB, free: 37.34 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/1.384, allocations: 0 / 0.6085 GB, free: 37.34 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002578/1.386, allocations: 1.733 MB / 0.6102 GB, free: 36.19 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002779/1.389, allocations: 481.4 kB / 0.6107 GB, free: 36.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01197/1.401, allocations: 4.116 MB / 0.6147 GB, free: 35.04 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002624/1.404, allocations: 1.728 MB / 0.6164 GB, free: 34.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003235/1.407, allocations: 1.15 MB / 0.6175 GB, free: 34.3 MB / 426.7 MB Notification: Performance of SimCode: time 2.134e-06/1.407, allocations: 0 / 0.6175 GB, free: 34.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.677/6.084, allocations: 154.3 MB / 0.7682 GB, free: 47.26 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