Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.733e-05/3.751e-05, allocations: 8 kB / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1191, allocations: 44.51 MB / 299.9 MB, free: 6.555 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.44/0.5591, allocations: 73.11 MB / 373 MB, free: 16.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/0.5595, allocations: 69.88 kB / 373.1 MB, free: 16.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02067/0.5802, allocations: 4.843 MB / 378 MB, free: 16.1 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5802, allocations: 0 / 378 MB, free: 16.1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.877e-05/0.5803, allocations: 10.69 kB / 378 MB, free: 16.1 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001119/0.5814, allocations: 0.5659 MB / 378.5 MB, free: 15.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.5815, allocations: 8.219 kB / 378.5 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.081e-05/0.5816, allocations: 60.25 kB / 378.6 MB, free: 15.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.674e-05/0.5817, allocations: 42.28 kB / 378.6 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003923/0.5821, allocations: 270.2 kB / 378.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.885e-05/0.5821, allocations: 26.47 kB / 378.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.479e-05/0.5822, allocations: 24.72 kB / 379 MB, free: 15.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006057/0.5828, allocations: 232 kB / 379.2 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.5828, allocations: 0 / 379.2 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.316e-05/0.5829, allocations: 13 kB / 379.2 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.5829, allocations: 7 kB / 379.2 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005534/0.5835, allocations: 180.6 kB / 379.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002441/0.5859, allocations: 0.9952 MB / 380.4 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005721/0.5865, allocations: 196 kB / 380.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002877/0.5868, allocations: 102 kB / 380.7 MB, free: 14.86 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.5869, allocations: 1.656 kB / 380.7 MB, free: 14.86 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.5869, allocations: 40.72 kB / 380.7 MB, free: 14.81 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 3.166e-06/0.5869, allocations: 0 / 380.7 MB, free: 14.81 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007673/0.5877, allocations: 242 kB / 380.9 MB, free: 14.74 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.893e-05/0.5877, allocations: 54.03 kB / 381 MB, free: 14.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003294/0.5881, allocations: 230.1 kB / 381.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.5881, allocations: 30.52 kB / 381.2 MB, free: 14.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.5882, allocations: 244.4 kB / 381.5 MB, free: 14.35 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.943e-05/0.5883, allocations: 72.39 kB / 381.6 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.624e-05/0.5883, allocations: 3.312 kB / 381.6 MB, free: 14.3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.447e-05/0.5884, allocations: 323.5 kB / 381.9 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.5886, allocations: 56.19 kB / 381.9 MB, free: 13.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.5888, allocations: 94.31 kB / 382 MB, free: 13.96 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/0.589, allocations: 78.55 kB / 382.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.589, allocations: 0 / 382.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007262/0.5898, allocations: 265.5 kB / 382.4 MB, free: 13.87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.5898, allocations: 6.094 kB / 382.4 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.5898, allocations: 2.062 kB / 382.4 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004099/0.5903, allocations: 75.91 kB / 382.4 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003684/0.5906, allocations: 43.56 kB / 382.5 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00247/0.5931, allocations: 2.823 MB / 385.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000414/0.5936, allocations: 41.91 kB / 385.3 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.5936, allocations: 5.656 kB / 385.4 MB, free: 11.28 MB / 314.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.0001213/0.5938, allocations: 119.6 kB / 385.5 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.502e-05/0.5938, allocations: 26.38 kB / 385.5 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.446e-05/0.5939, allocations: 33.73 kB / 385.5 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.5939, allocations: 1.719 kB / 385.5 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.594, allocations: 1.969 kB / 385.5 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.594, allocations: 2.109 kB / 385.5 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.5952, allocations: 0.647 MB / 386.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.5953, allocations: 0 / 386.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002702/0.5955, allocations: 28.25 kB / 386.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003439/0.5959, allocations: 73.09 kB / 386.3 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.5959, allocations: 9.406 kB / 386.3 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003283/0.5992, allocations: 2.828 MB / 389.1 MB, free: 24.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.5993, allocations: 0 / 389.1 MB, free: 24.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008102/0.6001, allocations: 347.5 kB / 389.5 MB, free: 24.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.6003, allocations: 98.08 kB / 389.5 MB, free: 23.95 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.8e-05/0.6003, allocations: 9.219 kB / 389.6 MB, free: 23.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004618/0.6008, allocations: 41.94 kB / 389.6 MB, free: 23.94 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.929e-05/0.6009, allocations: 23.09 kB / 389.6 MB, free: 23.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-05/0.6009, allocations: 4.562 kB / 389.6 MB, free: 23.94 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002727/0.6012, allocations: 185 kB / 389.8 MB, free: 23.86 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6012, allocations: 0 / 389.8 MB, free: 23.86 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005402/0.6018, allocations: 98.97 kB / 389.9 MB, free: 23.84 MB / 330.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.001018/0.6028, allocations: 0.8804 MB / 390.8 MB, free: 23.14 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008761/0.6037, allocations: 407.9 kB / 391.2 MB, free: 22.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.6037, allocations: 5.031 kB / 391.2 MB, free: 22.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005067/0.6042, allocations: 325.9 kB / 391.5 MB, free: 22.68 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005081/0.6048, allocations: 47.7 kB / 391.6 MB, free: 22.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.606, allocations: 411.5 kB / 392 MB, free: 22.46 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.6064, allocations: 0.775 MB / 392.7 MB, free: 21.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.6066, allocations: 88.59 kB / 392.8 MB, free: 21.75 MB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/0.6066, allocations: 5.375 kB / 392.8 MB, free: 21.74 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.711/3.317, allocations: 6.639 MB / 399.5 MB, free: 21.39 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat does not exist to compare? outputFormat=mat