Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.897/1.897, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.224e-05/3.25e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09308/0.09314, allocations: 44.51 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4524/0.5456, allocations: 85.99 MB / 385.9 MB, free: 12.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/0.5459, allocations: 71.59 kB / 386 MB, free: 12.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1632/0.7091, allocations: 54.43 MB / 440.4 MB, free: 11.24 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.7091, allocations: 0 / 440.4 MB, free: 11.24 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.034e-05/0.7092, allocations: 20 kB / 440.4 MB, free: 11.22 MB / 330.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.003898/0.7131, allocations: 1.553 MB / 442 MB, free: 9.715 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.7132, allocations: 12.03 kB / 442 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001797/0.7134, allocations: 89.52 kB / 442.1 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004291/0.7138, allocations: 193.8 kB / 442.3 MB, free: 9.445 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002883/0.7167, allocations: 1.139 MB / 443.4 MB, free: 8.453 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.574e-05/0.7168, allocations: 31.62 kB / 443.4 MB, free: 8.434 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.7169, allocations: 46.64 kB / 443.5 MB, free: 8.402 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.7182, allocations: 488.4 kB / 444 MB, free: 8.078 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.7182, allocations: 0 / 444 MB, free: 8.078 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.089e-05/0.7183, allocations: 27.56 kB / 444 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.341e-05/0.7184, allocations: 18.98 kB / 444 MB, free: 8.051 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.7195, allocations: 416.8 kB / 444.4 MB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005446/0.725, allocations: 2.124 MB / 446.5 MB, free: 6.18 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.7262, allocations: 0.6515 MB / 447.2 MB, free: 5.699 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009973/0.7272, allocations: 490.2 kB / 447.7 MB, free: 5.223 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01476/0.742, allocations: 7.757 MB / 455.4 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007048/0.7427, allocations: 262.6 kB / 455.7 MB, free: 11.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=55): time 5.57e-06/0.7427, allocations: 0 / 455.7 MB, free: 11.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=59): time 0.004537/0.7473, allocations: 1.679 MB / 457.4 MB, free: 10.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.7474, allocations: 55.84 kB / 457.4 MB, free: 10.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002197/0.7496, allocations: 1.076 MB / 458.5 MB, free: 9.109 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001121/0.7497, allocations: 37.7 kB / 458.5 MB, free: 9.066 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007442/0.7505, allocations: 0.6237 MB / 459.2 MB, free: 8.441 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002779/0.7508, allocations: 209 kB / 459.4 MB, free: 8.234 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.807e-05/0.7508, allocations: 12 kB / 459.4 MB, free: 8.223 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.751, allocations: 334.8 kB / 459.7 MB, free: 7.887 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004837/0.7515, allocations: 165.6 kB / 459.9 MB, free: 7.727 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006023/0.7521, allocations: 332.4 kB / 460.2 MB, free: 7.336 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005883/0.7527, allocations: 222.9 kB / 460.4 MB, free: 7.121 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.7527, allocations: 4 kB / 460.4 MB, free: 7.117 MB / 346.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001912/0.7547, allocations: 0.6979 MB / 461.1 MB, free: 6.406 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.874e-05/0.7547, allocations: 13.55 kB / 461.1 MB, free: 6.395 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001376/0.7549, allocations: 56 kB / 461.2 MB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006585/0.7555, allocations: 156.7 kB / 461.3 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008806/0.7564, allocations: 119.8 kB / 461.4 MB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004033/0.7605, allocations: 2.287 MB / 463.7 MB, free: 3.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.7616, allocations: 28.03 kB / 463.8 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.995e-05/0.7617, allocations: 35.98 kB / 463.8 MB, free: 3.582 MB / 346.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.0002192/0.7619, allocations: 144.7 kB / 463.9 MB, free: 3.434 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002732/0.7622, allocations: 185.8 kB / 464.1 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002898/0.7651, allocations: 0.8475 MB / 465 MB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.7652, allocations: 8 kB / 465 MB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.7652, allocations: 4 kB / 465 MB, free: 2.375 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.7652, allocations: 3.984 kB / 465 MB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00174/0.7669, allocations: 0.8708 MB / 465.8 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001275/0.7671, allocations: 51.98 kB / 465.9 MB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006139/0.7677, allocations: 63.95 kB / 466 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006452/0.7684, allocations: 152.2 kB / 466.1 MB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.123e-05/0.7685, allocations: 19.98 kB / 466.1 MB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00423/0.7727, allocations: 2.264 MB / 468.4 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.7728, allocations: 7.953 kB / 468.4 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002697/0.7755, allocations: 0.9671 MB / 469.4 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007295/0.7762, allocations: 258.9 kB / 469.6 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002303/0.7765, allocations: 15.94 kB / 469.6 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007131/0.7772, allocations: 23.97 kB / 469.7 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.7774, allocations: 44.38 kB / 469.7 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.021e-05/0.7775, allocations: 24 kB / 469.7 MB, free: 13.4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001845/0.7794, allocations: 0.8306 MB / 470.6 MB, free: 12.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.42e-07/0.7794, allocations: 0 / 470.6 MB, free: 12.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001872/0.7813, allocations: 431.5 kB / 471 MB, free: 12.16 MB / 362.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.004294/0.7856, allocations: 1.951 MB / 472.9 MB, free: 10.17 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002221/0.7879, allocations: 0.7817 MB / 473.7 MB, free: 9.363 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.788, allocations: 0 / 473.7 MB, free: 9.363 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001604/0.7896, allocations: 0.5743 MB / 474.3 MB, free: 8.766 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001128/0.7907, allocations: 162.3 kB / 474.4 MB, free: 8.605 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006624/0.7974, allocations: 2.143 MB / 476.6 MB, free: 6.402 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001063/0.7985, allocations: 1.2 MB / 477.8 MB, free: 5.172 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/0.7996, allocations: 0.5618 MB / 478.3 MB, free: 4.609 MB / 362.7 MB Notification: Performance of SimCode: time 1.563e-06/0.7996, allocations: 0 / 478.3 MB, free: 4.609 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.157/3.956, allocations: 28.44 MB / 0.4949 GB, free: 8.145 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat