Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.128/2.128, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.633e-05/2.633e-05, allocations: 4 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3234, allocations: 44.48 MB / 294.2 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1832/0.5066, allocations: 85.34 MB / 379.5 MB, free: 12.51 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.5069, allocations: 75.95 kB / 379.6 MB, free: 12.44 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4229/0.9298, allocations: 51.53 MB / 431.2 MB, free: 90.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.9299, allocations: 0 / 431.2 MB, free: 90.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.448e-05/0.93, allocations: 23.03 kB / 431.2 MB, free: 90.36 MB / 362.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.00388/0.9339, allocations: 1.552 MB / 432.7 MB, free: 89.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.9339, allocations: 9.281 kB / 432.7 MB, free: 89.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005813/0.9345, allocations: 206 kB / 432.9 MB, free: 89.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002822/0.9374, allocations: 1.129 MB / 434.1 MB, free: 89.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.165e-05/0.9374, allocations: 13.81 kB / 434.1 MB, free: 89.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.9376, allocations: 27.94 kB / 434.1 MB, free: 89.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001016/0.9386, allocations: 395.2 kB / 434.5 MB, free: 89.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.9396, allocations: 417.2 kB / 434.9 MB, free: 88.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.265e-05/0.9397, allocations: 0 / 434.9 MB, free: 88.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.156e-05/0.9398, allocations: 7.484 kB / 434.9 MB, free: 88.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.81e-05/0.9398, allocations: 18.17 kB / 434.9 MB, free: 88.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004567/0.9444, allocations: 2.043 MB / 437 MB, free: 88.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008398/0.9453, allocations: 0.6373 MB / 437.6 MB, free: 88.23 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007158/0.946, allocations: 476.8 kB / 438.1 MB, free: 88.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01226/0.9583, allocations: 7.743 MB / 445.8 MB, free: 81.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005318/0.9589, allocations: 256.6 kB / 446.1 MB, free: 81.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=55): time 3.356e-06/0.9589, allocations: 0 / 446.1 MB, free: 81.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.01294/0.9718, allocations: 2.247 MB / 448.3 MB, free: 81.17 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/0.9719, allocations: 58.53 kB / 448.4 MB, free: 81.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001812/0.9738, allocations: 0.9924 MB / 449.4 MB, free: 80.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001111/0.9739, allocations: 25.7 kB / 449.4 MB, free: 80.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00068/0.9746, allocations: 0.7084 MB / 450.1 MB, free: 80.74 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000211/0.9748, allocations: 194.7 kB / 450.3 MB, free: 80.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.179e-05/0.9749, allocations: 4 kB / 450.3 MB, free: 80.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.453e-05/0.975, allocations: 333.4 kB / 450.6 MB, free: 80.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003597/0.9754, allocations: 154.4 kB / 450.8 MB, free: 80.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004406/0.9758, allocations: 317.5 kB / 451.1 MB, free: 80.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/0.977, allocations: 375.3 kB / 451.4 MB, free: 80.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.977, allocations: 0 / 451.4 MB, free: 80.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002574/0.9796, allocations: 0.9478 MB / 452.4 MB, free: 79.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.159e-05/0.9797, allocations: 8.344 kB / 452.4 MB, free: 79.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001404/0.9798, allocations: 58.08 kB / 452.5 MB, free: 79.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005608/0.9804, allocations: 144.4 kB / 452.6 MB, free: 79.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007854/0.9812, allocations: 119.5 kB / 452.7 MB, free: 79.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004982/0.9862, allocations: 2.237 MB / 454.9 MB, free: 78.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001814/0.9881, allocations: 26.92 kB / 455 MB, free: 78.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002147/0.9883, allocations: 28.84 kB / 455 MB, free: 78.57 MB / 362.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.0002982/0.9887, allocations: 127.1 kB / 455.1 MB, free: 78.45 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004941/0.9936, allocations: 0.8478 MB / 456 MB, free: 78.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006108/0.9943, allocations: 185.4 kB / 456.2 MB, free: 78.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003251/0.9976, allocations: 0.9567 MB / 457.1 MB, free: 78.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.9976, allocations: 14.12 kB / 457.1 MB, free: 78.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.9977, allocations: 3.812 kB / 457.1 MB, free: 78.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.9977, allocations: 3.891 kB / 457.1 MB, free: 78.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001648/0.9993, allocations: 0.7858 MB / 457.9 MB, free: 77.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000137/0.9995, allocations: 52.27 kB / 458 MB, free: 77.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005621/1, allocations: 64.89 kB / 458 MB, free: 77.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005542/1.001, allocations: 148.1 kB / 458.2 MB, free: 77.85 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.44e-05/1.001, allocations: 11.88 kB / 458.2 MB, free: 77.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003302/1.004, allocations: 2.232 MB / 460.4 MB, free: 76.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/1.004, allocations: 0 / 460.4 MB, free: 76.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002921/1.007, allocations: 1.098 MB / 461.5 MB, free: 75.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005997/1.008, allocations: 247.2 kB / 461.8 MB, free: 75.53 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002929/1.008, allocations: 4 kB / 461.8 MB, free: 75.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006805/1.009, allocations: 22.56 kB / 461.8 MB, free: 75.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001869/1.009, allocations: 45.34 kB / 461.8 MB, free: 75.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.493e-05/1.009, allocations: 27.8 kB / 461.9 MB, free: 75.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001251/1.01, allocations: 0.7409 MB / 462.6 MB, free: 75.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.01, allocations: 0 / 462.6 MB, free: 75.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001665/1.012, allocations: 397.5 kB / 463 MB, free: 75.11 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.004128/1.016, allocations: 2.157 MB / 465.1 MB, free: 74.01 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001953/1.018, allocations: 0.7495 MB / 465.9 MB, free: 73.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/1.018, allocations: 0 / 465.9 MB, free: 73.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001263/1.019, allocations: 0.5526 MB / 466.4 MB, free: 73.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001187/1.021, allocations: 151.2 kB / 466.6 MB, free: 73.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005555/1.026, allocations: 2.059 MB / 468.7 MB, free: 72.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006551/1.027, allocations: 1.206 MB / 469.9 MB, free: 71.55 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009254/1.028, allocations: 151.4 kB / 470 MB, free: 71.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009009/1.029, allocations: 0.5549 MB / 470.6 MB, free: 71.07 MB / 362.7 MB Notification: Performance of SimCode: time 1.523e-06/1.029, allocations: 0 / 470.6 MB, free: 71.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.099/1.128, allocations: 24.24 MB / 494.8 MB, free: 49.61 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002281/1.128, allocations: 141 kB / 494.9 MB, free: 49.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.7/4.828, allocations: 4 kB / 494.9 MB, free: 49.41 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat