Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse,fileNamePrefix="Modelica_4_0_0_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.001578/0.001578, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001768/0.001768, allocations: 195 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 55.91 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2998, allocations: 49.44 MB / 400.3 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse): time 0.00519/0.3051, allocations: 3.709 MB / 404 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001974/0.3071, allocations: 0.9155 MB / 404.9 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005047/0.3076, allocations: 11.94 kB / 404.9 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003478/0.308, allocations: 75.22 kB / 405 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005731/0.3086, allocations: 154.6 kB / 405.1 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004413/0.309, allocations: 159.8 kB / 405.3 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008102/0.3098, allocations: 0.6109 MB / 405.9 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004566/0.3103, allocations: 215 kB / 406.1 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000441/0.3108, allocations: 227.1 kB / 406.3 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004911/0.3113, allocations: 246.9 kB / 406.6 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001365/0.3114, allocations: 56 kB / 406.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.3116, allocations: 56 kB / 406.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001356/0.3117, allocations: 127.5 kB / 406.8 MB, free: 2.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003161/0.312, allocations: 262.7 kB / 407 MB, free: 2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007003/0.3127, allocations: 0.642 MB / 407.7 MB, free: 1.355 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3127, allocations: 0 / 407.7 MB, free: 1.355 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3128, allocations: 0 / 407.7 MB, free: 1.355 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.517e-05/0.3128, allocations: 0 / 407.7 MB, free: 1.355 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001584/0.3144, allocations: 0.7919 MB / 408.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.3144, allocations: 15.89 kB / 408.5 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/0.3145, allocations: 74.72 kB / 408.6 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.3147, allocations: 64.55 kB / 408.6 MB, free: 364 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005364/0.3152, allocations: 380.4 kB / 409 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.3153, allocations: 29.38 kB / 409 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.115e-05/0.3153, allocations: 52.12 kB / 409.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007961/0.3161, allocations: 457.5 kB / 409.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.3162, allocations: 3.938 kB / 409.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.57e-05/0.3162, allocations: 16 kB / 409.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.455e-05/0.3162, allocations: 19.98 kB / 409.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006116/0.3169, allocations: 323.8 kB / 409.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002467/0.3193, allocations: 1.828 MB / 411.7 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007743/0.3201, allocations: 0.6092 MB / 412.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005802/0.3207, allocations: 279.2 kB / 412.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.876e-05/0.3208, allocations: 4.328 kB / 412.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004481/0.3212, allocations: 269.1 kB / 412.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.044e-06/0.3212, allocations: 0 / 412.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=43): time 0.002254/0.3235, allocations: 0.8424 MB / 413.7 MB, free: 11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.495e-05/0.3236, allocations: 89.09 kB / 413.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003221/0.3239, allocations: 316.4 kB / 414.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.111e-05/0.324, allocations: 37.7 kB / 414.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.3241, allocations: 216.7 kB / 414.3 MB, free: 10.31 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.3242, allocations: 146.7 kB / 414.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.3244, allocations: 90.25 kB / 414.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3245, allocations: 346.8 kB / 414.9 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.3248, allocations: 117.1 kB / 415 MB, free: 9.613 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000311/0.3251, allocations: 257 kB / 415.3 MB, free: 9.305 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005231/0.3256, allocations: 375.2 kB / 415.6 MB, free: 8.887 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.3256, allocations: 4 kB / 415.7 MB, free: 8.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0008909/0.3265, allocations: 0.5054 MB / 416.2 MB, free: 8.367 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.3266, allocations: 8 kB / 416.2 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.3266, allocations: 7.938 kB / 416.2 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004874/0.3271, allocations: 153.1 kB / 416.3 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/0.3273, allocations: 63.91 kB / 416.4 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002773/0.3301, allocations: 2.549 MB / 418.9 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002855/0.3304, allocations: 43.75 kB / 419 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.3304, allocations: 20 kB / 419 MB, free: 5.395 MB / 334.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_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_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.0002356/0.3307, allocations: 178.8 kB / 419.2 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.79e-05/0.3308, allocations: 51.64 kB / 419.2 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.951e-05/0.3309, allocations: 48.3 kB / 419.3 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.3309, allocations: 4 kB / 419.3 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3309, allocations: 4 kB / 419.3 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.3309, allocations: 0 / 419.3 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.3324, allocations: 1.028 MB / 420.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3324, allocations: 0 / 420.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001653/0.3326, allocations: 27.98 kB / 420.3 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000373/0.333, allocations: 144.8 kB / 420.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.133e-05/0.333, allocations: 12 kB / 420.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00254/0.3356, allocations: 2.534 MB / 423 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.3356, allocations: 7.938 kB / 423 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.3366, allocations: 0.725 MB / 423.8 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001803/0.3368, allocations: 148.8 kB / 423.9 MB, free: 244 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.125e-05/0.3369, allocations: 16 kB / 423.9 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.3371, allocations: 15.98 kB / 423.9 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.116e-05/0.3372, allocations: 35.95 kB / 424 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-05/0.3373, allocations: 15.98 kB / 424 MB, free: 160 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002175/0.3375, allocations: 215.1 kB / 424.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3375, allocations: 0 / 424.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005856/0.3381, allocations: 147.8 kB / 424.3 MB, free: 15.8 MB / 350.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_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 (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.001362/0.3395, allocations: 1.281 MB / 425.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009369/0.3404, allocations: 0.5368 MB / 426.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.3404, allocations: 0 / 426.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005179/0.3409, allocations: 391 kB / 426.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004687/0.3414, allocations: 92.78 kB / 426.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005136/0.3466, allocations: 3.937 MB / 430.6 MB, free: 9.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003862/0.347, allocations: 0.8318 MB / 431.4 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001405/0.3471, allocations: 39.48 kB / 431.4 MB, free: 8.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.3473, allocations: 139.4 kB / 431.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3473, allocations: 0 / 431.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03528/0.3826, allocations: 10.75 MB / 442.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.96, allocations: 7.422 kB / 442.3 MB, free: 13.86 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_DiodeBridge2Pulse.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.DiodeBridge2Pulse.pipe 2>&1)