Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.958/1.958, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.177e-05/3.188e-05, allocations: 8 kB / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0932/0.09327, allocations: 44.5 MB / 299.9 MB, free: 6.559 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3851/0.4784, allocations: 72.53 MB / 372.5 MB, free: 22.26 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.4787, allocations: 66.45 kB / 372.5 MB, free: 22.26 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01297/0.4917, allocations: 2.594 MB / 375.1 MB, free: 21.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4918, allocations: 0 / 375.1 MB, free: 21.79 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.55e-05/0.4918, allocations: 11.88 kB / 375.1 MB, free: 21.78 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009466/0.4928, allocations: 472.2 kB / 375.6 MB, free: 21.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.4928, allocations: 11.41 kB / 375.6 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.544e-05/0.4929, allocations: 49.8 kB / 375.7 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.818e-05/0.493, allocations: 22.31 kB / 375.7 MB, free: 21.33 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.4933, allocations: 232.6 kB / 375.9 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.4934, allocations: 14.25 kB / 375.9 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.643e-05/0.4934, allocations: 13.28 kB / 375.9 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004307/0.4939, allocations: 183.6 kB / 376.1 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.806e-05/0.4939, allocations: 0 / 376.1 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.542e-05/0.494, allocations: 5.875 kB / 376.1 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.138e-05/0.494, allocations: 4.656 kB / 376.1 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003453/0.4944, allocations: 118.7 kB / 376.2 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.496, allocations: 0.79 MB / 377 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000413/0.4964, allocations: 145.1 kB / 377.2 MB, free: 20.44 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.4966, allocations: 64.48 kB / 377.2 MB, free: 20.42 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.976e-05/0.4967, allocations: 7.531 kB / 377.3 MB, free: 20.42 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002934/0.497, allocations: 138 kB / 377.4 MB, free: 20.35 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 2.795e-06/0.497, allocations: 3.938 kB / 377.4 MB, free: 20.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005347/0.4976, allocations: 166 kB / 377.6 MB, free: 20.3 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.4976, allocations: 80 kB / 377.6 MB, free: 20.2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002696/0.4979, allocations: 180.8 kB / 377.8 MB, free: 20.1 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.498, allocations: 33.77 kB / 377.8 MB, free: 20.07 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.032e-05/0.4981, allocations: 199.6 kB / 378 MB, free: 19.9 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.268e-05/0.4981, allocations: 43.78 kB / 378.1 MB, free: 19.88 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.623e-05/0.4982, allocations: 8.938 kB / 378.1 MB, free: 19.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.691e-05/0.4982, allocations: 315.2 kB / 378.4 MB, free: 19.56 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.4984, allocations: 56.73 kB / 378.4 MB, free: 19.56 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002004/0.4986, allocations: 113.9 kB / 378.6 MB, free: 19.49 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001947/0.4988, allocations: 66.95 kB / 378.6 MB, free: 19.49 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.4989, allocations: 1.156 kB / 378.6 MB, free: 19.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005255/0.4994, allocations: 199.3 kB / 378.8 MB, free: 19.44 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.4994, allocations: 6.75 kB / 378.8 MB, free: 19.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.4995, allocations: 6.594 kB / 378.8 MB, free: 19.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.779e-05/0.4995, allocations: 6.359 kB / 378.8 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003435/0.4998, allocations: 37.38 kB / 378.9 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.4999, allocations: 7.422 kB / 378.9 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003139/0.5002, allocations: 35.02 kB / 378.9 MB, free: 19.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.079e-05/0.5002, allocations: 13.11 kB / 378.9 MB, free: 19.42 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.5004, allocations: 122 kB / 379.1 MB, free: 19.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.195e-05/0.5004, allocations: 15.94 kB / 379.1 MB, free: 19.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005523/0.501, allocations: 187.8 kB / 379.2 MB, free: 19.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.501, allocations: 2.375 kB / 379.3 MB, free: 19.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.501, allocations: 3.953 kB / 379.3 MB, free: 19.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.5011, allocations: 3.172 kB / 379.3 MB, free: 19.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003641/0.5014, allocations: 269.8 kB / 379.5 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.5014, allocations: 1.125 kB / 379.5 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002277/0.5017, allocations: 33.94 kB / 379.6 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.5017, allocations: 1.062 kB / 379.6 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.5017, allocations: 7.969 kB / 379.6 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.129e-06/0.5018, allocations: 1 kB / 379.6 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.5018, allocations: 1.344 kB / 379.6 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004998/0.5023, allocations: 213.6 kB / 379.8 MB, free: 18.94 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.218e-05/0.5024, allocations: 97.92 kB / 379.9 MB, free: 18.83 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.21e-05/0.5024, allocations: 7.375 kB / 379.9 MB, free: 18.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.5027, allocations: 20.25 kB / 379.9 MB, free: 18.83 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.534e-05/0.5028, allocations: 23 kB / 379.9 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.667e-05/0.5028, allocations: 4.219 kB / 379.9 MB, free: 18.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001836/0.503, allocations: 143.4 kB / 380.1 MB, free: 18.75 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.503, allocations: 4 kB / 380.1 MB, free: 18.74 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004177/0.5035, allocations: 41.81 kB / 380.1 MB, free: 18.73 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007259/0.5042, allocations: 0.8216 MB / 380.9 MB, free: 18.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000462/0.5047, allocations: 146.3 kB / 381.1 MB, free: 18.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.5047, allocations: 1.719 kB / 381.1 MB, free: 18.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000208/0.5049, allocations: 69.03 kB / 381.1 MB, free: 18.03 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004887/0.5054, allocations: 40.69 kB / 381.2 MB, free: 18.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.5066, allocations: 341.6 kB / 381.5 MB, free: 17.84 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.5069, allocations: 0.749 MB / 382.3 MB, free: 17.13 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.507, allocations: 67.8 kB / 382.3 MB, free: 17.12 MB / 314.7 MB Notification: Performance of SimCode: time 1.423e-06/0.5071, allocations: 0 / 382.3 MB, free: 17.12 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.662/3.169, allocations: 3.137 MB / 385.5 MB, free: 16.88 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat