Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001584/0.001584, allocations: 113.4 kB / 17.73 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001936/0.001936, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 55.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09485/0.09642, allocations: 46.61 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse): time 0.005211/0.1017, allocations: 3.655 MB / 378.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.1036, allocations: 0.9628 MB / 379.3 MB, free: 436 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004286/0.1041, allocations: 11.94 kB / 379.3 MB, free: 424 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003439/0.1045, allocations: 75.23 kB / 379.4 MB, free: 348 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005824/0.1051, allocations: 142.8 kB / 379.5 MB, free: 204 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005324/0.1056, allocations: 163.8 kB / 379.7 MB, free: 40 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1993/0.3049, allocations: 0.6034 MB / 380.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003848/0.3053, allocations: 214.1 kB / 380.5 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003116/0.3056, allocations: 227 kB / 380.7 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002963/0.3059, allocations: 243.2 kB / 380.9 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.508e-05/0.306, allocations: 55.47 kB / 381 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.22e-05/0.3061, allocations: 55.25 kB / 381 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.3062, allocations: 124.2 kB / 381.2 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002113/0.3064, allocations: 268.3 kB / 381.4 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007785/0.3072, allocations: 0.629 MB / 382.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3072, allocations: 0 / 382.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3072, allocations: 0 / 382.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.3072, allocations: 1.625 kB / 382.1 MB, free: 8.977 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001378/0.3086, allocations: 0.7836 MB / 382.8 MB, free: 8.453 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.3087, allocations: 13.41 kB / 382.9 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.573e-05/0.3088, allocations: 83.95 kB / 382.9 MB, free: 8.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.816e-05/0.3089, allocations: 56.72 kB / 383 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000418/0.3093, allocations: 370 kB / 383.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/0.3093, allocations: 31.91 kB / 383.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.155e-05/0.3094, allocations: 44.66 kB / 383.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000732/0.3102, allocations: 455.5 kB / 383.9 MB, free: 8.035 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.3102, allocations: 1.938 kB / 383.9 MB, free: 8.035 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.156e-05/0.3102, allocations: 15.94 kB / 383.9 MB, free: 8.035 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.3103, allocations: 16.25 kB / 383.9 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005683/0.3108, allocations: 318.7 kB / 384.2 MB, free: 8.027 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002215/0.3131, allocations: 1.814 MB / 386 MB, free: 6.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007025/0.3138, allocations: 0.6109 MB / 386.6 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006084/0.3144, allocations: 285.1 kB / 386.9 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.3144, allocations: 5.125 kB / 386.9 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000452/0.3149, allocations: 273.3 kB / 387.2 MB, free: 6.137 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.814e-06/0.3149, allocations: 0 / 387.2 MB, free: 6.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.002358/0.3173, allocations: 0.8419 MB / 388 MB, free: 5.785 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/0.3173, allocations: 88.11 kB / 388.1 MB, free: 5.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003531/0.3177, allocations: 314.3 kB / 388.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/0.3177, allocations: 37.64 kB / 388.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/0.3179, allocations: 216.5 kB / 388.7 MB, free: 5.297 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.524e-05/0.318, allocations: 140.5 kB / 388.8 MB, free: 5.191 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.3181, allocations: 90.94 kB / 388.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.602e-05/0.3182, allocations: 350 kB / 389.2 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.3185, allocations: 119.9 kB / 389.4 MB, free: 4.762 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/0.3188, allocations: 252.6 kB / 389.6 MB, free: 4.555 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005009/0.3193, allocations: 375.1 kB / 390 MB, free: 4.301 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.3193, allocations: 1.156 kB / 390 MB, free: 4.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0008986/0.3202, allocations: 0.5092 MB / 390.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.3202, allocations: 7.5 kB / 390.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.3202, allocations: 3.391 kB / 390.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005382/0.3208, allocations: 156.3 kB / 390.6 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002549/0.3211, allocations: 70.06 kB / 390.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002804/0.3239, allocations: 2.541 MB / 393.3 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002739/0.3242, allocations: 49.06 kB / 393.3 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.115e-05/0.3242, allocations: 19.28 kB / 393.3 MB, free: 1.945 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 13 (meanVoltage.y,$PRE.meanVoltage.y,meanCurrent.y,$PRE.meanCurrent.y,$whenCondition3,$whenCondition2,$whenCondition1,rootMeanSquareVoltage.mean.y,$PRE.rootMeanSquareVoltage.mean.y,rectifier.diode_n2.off,rectifier.diode_n1.off,rectifier.diode_p2.off,rectifier.diode_p1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0001808/0.3244, allocations: 175 kB / 393.5 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.548e-05/0.3244, allocations: 40.59 kB / 393.5 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.188e-05/0.3245, allocations: 47.05 kB / 393.6 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.3245, allocations: 5.094 kB / 393.6 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.3246, allocations: 8.547 kB / 393.6 MB, free: 1.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.3246, allocations: 2.156 kB / 393.6 MB, free: 1.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00139/0.326, allocations: 1.021 MB / 394.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.326, allocations: 3.562 kB / 394.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001787/0.3262, allocations: 32.89 kB / 394.7 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000398/0.3266, allocations: 146.3 kB / 394.8 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.173e-05/0.3266, allocations: 15.34 kB / 394.8 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002655/0.3293, allocations: 2.544 MB / 397.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3293, allocations: 1.125 kB / 397.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.3306, allocations: 0.7195 MB / 398.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.3308, allocations: 154.4 kB / 398.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.685e-05/0.3308, allocations: 8.734 kB / 398.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002194/0.331, allocations: 19.81 kB / 398.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.3312, allocations: 32.38 kB / 398.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/0.3312, allocations: 14.95 kB / 398.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002565/0.3315, allocations: 217.6 kB / 398.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.82e-07/0.3315, allocations: 1.125 kB / 398.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006037/0.3321, allocations: 150.2 kB / 398.7 MB, free: 14.29 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p1.off,rectifier.diode_p2.off,rectifier.diode_n1.off,rectifier.diode_n2.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001522/0.3336, allocations: 1.27 MB / 399.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009818/0.3346, allocations: 0.552 MB / 400.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3346, allocations: 0.9375 kB / 400.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000527/0.3352, allocations: 382.6 kB / 400.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004674/0.3356, allocations: 68.62 kB / 400.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005389/0.341, allocations: 3.942 MB / 404.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/0.3415, allocations: 0.8306 MB / 405.7 MB, free: 9.574 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001585/0.3417, allocations: 41.44 kB / 405.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001965/0.3419, allocations: 139.5 kB / 405.9 MB, free: 9.453 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3419, allocations: 1.125 kB / 405.9 MB, free: 9.453 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03119/0.3731, allocations: 10.75 MB / 416.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.75, allocations: 8.344 kB / 416.6 MB, free: 3.797 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe 2>&1)