Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 171.3 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.523e-05/2.536e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2786, allocations: 38.77 MB / 258.3 MB, free: 12.07 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1531/0.4318, allocations: 79.79 MB / 338.1 MB, free: 14.04 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/0.4321, allocations: 71.97 kB / 338.2 MB, free: 13.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4324/0.8645, allocations: 32.79 MB / 371 MB, free: 80.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.8645, allocations: 1.219 kB / 371 MB, free: 80.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.477e-05/0.8646, allocations: 12.75 kB / 371 MB, free: 80.84 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001997/0.8666, allocations: 1.041 MB / 372 MB, free: 80.22 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.8667, allocations: 15.25 kB / 372 MB, free: 80.22 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000213/0.8669, allocations: 111 kB / 372.1 MB, free: 80.17 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001545/0.8684, allocations: 0.7417 MB / 372.9 MB, free: 79.86 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.8685, allocations: 8.438 kB / 372.9 MB, free: 79.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.08e-05/0.8686, allocations: 14.19 kB / 372.9 MB, free: 79.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005537/0.8691, allocations: 205.4 kB / 373.1 MB, free: 79.86 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005642/0.8697, allocations: 262.8 kB / 373.4 MB, free: 79.8 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.8697, allocations: 3.938 kB / 373.4 MB, free: 79.8 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.855e-05/0.8698, allocations: 0 / 373.4 MB, free: 79.8 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.8698, allocations: 10.31 kB / 373.4 MB, free: 79.8 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002551/0.8724, allocations: 1.143 MB / 374.5 MB, free: 79.4 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004194/0.8728, allocations: 191.2 kB / 374.7 MB, free: 79.37 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004007/0.8732, allocations: 209.7 kB / 374.9 MB, free: 79.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01321/0.8865, allocations: 10.78 MB / 385.7 MB, free: 69.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.8865, allocations: 32.62 kB / 385.7 MB, free: 69.78 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.686e-06/0.8866, allocations: 0 / 385.7 MB, free: 69.78 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008402/0.8874, allocations: 333.6 kB / 386 MB, free: 69.69 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/0.8875, allocations: 80.86 kB / 386.1 MB, free: 69.59 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008918/0.8884, allocations: 0.6079 MB / 386.7 MB, free: 69.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.8884, allocations: 25.7 kB / 386.8 MB, free: 69.42 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003036/0.8887, allocations: 412.8 kB / 387.2 MB, free: 69.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.421e-05/0.8888, allocations: 75.53 kB / 387.2 MB, free: 69.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.878e-05/0.8888, allocations: 1.875 kB / 387.2 MB, free: 69.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.207e-05/0.8889, allocations: 325.2 kB / 387.6 MB, free: 68.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.889, allocations: 55.98 kB / 387.6 MB, free: 68.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001777/0.8892, allocations: 128 kB / 387.7 MB, free: 68.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002324/0.8895, allocations: 90.52 kB / 387.8 MB, free: 68.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.8895, allocations: 0 / 387.8 MB, free: 68.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006229/0.8901, allocations: 273 kB / 388.1 MB, free: 68.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.8902, allocations: 3.938 kB / 388.1 MB, free: 68.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.838e-05/0.8902, allocations: 16.23 kB / 388.1 MB, free: 68.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004906/0.8907, allocations: 145.8 kB / 388.3 MB, free: 68.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002785/0.891, allocations: 35.64 kB / 388.3 MB, free: 68.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007462/0.8918, allocations: 0.7168 MB / 389 MB, free: 68.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005649/0.8924, allocations: 20.59 kB / 389 MB, free: 68.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.666e-05/0.8924, allocations: 22.72 kB / 389 MB, free: 68.17 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: J1.Dinternal:VARIABLE(unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0001647/0.8926, allocations: 112.1 kB / 389.2 MB, free: 68.06 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007091/0.8933, allocations: 335.6 kB / 389.5 MB, free: 67.96 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.8935, allocations: 101.8 kB / 389.6 MB, free: 67.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001228/0.8947, allocations: 399.9 kB / 390 MB, free: 67.84 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.8947, allocations: 3.938 kB / 390 MB, free: 67.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.8948, allocations: 0 / 390 MB, free: 67.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.8948, allocations: 4.703 kB / 390 MB, free: 67.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007979/0.8956, allocations: 471.3 kB / 390.4 MB, free: 67.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-05/0.8956, allocations: 16.34 kB / 390.5 MB, free: 67.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002072/0.8959, allocations: 19.86 kB / 390.5 MB, free: 67.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004093/0.8963, allocations: 127.2 kB / 390.6 MB, free: 67.67 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.624e-05/0.8963, allocations: 5.344 kB / 390.6 MB, free: 67.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007338/0.8971, allocations: 0.7302 MB / 391.3 MB, free: 67.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.8971, allocations: 3.688 kB / 391.3 MB, free: 67.14 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007824/0.8979, allocations: 437.8 kB / 391.8 MB, free: 66.94 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002757/0.8982, allocations: 171.6 kB / 391.9 MB, free: 66.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001703/0.8983, allocations: 3.938 kB / 391.9 MB, free: 66.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004461/0.8988, allocations: 7.422 kB / 391.9 MB, free: 66.79 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.195e-05/0.8989, allocations: 11.14 kB / 392 MB, free: 66.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.213e-05/0.8989, allocations: 15.3 kB / 392 MB, free: 66.79 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000735/0.8997, allocations: 474.9 kB / 392.4 MB, free: 66.68 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.8997, allocations: 3 kB / 392.4 MB, free: 66.68 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009278/0.9006, allocations: 203.8 kB / 392.6 MB, free: 66.65 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.001622/0.9023, allocations: 1.189 MB / 393.8 MB, free: 65.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007636/0.9031, allocations: 249.7 kB / 394.1 MB, free: 65.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.9031, allocations: 2.719 kB / 394.1 MB, free: 65.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003487/0.9035, allocations: 163.9 kB / 394.2 MB, free: 65.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009289/0.9044, allocations: 122.3 kB / 394.4 MB, free: 65.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.9072, allocations: 1.015 MB / 395.4 MB, free: 65.37 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003982/0.9076, allocations: 0.9561 MB / 396.3 MB, free: 64.67 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004404/0.9081, allocations: 323.8 kB / 396.6 MB, free: 64.66 MB / 314.7 MB Notification: Performance of SimCode: time 1.002e-06/0.9081, allocations: 0 / 396.6 MB, free: 64.66 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.782/3.69, allocations: 17.06 MB / 413.7 MB, free: 56.44 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat does not exist to compare? outputFormat=mat