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.861/1.861, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.629e-05/3.631e-05, allocations: 4 kB / 255.5 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09239/0.09246, allocations: 44.5 MB / 300 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.413/0.5055, allocations: 85.99 MB / 385.9 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.5058, allocations: 71.27 kB / 386 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1578/0.6636, allocations: 54.42 MB / 440.4 MB, free: 10.86 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.6637, allocations: 0 / 440.4 MB, free: 10.86 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.073e-05/0.6638, allocations: 24 kB / 440.5 MB, free: 10.84 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.003781/0.6676, allocations: 1.542 MB / 442 MB, free: 9.34 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.6676, allocations: 19.97 kB / 442 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001444/0.6678, allocations: 91.02 kB / 442.1 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003413/0.6682, allocations: 189.8 kB / 442.3 MB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0027/0.6709, allocations: 1.138 MB / 443.4 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.869e-05/0.6709, allocations: 38.38 kB / 443.5 MB, free: 8.047 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.6711, allocations: 43.19 kB / 443.5 MB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.6723, allocations: 488.1 kB / 444 MB, free: 7.695 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.6724, allocations: 0 / 444 MB, free: 7.695 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.752e-05/0.6725, allocations: 21.25 kB / 444 MB, free: 7.688 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.173e-05/0.6725, allocations: 18.92 kB / 444 MB, free: 7.672 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.6736, allocations: 403.8 kB / 444.4 MB, free: 7.418 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005079/0.6787, allocations: 2.131 MB / 446.6 MB, free: 5.809 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.68, allocations: 0.646 MB / 447.2 MB, free: 5.344 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009929/0.681, allocations: 492.1 kB / 447.7 MB, free: 5.082 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01487/0.6959, allocations: 7.762 MB / 455.4 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006803/0.6966, allocations: 258.6 kB / 455.7 MB, free: 11.89 MB / 346.7 MB Notification: Performance of pre-optimization done (n=55): time 3.577e-06/0.6966, allocations: 0 / 455.7 MB, free: 11.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=59): time 0.004627/0.7013, allocations: 1.679 MB / 457.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.7014, allocations: 55.84 kB / 457.4 MB, free: 10.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002331/0.7037, allocations: 1.076 MB / 458.5 MB, free: 9.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001116/0.7039, allocations: 33.7 kB / 458.5 MB, free: 8.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007611/0.7046, allocations: 0.6276 MB / 459.2 MB, free: 8.352 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000262/0.7049, allocations: 201 kB / 459.4 MB, free: 8.152 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.079e-05/0.705, allocations: 16 kB / 459.4 MB, free: 8.137 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.7052, allocations: 342.8 kB / 459.7 MB, free: 7.793 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004926/0.7057, allocations: 165.6 kB / 459.9 MB, free: 7.633 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006484/0.7063, allocations: 330.1 kB / 460.2 MB, free: 7.242 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005922/0.7069, allocations: 219 kB / 460.4 MB, free: 7.031 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.7069, allocations: 0 / 460.4 MB, free: 7.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001937/0.7089, allocations: 0.6863 MB / 461.1 MB, free: 6.332 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.7089, allocations: 8 kB / 461.1 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001383/0.7091, allocations: 60.02 kB / 461.2 MB, free: 6.266 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006756/0.7098, allocations: 156.7 kB / 461.3 MB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008876/0.7107, allocations: 111.9 kB / 461.4 MB, free: 6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004159/0.7149, allocations: 2.29 MB / 463.7 MB, free: 3.578 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.716, allocations: 36.03 kB / 463.8 MB, free: 3.543 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-05/0.7161, allocations: 32 kB / 463.8 MB, free: 3.512 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.0002303/0.7164, allocations: 145.3 kB / 463.9 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000301/0.7167, allocations: 177.9 kB / 464.1 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002949/0.7196, allocations: 0.8435 MB / 464.9 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.386e-05/0.7197, allocations: 12 kB / 465 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.7197, allocations: 4 kB / 465 MB, free: 2.312 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.7197, allocations: 3.984 kB / 465 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00187/0.7216, allocations: 0.8709 MB / 465.8 MB, free: 1.391 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001281/0.7217, allocations: 55.98 kB / 465.9 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006261/0.7224, allocations: 59.95 kB / 465.9 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000644/0.723, allocations: 155.8 kB / 466.1 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.55e-05/0.7231, allocations: 19.98 kB / 466.1 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004079/0.7272, allocations: 2.267 MB / 468.4 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.7273, allocations: 3.953 kB / 468.4 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002634/0.7299, allocations: 0.9711 MB / 469.4 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006181/0.7306, allocations: 250.9 kB / 469.6 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002267/0.7308, allocations: 12 kB / 469.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000698/0.7315, allocations: 27.97 kB / 469.6 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.7317, allocations: 44.38 kB / 469.7 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.501e-05/0.7318, allocations: 28 kB / 469.7 MB, free: 13.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001816/0.7336, allocations: 0.8228 MB / 470.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7336, allocations: 0 / 470.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001785/0.7354, allocations: 431.5 kB / 471 MB, free: 12.09 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.003981/0.7394, allocations: 1.959 MB / 472.9 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002064/0.7415, allocations: 0.7638 MB / 473.7 MB, free: 9.309 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.7416, allocations: 0 / 473.7 MB, free: 9.309 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.743, allocations: 0.5608 MB / 474.2 MB, free: 8.727 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.7442, allocations: 160.5 kB / 474.4 MB, free: 8.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005967/0.7501, allocations: 2.146 MB / 476.5 MB, free: 6.371 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009851/0.7512, allocations: 1.2 MB / 477.7 MB, free: 5.137 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001/0.7522, allocations: 0.5579 MB / 478.3 MB, free: 4.578 MB / 362.7 MB Notification: Performance of SimCode: time 1.323e-06/0.7522, allocations: 7.938 kB / 478.3 MB, free: 4.57 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.202/3.954, allocations: 28.36 MB / 0.4948 GB, free: 8.191 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