Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",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.001474/0.001473, allocations: 113 kB / 17.07 MB, free: 6.016 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.001267/0.001267, allocations: 189.4 kB / 18 MB, free: 5.098 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.505/1.505, allocations: 222.9 MB / 241.7 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2072/0.2072, allocations: 38.03 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 59.89 kB / 457.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.3508, allocations: 58.06 MB / 0.5036 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.007428/0.3582, allocations: 6.247 MB / 0.5097 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003015/0.3613, allocations: 1.429 MB / 0.5111 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005719/0.3619, allocations: 22.72 kB / 0.5111 GB, free: 2.098 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005925/0.3625, allocations: 138.6 kB / 0.5113 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001166/0.3637, allocations: 414.8 kB / 0.5117 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006416/0.3644, allocations: 191.4 kB / 0.5118 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001446/0.3659, allocations: 1.087 MB / 0.5129 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004687/0.3663, allocations: 356.2 kB / 0.5132 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007968/0.3671, allocations: 463.1 kB / 0.5137 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001006/0.3682, allocations: 0.5216 MB / 0.5142 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001539/0.3683, allocations: 68.88 kB / 0.5143 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002118/0.3686, allocations: 64.97 kB / 0.5143 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003777/0.3689, allocations: 312.6 kB / 0.5146 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004946/0.3694, allocations: 365.3 kB / 0.515 GB, free: 356 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001113/0.3706, allocations: 0.8454 MB / 0.5158 GB, free: 32 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3706, allocations: 0 / 0.5158 GB, free: 32 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3706, allocations: 0 / 0.5158 GB, free: 32 kB / 382.1 MB Notification: Performance of Transformations before backend: time 2.072e-05/0.3706, allocations: 1.375 kB / 0.5158 GB, free: 32 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00274/0.3734, allocations: 1.021 MB / 0.5168 GB, free: 15.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.3734, allocations: 18.41 kB / 0.5168 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001502/0.3736, allocations: 96.5 kB / 0.5169 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001748/0.3738, allocations: 75.62 kB / 0.517 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.3751, allocations: 0.5806 MB / 0.5175 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002154/0.3753, allocations: 122.3 kB / 0.5177 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.3755, allocations: 55.8 kB / 0.5177 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001797/0.3773, allocations: 0.7732 MB / 0.5185 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.3773, allocations: 1.344 kB / 0.5185 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.627e-05/0.3774, allocations: 20.19 kB / 0.5185 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001453/0.3775, allocations: 35.91 kB / 0.5185 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/0.3792, allocations: 0.7238 MB / 0.5192 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004444/0.3837, allocations: 2.606 MB / 0.5218 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001799/0.3855, allocations: 0.802 MB / 0.5226 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007445/0.3863, allocations: 397.2 kB / 0.5229 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.958e-05/0.3863, allocations: 4.562 kB / 0.5229 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/0.3864, allocations: 42.31 kB / 0.523 GB, free: 12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 3.075e-06/0.3864, allocations: 0 / 0.523 GB, free: 12 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.004993/0.3914, allocations: 2.15 MB / 0.5251 GB, free: 10.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.423e-05/0.3915, allocations: 83.47 kB / 0.5252 GB, free: 10.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005701/0.3921, allocations: 405.3 kB / 0.5256 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.211e-05/0.3922, allocations: 36.7 kB / 0.5256 GB, free: 10.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.3924, allocations: 299.3 kB / 0.5259 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001987/0.3926, allocations: 184.1 kB / 0.526 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.3928, allocations: 100.1 kB / 0.5261 GB, free: 10.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002174/0.3931, allocations: 358.9 kB / 0.5265 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006388/0.3937, allocations: 275.5 kB / 0.5267 GB, free: 9.617 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007204/0.3944, allocations: 380.9 kB / 0.5271 GB, free: 9.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.3958, allocations: 0.6538 MB / 0.5278 GB, free: 9.086 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.3958, allocations: 1.031 kB / 0.5278 GB, free: 9.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001798/0.3976, allocations: 0.8731 MB / 0.5286 GB, free: 8.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.3976, allocations: 7.047 kB / 0.5286 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.3977, allocations: 3.75 kB / 0.5286 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003269/0.398, allocations: 85.66 kB / 0.5287 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/0.3996, allocations: 302.4 kB / 0.529 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007188/0.4068, allocations: 6.54 MB / 0.5354 GB, free: 2.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006545/0.4075, allocations: 39.39 kB / 0.5354 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.256e-05/0.4076, allocations: 19.38 kB / 0.5354 GB, free: 2.449 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000488/0.4081, allocations: 238.6 kB / 0.5357 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.4082, allocations: 55.59 kB / 0.5357 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001735/0.41, allocations: 0.826 MB / 0.5365 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.41, allocations: 6.406 kB / 0.5365 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.41, allocations: 5.094 kB / 0.5365 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.41, allocations: 3.984 kB / 0.5365 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003307/0.4133, allocations: 1.676 MB / 0.5382 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.4134, allocations: 1.5 kB / 0.5382 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00176/0.4151, allocations: 323.2 kB / 0.5385 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003263/0.4155, allocations: 91.38 kB / 0.5386 GB, free: 368 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.825e-05/0.4156, allocations: 9.656 kB / 0.5386 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002962/0.4185, allocations: 3.161 MB / 0.5417 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.4186, allocations: 2.156 kB / 0.5417 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/0.4211, allocations: 1.332 MB / 0.543 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002257/0.4213, allocations: 123.6 kB / 0.5431 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.107e-05/0.4214, allocations: 14.41 kB / 0.5431 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000389/0.4218, allocations: 42.25 kB / 0.5431 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.422, allocations: 48.11 kB / 0.5432 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.625e-05/0.422, allocations: 11.81 kB / 0.5432 GB, free: 12.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000352/0.4224, allocations: 281.8 kB / 0.5435 GB, free: 12 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4224, allocations: 0 / 0.5435 GB, free: 12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007535/0.4231, allocations: 147.4 kB / 0.5436 GB, free: 11.98 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003125/0.4263, allocations: 1.887 MB / 0.5454 GB, free: 10.58 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003083/0.4294, allocations: 1.077 MB / 0.5465 GB, free: 9.969 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.4294, allocations: 5.312 kB / 0.5465 GB, free: 9.965 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002201/0.4316, allocations: 0.8073 MB / 0.5473 GB, free: 9.465 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.4327, allocations: 140.1 kB / 0.5474 GB, free: 9.395 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/0.4436, allocations: 5.875 MB / 0.5532 GB, free: 4.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00069/0.4443, allocations: 0.9408 MB / 0.5541 GB, free: 3.051 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004746/0.4448, allocations: 128.7 kB / 0.5542 GB, free: 2.922 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003265/0.4452, allocations: 199.4 kB / 0.5544 GB, free: 2.727 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4452, allocations: 4 kB / 0.5544 GB, free: 2.723 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04828/0.4935, allocations: 13 MB / 0.5671 GB, free: 5.91 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/13.93, allocations: 5.703 kB / 0.5671 GB, free: 5.906 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)