Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.243/2.243, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.545e-05/2.562e-05, allocations: 0 / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3625/0.3626, allocations: 44.5 MB / 294.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1609/0.5236, allocations: 81.36 MB / 375.6 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003781/0.524, allocations: 83.95 kB / 375.7 MB, free: 440 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05956/0.5836, allocations: 12.91 MB / 388.6 MB, free: 3.438 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.5837, allocations: 0 / 388.6 MB, free: 3.438 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.985e-05/0.5838, allocations: 20 kB / 388.6 MB, free: 3.418 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 155 * Number of variables: 155 Notification: Performance of Generate backend data structure: time 0.002952/0.5867, allocations: 0.8637 MB / 389.5 MB, free: 2.5 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.328e-05/0.5868, allocations: 12.03 kB / 389.5 MB, free: 2.488 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004015/0.5872, allocations: 83.02 kB / 389.6 MB, free: 2.406 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001566/0.5888, allocations: 0.4883 MB / 390 MB, free: 1.879 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.034e-05/0.5889, allocations: 24 kB / 390.1 MB, free: 1.855 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000167/0.5891, allocations: 36 kB / 390.1 MB, free: 1.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001526/0.5907, allocations: 454.5 kB / 390.5 MB, free: 1.375 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.5925, allocations: 0.5746 MB / 391.1 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.671e-05/0.5926, allocations: 4 kB / 391.1 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.988e-05/0.5927, allocations: 4 kB / 391.1 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.338e-05/0.5927, allocations: 16 kB / 391.1 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006951/0.5997, allocations: 2.467 MB / 393.6 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001916/0.6017, allocations: 0.5401 MB / 394.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006452/0.6024, allocations: 238.5 kB / 394.4 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.821e-05/0.6025, allocations: 8.422 kB / 394.4 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008382/0.6033, allocations: 320.6 kB / 394.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=55): time 4.228e-06/0.6034, allocations: 3.938 kB / 394.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.00152/0.6049, allocations: 479.3 kB / 395.2 MB, free: 12.56 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.6051, allocations: 111.4 kB / 395.3 MB, free: 12.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007992/0.6059, allocations: 361.1 kB / 395.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001596/0.6061, allocations: 37.7 kB / 395.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003855/0.6065, allocations: 355.1 kB / 396 MB, free: 11.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002699/0.6067, allocations: 157.7 kB / 396.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.387e-05/0.6068, allocations: 0 / 396.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001953/0.607, allocations: 342.8 kB / 396.5 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005335/0.6076, allocations: 165.5 kB / 396.7 MB, free: 11.01 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006463/0.6082, allocations: 327.7 kB / 397 MB, free: 10.64 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005275/0.6088, allocations: 183.2 kB / 397.2 MB, free: 10.46 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.6088, allocations: 4 kB / 397.2 MB, free: 10.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0016/0.6104, allocations: 0.5501 MB / 397.7 MB, free: 9.891 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008548/0.6113, allocations: 1.571 MB / 399.3 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.888e-05/0.6114, allocations: 4 kB / 399.3 MB, free: 8.195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000967/0.6124, allocations: 148.8 kB / 399.4 MB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007179/0.6131, allocations: 91.83 kB / 399.5 MB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004628/0.6178, allocations: 2.275 MB / 401.8 MB, free: 5.566 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009091/0.6188, allocations: 75.53 kB / 401.9 MB, free: 5.492 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-05/0.6189, allocations: 27.94 kB / 401.9 MB, free: 5.465 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.619, allocations: 4 kB / 401.9 MB, free: 5.461 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001502/0.6205, allocations: 0.4981 MB / 402.4 MB, free: 4.957 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.6205, allocations: 4 kB / 402.4 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006862/0.6212, allocations: 145.3 kB / 402.6 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006429/0.6219, allocations: 83.83 kB / 402.6 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004486/0.6264, allocations: 2.263 MB / 404.9 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006476/0.6271, allocations: 59.61 kB / 405 MB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.859e-05/0.6272, allocations: 24 kB / 405 MB, free: 2.273 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003008/0.6275, allocations: 142 kB / 405.1 MB, free: 2.133 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001391/0.6289, allocations: 475.4 kB / 405.6 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.6292, allocations: 51.34 kB / 405.6 MB, free: 1.613 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002225/0.6294, allocations: 64.95 kB / 405.7 MB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.6294, allocations: 12 kB / 405.7 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.6294, allocations: 0 / 405.7 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/0.6295, allocations: 3.984 kB / 405.7 MB, free: 1.535 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003159/0.6326, allocations: 1.198 MB / 406.9 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.388e-06/0.6327, allocations: 0 / 406.9 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004488/0.6332, allocations: 47.91 kB / 407 MB, free: 248 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006931/0.6339, allocations: 140.7 kB / 407.1 MB, free: 104 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.343e-05/0.634, allocations: 4 kB / 407.1 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004171/0.6382, allocations: 2.155 MB / 409.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.847e-06/0.6382, allocations: 3.984 kB / 409.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/0.6405, allocations: 0.8312 MB / 410.1 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004585/0.641, allocations: 176.4 kB / 410.3 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.6412, allocations: 7.984 kB / 410.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006255/0.6418, allocations: 31.97 kB / 410.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003101/0.6421, allocations: 72.45 kB / 410.4 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.69e-05/0.6422, allocations: 15.98 kB / 410.4 MB, free: 12.65 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005224/0.6428, allocations: 271 kB / 410.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.6428, allocations: 3.938 kB / 410.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001714/0.6445, allocations: 295 kB / 410.9 MB, free: 12.09 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n1.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.00273/0.6473, allocations: 1.398 MB / 412.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003098/0.6504, allocations: 1.073 MB / 413.4 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/0.6505, allocations: 4 kB / 413.4 MB, free: 9.566 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.6517, allocations: 408.7 kB / 413.8 MB, free: 9.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.6527, allocations: 86.08 kB / 413.9 MB, free: 9.074 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003793/0.6566, allocations: 0.9612 MB / 414.9 MB, free: 8.059 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007882/0.6574, allocations: 0.9386 MB / 415.8 MB, free: 7.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005361/0.658, allocations: 215.4 kB / 416 MB, free: 6.879 MB / 362.7 MB Notification: Performance of SimCode: time 1.263e-06/0.658, allocations: 0 / 416 MB, free: 6.879 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.14/3.798, allocations: 12.85 MB / 428.9 MB, free: 105.3 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat does not exist to compare? outputFormat=mat