Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.985/1.985, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.035e-05/3.02e-05, allocations: 0 / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.126, allocations: 50.42 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4237/0.5497, allocations: 79.03 MB / 421.7 MB, free: 14.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/0.5501, allocations: 67.58 kB / 421.7 MB, free: 14.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0216/0.5717, allocations: 5.086 MB / 426.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.5717, allocations: 0 / 426.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.689e-05/0.5718, allocations: 8 kB / 426.8 MB, free: 10.36 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001211/0.573, allocations: 0.5596 MB / 427.4 MB, free: 9.777 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.573, allocations: 16.03 kB / 427.4 MB, free: 9.762 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.071e-05/0.5731, allocations: 62.09 kB / 427.5 MB, free: 9.707 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.363e-05/0.5732, allocations: 39.53 kB / 427.5 MB, free: 9.668 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004168/0.5737, allocations: 265.3 kB / 427.8 MB, free: 9.391 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.5737, allocations: 20.25 kB / 427.8 MB, free: 9.375 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.752e-05/0.5738, allocations: 27.62 kB / 427.8 MB, free: 9.359 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006013/0.5744, allocations: 228.7 kB / 428 MB, free: 9.203 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.5744, allocations: 3.938 kB / 428 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.85e-05/0.5745, allocations: 19.58 kB / 428 MB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.5745, allocations: 8 kB / 428.1 MB, free: 9.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004969/0.575, allocations: 177.8 kB / 428.2 MB, free: 9.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002541/0.5776, allocations: 0.9871 MB / 429.2 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005951/0.5782, allocations: 194.5 kB / 429.4 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002971/0.5785, allocations: 109.8 kB / 429.5 MB, free: 7.984 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.5786, allocations: 8.125 kB / 429.5 MB, free: 7.977 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.5786, allocations: 38.64 kB / 429.6 MB, free: 7.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.635e-06/0.5786, allocations: 0 / 429.6 MB, free: 7.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007428/0.5794, allocations: 238.8 kB / 429.8 MB, free: 7.738 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.5794, allocations: 63.39 kB / 429.9 MB, free: 7.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.5798, allocations: 229.3 kB / 430.1 MB, free: 7.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.5798, allocations: 25.7 kB / 430.1 MB, free: 7.449 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.58, allocations: 244.6 kB / 430.3 MB, free: 7.238 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.046e-05/0.5801, allocations: 69.48 kB / 430.4 MB, free: 7.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.722e-05/0.5801, allocations: 2.562 kB / 430.4 MB, free: 7.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.5802, allocations: 321.7 kB / 430.7 MB, free: 6.859 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.5804, allocations: 56.22 kB / 430.8 MB, free: 6.824 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.5806, allocations: 93.41 kB / 430.9 MB, free: 6.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000197/0.5809, allocations: 66.7 kB / 430.9 MB, free: 6.711 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.5809, allocations: 0 / 430.9 MB, free: 6.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007328/0.5816, allocations: 267 kB / 431.2 MB, free: 6.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.5817, allocations: 8 kB / 431.2 MB, free: 6.492 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.5817, allocations: 0 / 431.2 MB, free: 6.492 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004009/0.5821, allocations: 75.31 kB / 431.3 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000374/0.5825, allocations: 43.84 kB / 431.3 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002903/0.5854, allocations: 2.825 MB / 434.1 MB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003937/0.5858, allocations: 35.2 kB / 434.2 MB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.67e-05/0.5859, allocations: 6.5 kB / 434.2 MB, free: 3.453 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001276/0.586, allocations: 115.2 kB / 434.3 MB, free: 3.344 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.539e-05/0.5861, allocations: 27.72 kB / 434.3 MB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.725e-05/0.5862, allocations: 38.02 kB / 434.4 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.5862, allocations: 4 kB / 434.4 MB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.5862, allocations: 0 / 434.4 MB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.5862, allocations: 0 / 434.4 MB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/0.5875, allocations: 0.6593 MB / 435 MB, free: 2.691 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.5875, allocations: 3.953 kB / 435 MB, free: 2.688 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002562/0.5878, allocations: 27.97 kB / 435.1 MB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003538/0.5881, allocations: 74.62 kB / 435.1 MB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/0.5882, allocations: 10.86 kB / 435.1 MB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002813/0.591, allocations: 2.816 MB / 438 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.155e-06/0.591, allocations: 0 / 438 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007363/0.5918, allocations: 339.6 kB / 438.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.5919, allocations: 108.3 kB / 438.4 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.877e-05/0.592, allocations: 3.188 kB / 438.4 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004733/0.5925, allocations: 39.34 kB / 438.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.32e-05/0.5926, allocations: 23.41 kB / 438.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/0.5926, allocations: 4 kB / 438.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002604/0.5929, allocations: 186.2 kB / 438.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5929, allocations: 3.938 kB / 438.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005753/0.5935, allocations: 90.34 kB / 438.7 MB, free: 15 MB / 362.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 (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009918/0.5945, allocations: 0.889 MB / 439.6 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008269/0.5953, allocations: 391.2 kB / 440 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.5953, allocations: 0 / 440 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004923/0.5958, allocations: 319.4 kB / 440.3 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004875/0.5963, allocations: 50.78 kB / 440.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.5975, allocations: 401.2 kB / 440.8 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.5979, allocations: 0.776 MB / 441.5 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.5981, allocations: 88.09 kB / 441.6 MB, free: 12.25 MB / 362.7 MB Notification: Performance of SimCode: time 1.483e-06/0.5981, allocations: 0 / 441.6 MB, free: 12.25 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.76/3.358, allocations: 6.642 MB / 448.3 MB, free: 5.652 MB / 362.7 MB