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.691/1.691, allocations: 171.2 MB / 178.8 MB, free: 8.207 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.75e-05/2.75e-05, allocations: 4 kB / 219.6 MB, free: 11.37 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08418/0.08424, allocations: 38.76 MB / 258.3 MB, free: 4.539 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3654/0.4497, allocations: 81.53 MB / 339.9 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/0.45, allocations: 74.08 kB / 339.9 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1974/0.6474, allocations: 52.13 MB / 392.1 MB, free: 7.695 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.6475, allocations: 0 / 392.1 MB, free: 7.695 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.927e-05/0.6476, allocations: 24 kB / 392.1 MB, free: 7.672 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.003979/0.6516, allocations: 1.546 MB / 393.6 MB, free: 6.078 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.6517, allocations: 12.03 kB / 393.6 MB, free: 6.066 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004528/0.6521, allocations: 202 kB / 393.8 MB, free: 5.867 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002905/0.655, allocations: 1.131 MB / 395 MB, free: 4.688 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.822e-05/0.6551, allocations: 16 kB / 395 MB, free: 4.672 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.6553, allocations: 31.91 kB / 395 MB, free: 4.641 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001087/0.6564, allocations: 390.6 kB / 395.4 MB, free: 4.262 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.6575, allocations: 423.8 kB / 395.8 MB, free: 3.836 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.6575, allocations: 0 / 395.8 MB, free: 3.836 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.746e-05/0.6576, allocations: 15.92 kB / 395.8 MB, free: 3.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.731e-05/0.6576, allocations: 12 kB / 395.8 MB, free: 3.809 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005125/0.6628, allocations: 2.042 MB / 397.9 MB, free: 1.695 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.6639, allocations: 0.6409 MB / 398.5 MB, free: 1.008 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009075/0.6648, allocations: 470.2 kB / 399 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01443/0.6792, allocations: 7.737 MB / 406.7 MB, free: 7.598 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006107/0.6799, allocations: 242.6 kB / 407 MB, free: 7.352 MB / 346.7 MB Notification: Performance of pre-optimization done (n=55): time 3.437e-06/0.6799, allocations: 4 kB / 407 MB, free: 7.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=59): time 0.007434/0.6874, allocations: 2.256 MB / 409.2 MB, free: 5.027 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.6875, allocations: 59.84 kB / 409.3 MB, free: 4.957 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002067/0.6896, allocations: 0.9864 MB / 410.3 MB, free: 3.977 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001211/0.6897, allocations: 25.7 kB / 410.3 MB, free: 3.945 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008178/0.6906, allocations: 0.6276 MB / 410.9 MB, free: 3.312 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003411/0.6909, allocations: 205 kB / 411.1 MB, free: 3.109 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.23e-05/0.691, allocations: 0 / 411.1 MB, free: 3.109 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.6912, allocations: 342.8 kB / 411.4 MB, free: 2.766 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00043/0.6916, allocations: 153.6 kB / 411.6 MB, free: 2.617 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005649/0.6922, allocations: 319 kB / 411.9 MB, free: 2.242 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.6936, allocations: 369.7 kB / 412.3 MB, free: 1.879 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.145e-05/0.6937, allocations: 4 kB / 412.3 MB, free: 1.875 MB / 346.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002727/0.6964, allocations: 0.795 MB / 413.1 MB, free: 1.066 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/0.6965, allocations: 4 kB / 413.1 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001815/0.6967, allocations: 59.98 kB / 413.1 MB, free: 1.004 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006911/0.6974, allocations: 150.9 kB / 413.3 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008761/0.6983, allocations: 119.8 kB / 413.4 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2734/0.9717, allocations: 2.234 MB / 415.6 MB, free: 87.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.9728, allocations: 24.02 kB / 415.7 MB, free: 87.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.973, allocations: 33.03 kB / 415.7 MB, free: 87.99 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 {(5,64.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001888/0.9732, allocations: 118.2 kB / 415.8 MB, free: 87.89 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002699/0.9759, allocations: 0.8408 MB / 416.6 MB, free: 87.85 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003137/0.9762, allocations: 189.4 kB / 416.8 MB, free: 87.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003444/0.9797, allocations: 0.9614 MB / 417.8 MB, free: 87.69 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.9797, allocations: 5.5 kB / 417.8 MB, free: 87.69 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.9798, allocations: 5.797 kB / 417.8 MB, free: 87.69 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.9798, allocations: 2.344 kB / 417.8 MB, free: 87.69 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/0.9815, allocations: 0.7885 MB / 418.6 MB, free: 87.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001661/0.9817, allocations: 56.61 kB / 418.6 MB, free: 87.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00061/0.9823, allocations: 67.23 kB / 418.7 MB, free: 87.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006213/0.983, allocations: 143.1 kB / 418.9 MB, free: 87.51 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.51e-05/0.9831, allocations: 12.14 kB / 418.9 MB, free: 87.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003474/0.9866, allocations: 2.225 MB / 421.1 MB, free: 86.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/0.9866, allocations: 3.406 kB / 421.1 MB, free: 86.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003071/0.9897, allocations: 1.098 MB / 422.2 MB, free: 85.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005903/0.9903, allocations: 254.8 kB / 422.4 MB, free: 85.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002853/0.9906, allocations: 3.547 kB / 422.4 MB, free: 85.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007003/0.9914, allocations: 16.98 kB / 422.5 MB, free: 85.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.9916, allocations: 47.14 kB / 422.5 MB, free: 85.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-05/0.9917, allocations: 22.75 kB / 422.5 MB, free: 85.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001494/0.9932, allocations: 0.7447 MB / 423.3 MB, free: 85.69 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.9932, allocations: 0 / 423.3 MB, free: 85.69 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001733/0.9949, allocations: 401 kB / 423.7 MB, free: 85.69 MB / 346.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.004353/0.9993, allocations: 2.141 MB / 425.8 MB, free: 84.96 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002444/1.002, allocations: 0.7525 MB / 426.6 MB, free: 84.77 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/1.002, allocations: 5.094 kB / 426.6 MB, free: 84.77 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001786/1.004, allocations: 0.5449 MB / 427.1 MB, free: 84.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/1.005, allocations: 152.2 kB / 427.3 MB, free: 84.56 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007991/1.013, allocations: 2.114 MB / 429.4 MB, free: 83.94 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/1.014, allocations: 1.199 MB / 430.6 MB, free: 83.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001264/1.016, allocations: 0.5633 MB / 431.1 MB, free: 83.22 MB / 346.7 MB Notification: Performance of SimCode: time 1.392e-06/1.016, allocations: 0 / 431.1 MB, free: 83.22 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.207/4.223, allocations: 28.43 MB / 459.6 MB, free: 78.79 MB / 346.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