Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.742/1.742, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.521e-05/3.524e-05, allocations: 8 kB / 225.1 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2651, allocations: 38.76 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1501/0.4153, allocations: 81.86 MB / 345.7 MB, free: 7.895 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002893/0.4156, allocations: 71.97 kB / 345.8 MB, free: 7.824 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4316/0.8473, allocations: 55.01 MB / 400.8 MB, free: 72.03 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.8473, allocations: 1.594 kB / 400.8 MB, free: 72.03 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.653e-05/0.8474, allocations: 24 kB / 400.8 MB, free: 72.01 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.003628/0.8511, allocations: 1.536 MB / 402.3 MB, free: 70.42 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.8511, allocations: 8.031 kB / 402.3 MB, free: 70.41 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001844/0.8513, allocations: 90.52 kB / 402.4 MB, free: 70.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003529/0.8517, allocations: 206 kB / 402.6 MB, free: 70.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002763/0.8545, allocations: 1.135 MB / 403.8 MB, free: 68.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.105e-05/0.8546, allocations: 29 kB / 403.8 MB, free: 68.91 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.8547, allocations: 55.89 kB / 403.8 MB, free: 68.85 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.8558, allocations: 484.9 kB / 404.3 MB, free: 68.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.8559, allocations: 0 / 404.3 MB, free: 68.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.048e-05/0.856, allocations: 20 kB / 404.3 MB, free: 68.36 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.368e-05/0.856, allocations: 19.98 kB / 404.4 MB, free: 68.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009757/0.857, allocations: 424.2 kB / 404.8 MB, free: 67.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004689/0.8617, allocations: 2.13 MB / 406.9 MB, free: 65.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009634/0.8627, allocations: 0.6508 MB / 407.5 MB, free: 65 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008294/0.8636, allocations: 498.1 kB / 408 MB, free: 64.51 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01218/0.8758, allocations: 7.753 MB / 415.8 MB, free: 55.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005882/0.8764, allocations: 270.5 kB / 416 MB, free: 55.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=55): time 4.999e-06/0.8764, allocations: 0 / 416 MB, free: 55.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=59): time 0.00393/0.8804, allocations: 1.667 MB / 417.7 MB, free: 53.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.8805, allocations: 67.8 kB / 417.8 MB, free: 53.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001875/0.8824, allocations: 1.068 MB / 418.9 MB, free: 52.4 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.8825, allocations: 37.7 kB / 418.9 MB, free: 52.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005904/0.8831, allocations: 0.6353 MB / 419.5 MB, free: 51.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002254/0.8834, allocations: 201.1 kB / 419.7 MB, free: 51.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-05/0.8834, allocations: 12 kB / 419.7 MB, free: 51.51 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.823e-05/0.8835, allocations: 334.8 kB / 420.1 MB, free: 51.17 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004234/0.884, allocations: 165.6 kB / 420.2 MB, free: 51.01 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005029/0.8845, allocations: 335.6 kB / 420.5 MB, free: 50.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005415/0.885, allocations: 215 kB / 420.8 MB, free: 50.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.8851, allocations: 4 kB / 420.8 MB, free: 50.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00168/0.8867, allocations: 0.6974 MB / 421.5 MB, free: 49.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/0.8868, allocations: 8 kB / 421.5 MB, free: 49.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001227/0.8869, allocations: 52.62 kB / 421.5 MB, free: 49.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006234/0.8876, allocations: 165.4 kB / 421.7 MB, free: 49.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008282/0.8884, allocations: 119.8 kB / 421.8 MB, free: 49.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003494/0.8919, allocations: 2.293 MB / 424.1 MB, free: 46.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/0.8931, allocations: 28.03 kB / 424.1 MB, free: 46.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.8932, allocations: 35.98 kB / 424.2 MB, free: 46.87 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.v.counter,v.counter,$whenCondition1,$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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001957/0.8934, allocations: 148.8 kB / 424.3 MB, free: 46.71 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002741/0.8937, allocations: 181.9 kB / 424.5 MB, free: 46.54 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002635/0.8964, allocations: 0.8513 MB / 425.3 MB, free: 45.67 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.8964, allocations: 4 kB / 425.3 MB, free: 45.66 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.8964, allocations: 8 kB / 425.3 MB, free: 45.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.948e-06/0.8964, allocations: 7.938 kB / 425.3 MB, free: 45.65 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.8981, allocations: 0.8554 MB / 426.2 MB, free: 44.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001218/0.8982, allocations: 51.98 kB / 426.3 MB, free: 44.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005795/0.8988, allocations: 71.89 kB / 426.3 MB, free: 44.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006131/0.8995, allocations: 150.4 kB / 426.5 MB, free: 44.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-05/0.8996, allocations: 19.98 kB / 426.5 MB, free: 44.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003409/0.903, allocations: 2.262 MB / 428.8 MB, free: 42.06 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.903, allocations: 4 kB / 428.8 MB, free: 42.06 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002352/0.9054, allocations: 0.9787 MB / 429.7 MB, free: 41.06 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006495/0.9061, allocations: 251 kB / 430 MB, free: 40.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002588/0.9064, allocations: 15.98 kB / 430 MB, free: 40.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007048/0.9071, allocations: 19.98 kB / 430 MB, free: 40.76 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.9073, allocations: 48.33 kB / 430.1 MB, free: 40.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.408e-05/0.9074, allocations: 20 kB / 430.1 MB, free: 40.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001489/0.9089, allocations: 0.8345 MB / 430.9 MB, free: 39.87 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.9089, allocations: 0 / 430.9 MB, free: 39.87 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001555/0.9105, allocations: 427.6 kB / 431.3 MB, free: 39.45 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vcs,T2.vbe,T2.vcs) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,50.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003429/0.9139, allocations: 1.978 MB / 433.3 MB, free: 37.44 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001829/0.9158, allocations: 0.7666 MB / 434.1 MB, free: 36.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.9159, allocations: 0 / 434.1 MB, free: 36.65 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001295/0.9172, allocations: 0.5742 MB / 434.7 MB, free: 36.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.9182, allocations: 160.8 kB / 434.8 MB, free: 35.89 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005425/0.9237, allocations: 2.142 MB / 437 MB, free: 33.69 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006312/0.9243, allocations: 1.204 MB / 438.2 MB, free: 32.46 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000861/0.9252, allocations: 0.5579 MB / 438.7 MB, free: 31.9 MB / 314.7 MB Notification: Performance of SimCode: time 1.393e-06/0.9253, allocations: 4 kB / 438.7 MB, free: 31.89 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.075/4.001, allocations: 28.43 MB / 467.1 MB, free: 3.422 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat