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.871/1.871, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.239e-05/4.25e-05, allocations: 8 kB / 225.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2747, allocations: 38.77 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1473/0.4221, allocations: 81.86 MB / 345.7 MB, free: 7.773 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002969/0.4225, allocations: 71.95 kB / 345.8 MB, free: 7.703 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4074/0.8299, allocations: 55.01 MB / 400.8 MB, free: 71.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.83, allocations: 1.594 kB / 400.8 MB, free: 71.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.667e-05/0.8301, allocations: 27.98 kB / 400.8 MB, free: 71.81 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.003653/0.8337, allocations: 1.535 MB / 402.4 MB, free: 70.22 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.8338, allocations: 12.03 kB / 402.4 MB, free: 70.21 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001752/0.834, allocations: 94.52 kB / 402.5 MB, free: 70.11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003873/0.8344, allocations: 202 kB / 402.7 MB, free: 69.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002601/0.837, allocations: 1.132 MB / 403.8 MB, free: 68.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.321e-05/0.8371, allocations: 36.98 kB / 403.8 MB, free: 68.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.8373, allocations: 51.89 kB / 403.9 MB, free: 68.65 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.8384, allocations: 482.3 kB / 404.3 MB, free: 68.17 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.8384, allocations: 0 / 404.3 MB, free: 68.17 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-05/0.8385, allocations: 20 kB / 404.4 MB, free: 68.15 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.375e-05/0.8385, allocations: 15.98 kB / 404.4 MB, free: 68.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009475/0.8395, allocations: 418.2 kB / 404.8 MB, free: 67.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004792/0.8443, allocations: 2.134 MB / 406.9 MB, free: 65.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.8454, allocations: 0.638 MB / 407.6 MB, free: 64.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008347/0.8463, allocations: 498.1 kB / 408 MB, free: 64.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01241/0.8587, allocations: 7.756 MB / 415.8 MB, free: 55.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005626/0.8593, allocations: 270.5 kB / 416.1 MB, free: 55.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=55): time 3.977e-06/0.8593, allocations: 0 / 416.1 MB, free: 55.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=59): time 0.003974/0.8633, allocations: 1.656 MB / 417.7 MB, free: 53.37 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.8634, allocations: 63.73 kB / 417.8 MB, free: 53.29 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001911/0.8653, allocations: 1.08 MB / 418.9 MB, free: 52.22 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001059/0.8655, allocations: 37.7 kB / 418.9 MB, free: 52.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005858/0.8661, allocations: 0.6353 MB / 419.5 MB, free: 51.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002261/0.8663, allocations: 201.1 kB / 419.7 MB, free: 51.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.496e-05/0.8664, allocations: 8 kB / 419.7 MB, free: 51.33 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.102e-05/0.8665, allocations: 338.8 kB / 420.1 MB, free: 50.99 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004621/0.8669, allocations: 165.6 kB / 420.2 MB, free: 50.83 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005104/0.8675, allocations: 322.1 kB / 420.5 MB, free: 50.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005016/0.868, allocations: 223 kB / 420.8 MB, free: 50.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.852e-06/0.868, allocations: 4 kB / 420.8 MB, free: 50.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001716/0.8697, allocations: 0.678 MB / 421.4 MB, free: 49.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/0.8698, allocations: 11.98 kB / 421.5 MB, free: 49.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001205/0.8699, allocations: 52.62 kB / 421.5 MB, free: 49.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006321/0.8706, allocations: 165.4 kB / 421.7 MB, free: 49.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008341/0.8714, allocations: 119.8 kB / 421.8 MB, free: 49.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003501/0.875, allocations: 2.29 MB / 424.1 MB, free: 46.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.8761, allocations: 28.03 kB / 424.1 MB, free: 46.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-05/0.8762, allocations: 35.98 kB / 424.1 MB, free: 46.71 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.0002111/0.8765, allocations: 148.8 kB / 424.3 MB, free: 46.55 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002587/0.8767, allocations: 185.8 kB / 424.5 MB, free: 46.37 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002633/0.8794, allocations: 0.8435 MB / 425.3 MB, free: 45.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.8794, allocations: 4 kB / 425.3 MB, free: 45.51 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.8795, allocations: 11.94 kB / 425.3 MB, free: 45.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.8795, allocations: 7.938 kB / 425.3 MB, free: 45.49 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001692/0.8812, allocations: 0.8554 MB / 426.2 MB, free: 44.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001172/0.8813, allocations: 51.98 kB / 426.2 MB, free: 44.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005893/0.8819, allocations: 63.95 kB / 426.3 MB, free: 44.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005949/0.8825, allocations: 154.4 kB / 426.5 MB, free: 44.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.089e-05/0.8826, allocations: 15.98 kB / 426.5 MB, free: 44.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003445/0.8861, allocations: 2.277 MB / 428.7 MB, free: 41.89 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.8861, allocations: 4 kB / 428.8 MB, free: 41.89 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/0.8884, allocations: 0.9787 MB / 429.7 MB, free: 40.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005928/0.8891, allocations: 250.9 kB / 430 MB, free: 40.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002453/0.8893, allocations: 11.98 kB / 430 MB, free: 40.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007319/0.8901, allocations: 23.98 kB / 430 MB, free: 40.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/0.8903, allocations: 52.33 kB / 430.1 MB, free: 40.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.681e-05/0.8904, allocations: 20 kB / 430.1 MB, free: 40.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001495/0.8919, allocations: 0.8345 MB / 430.9 MB, free: 39.7 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.82e-07/0.8919, allocations: 0 / 430.9 MB, free: 39.7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00177/0.8937, allocations: 419.6 kB / 431.3 MB, free: 39.29 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.00348/0.8972, allocations: 1.972 MB / 433.3 MB, free: 37.28 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.8991, allocations: 0.7523 MB / 434 MB, free: 36.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.8992, allocations: 0 / 434 MB, free: 36.5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.9005, allocations: 0.5608 MB / 434.6 MB, free: 35.92 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.9016, allocations: 154.3 kB / 434.8 MB, free: 35.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005579/0.9072, allocations: 2.142 MB / 436.9 MB, free: 33.57 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006907/0.9079, allocations: 1.208 MB / 438.1 MB, free: 32.33 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008512/0.9088, allocations: 0.5579 MB / 438.7 MB, free: 31.77 MB / 314.7 MB Notification: Performance of SimCode: time 1.462e-06/0.9088, allocations: 0 / 438.7 MB, free: 31.77 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.447/4.356, allocations: 28.36 MB / 467 MB, free: 3.379 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