Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001573/0.001573, allocations: 117.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001608/0.001608, allocations: 203.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.418/1.418, allocations: 227.7 MB / 247.2 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002136/0.002136, allocations: 63.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2834, allocations: 50.55 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse): time 0.006516/0.29, allocations: 4.777 MB / 413.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002834/0.2929, allocations: 1.355 MB / 415.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000396/0.2933, allocations: 27.88 kB / 415.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000663/0.294, allocations: 214.4 kB / 415.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009274/0.2949, allocations: 357.9 kB / 415.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005332/0.2955, allocations: 215.6 kB / 416 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001906/0.2974, allocations: 1.549 MB / 417.6 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001264/0.2987, allocations: 0.9729 MB / 418.5 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001121/0.2998, allocations: 0.6425 MB / 419.2 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001007/0.3008, allocations: 0.7666 MB / 419.9 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002277/0.301, allocations: 164 kB / 420.1 MB, free: 6.258 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002992/0.3014, allocations: 172 kB / 420.3 MB, free: 6.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004279/0.3018, allocations: 442.7 kB / 420.7 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008243/0.3026, allocations: 0.735 MB / 421.4 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002343/0.305, allocations: 2.105 MB / 423.5 MB, free: 2.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.305, allocations: 0 / 423.5 MB, free: 2.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.305, allocations: 4 kB / 423.6 MB, free: 2.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.675e-05/0.305, allocations: 0 / 423.6 MB, free: 2.805 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.003185/0.3082, allocations: 1.692 MB / 425.2 MB, free: 1.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.3083, allocations: 12.03 kB / 425.3 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002225/0.3085, allocations: 156.4 kB / 425.4 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005094/0.309, allocations: 179.9 kB / 425.6 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001549/0.3106, allocations: 0.9665 MB / 426.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.418e-05/0.3107, allocations: 78.38 kB / 426.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/0.3109, allocations: 103.9 kB / 426.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00243/0.3133, allocations: 1.435 MB / 428.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.3134, allocations: 7.938 kB / 428.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/0.3135, allocations: 47.98 kB / 428.2 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.224e-05/0.3135, allocations: 38 kB / 428.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002206/0.3157, allocations: 1.292 MB / 429.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006211/0.322, allocations: 4.317 MB / 433.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00216/0.3241, allocations: 1.955 MB / 435.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001272/0.3254, allocations: 0.7389 MB / 436.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.551e-05/0.3255, allocations: 4.656 kB / 436.6 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009654/0.3265, allocations: 0.6053 MB / 437.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=75): time 2.585e-06/0.3265, allocations: 0 / 437.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.007337/0.3338, allocations: 2.828 MB / 440 MB, free: 1.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.569e-05/0.3339, allocations: 111.5 kB / 440.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.3351, allocations: 0.8443 MB / 440.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.047e-05/0.3352, allocations: 41.7 kB / 441 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004532/0.3356, allocations: 0.493 MB / 441.5 MB, free: 332 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002311/0.3359, allocations: 257.8 kB / 441.7 MB, free: 72 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002379/0.3361, allocations: 138.6 kB / 441.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.3363, allocations: 337.9 kB / 442.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006316/0.3369, allocations: 389.7 kB / 442.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007698/0.3377, allocations: 0.5454 MB / 443.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001379/0.3391, allocations: 0.9114 MB / 444 MB, free: 13.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.3391, allocations: 0 / 444 MB, free: 13.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002147/0.3413, allocations: 1.311 MB / 445.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.3413, allocations: 11.98 kB / 445.4 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3413, allocations: 4 kB / 445.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.3424, allocations: 469.3 kB / 445.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003502/0.3428, allocations: 91.83 kB / 445.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007509/0.3503, allocations: 5.595 MB / 451.5 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006136/0.351, allocations: 87.52 kB / 451.6 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-05/0.351, allocations: 24 kB / 451.6 MB, free: 5.906 MB / 366.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: 15 (meanVoltage.y_last,$PRE.meanVoltage.y_last,meanCurrent.y_last,$PRE.meanCurrent.y_last,$whenCondition3,$whenCondition2,$whenCondition1,rootMeanSquareVoltage.mean.y_last,$PRE.rootMeanSquareVoltage.mean.y_last,rectifier.diode_n.idealDiode[3].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[1].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * 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 {(6,30)} Notification: Performance of prepare postOptimizeDAE: time 0.0007214/0.3518, allocations: 459.3 kB / 452.1 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/0.3519, allocations: 95.44 kB / 452.2 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002377/0.3521, allocations: 108.7 kB / 452.3 MB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.3522, allocations: 11.94 kB / 452.3 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3522, allocations: 0 / 452.3 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.3522, allocations: 7.922 kB / 452.3 MB, free: 5.219 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004116/0.3563, allocations: 2.61 MB / 454.9 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.3563, allocations: 0 / 454.9 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000282/0.3566, allocations: 63.84 kB / 455 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00103/0.3577, allocations: 460.5 kB / 455.4 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-05/0.3577, allocations: 16 kB / 455.4 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007502/0.3652, allocations: 5.501 MB / 460.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3653, allocations: 0 / 460.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002986/0.3683, allocations: 1.913 MB / 462.8 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004862/0.3688, allocations: 284.3 kB / 463.1 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.3689, allocations: 15.94 kB / 463.1 MB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004003/0.3693, allocations: 39.95 kB / 463.2 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/0.3695, allocations: 76.53 kB / 463.2 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.587e-05/0.3696, allocations: 24 kB / 463.3 MB, free: 9.992 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008637/0.3704, allocations: 0.6005 MB / 463.9 MB, free: 9.395 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3705, allocations: 0 / 463.9 MB, free: 9.395 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001063/0.3715, allocations: 347.3 kB / 464.2 MB, free: 9.055 MB / 382.1 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: 12 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last) * 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 (40): * Single equations (assignments): 36 * 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 {(6,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003331/0.3749, allocations: 2.492 MB / 466.7 MB, free: 6.531 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002289/0.3772, allocations: 1.282 MB / 468 MB, free: 5.234 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.3772, allocations: 0.875 kB / 468 MB, free: 5.234 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001339/0.3785, allocations: 0.8318 MB / 468.8 MB, free: 4.387 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.3797, allocations: 278.9 kB / 469.1 MB, free: 4.113 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01473/0.3945, allocations: 9.87 MB / 479 MB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001102/0.3956, allocations: 1.326 MB / 480.3 MB, free: 8.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004356/0.3961, allocations: 147.4 kB / 480.4 MB, free: 8.512 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005141/0.3966, allocations: 393.5 kB / 480.8 MB, free: 8.129 MB / 398.1 MB Notification: Performance of SimCode: time 1.193e-06/0.3966, allocations: 0 / 480.8 MB, free: 8.129 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07081/0.4674, allocations: 29.41 MB / 0.4983 GB, free: 11.19 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/13.5, allocations: 20.33 kB / 0.4983 GB, free: 11.17 MB / 430.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_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_4_1_0-beta_om_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe 2>&1)