Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.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.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_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.001152/0.001152, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.001204/0.001205, allocations: 200 kB / 18.01 MB, free: 5.066 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.371/1.371, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1829/0.1829, allocations: 38.03 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 63.89 kB / 457.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3337, allocations: 58.06 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Rectifier): time 0.009759/0.3435, allocations: 6.765 MB / 0.5102 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004749/0.3483, allocations: 2.146 MB / 0.5123 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008694/0.3492, allocations: 26.72 kB / 0.5123 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00168/0.3509, allocations: 0.5114 MB / 0.5128 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001927/0.3528, allocations: 0.5541 MB / 0.5134 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.354, allocations: 373.6 kB / 0.5137 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001825/0.3559, allocations: 1.306 MB / 0.515 GB, free: 15.92 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001158/0.3571, allocations: 0.7276 MB / 0.5157 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001148/0.3582, allocations: 0.5508 MB / 0.5163 GB, free: 15.37 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001386/0.3596, allocations: 0.6877 MB / 0.5169 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003493/0.36, allocations: 99.72 kB / 0.517 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00144/0.3614, allocations: 0.5194 MB / 0.5175 GB, free: 15 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008326/0.3623, allocations: 467.3 kB / 0.518 GB, free: 14.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00115/0.3634, allocations: 0.5152 MB / 0.5185 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002532/0.366, allocations: 1.475 MB / 0.5199 GB, free: 13.99 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.366, allocations: 0 / 0.5199 GB, free: 13.99 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.366, allocations: 0.9688 kB / 0.5199 GB, free: 13.99 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.43e-05/0.3661, allocations: 0 / 0.5199 GB, free: 13.99 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.004132/0.3702, allocations: 1.371 MB / 0.5213 GB, free: 13.15 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.3703, allocations: 13.83 kB / 0.5213 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003972/0.3707, allocations: 147.7 kB / 0.5214 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009911/0.3717, allocations: 145.6 kB / 0.5216 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001669/0.3734, allocations: 0.7002 MB / 0.5222 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002552/0.3736, allocations: 174.2 kB / 0.5224 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000286/0.3739, allocations: 96.22 kB / 0.5225 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002751/0.3767, allocations: 1.358 MB / 0.5238 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.448e-05/0.3767, allocations: 6.25 kB / 0.5238 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/0.3769, allocations: 36.55 kB / 0.5239 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001837/0.377, allocations: 65.47 kB / 0.5239 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002761/0.3798, allocations: 1.294 MB / 0.5252 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00828/0.3881, allocations: 4.917 MB / 0.53 GB, free: 8.035 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002415/0.3906, allocations: 1.13 MB / 0.5311 GB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001187/0.3918, allocations: 0.6206 MB / 0.5317 GB, free: 7.078 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.229e-05/0.3919, allocations: 14.33 kB / 0.5317 GB, free: 7.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.3919, allocations: 39.25 kB / 0.5318 GB, free: 7.027 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 3.526e-06/0.3919, allocations: 0 / 0.5318 GB, free: 7.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.006551/0.3985, allocations: 3.193 MB / 0.5349 GB, free: 5.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.3985, allocations: 84.33 kB / 0.535 GB, free: 5.031 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006482/0.3992, allocations: 474 kB / 0.5354 GB, free: 4.738 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.463e-05/0.3993, allocations: 39.89 kB / 0.5354 GB, free: 4.695 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002706/0.3996, allocations: 402.4 kB / 0.5358 GB, free: 4.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002325/0.3998, allocations: 269.3 kB / 0.5361 GB, free: 4.105 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002684/0.4001, allocations: 153.3 kB / 0.5362 GB, free: 4.016 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.4003, allocations: 376.4 kB / 0.5366 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000993/0.4013, allocations: 0.4972 MB / 0.5371 GB, free: 3.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001142/0.4024, allocations: 0.6777 MB / 0.5377 GB, free: 2.934 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002141/0.4046, allocations: 1.227 MB / 0.5389 GB, free: 2.176 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.4046, allocations: 1.375 kB / 0.5389 GB, free: 2.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.004651/0.4092, allocations: 1.978 MB / 0.5409 GB, free: 1.113 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.4093, allocations: 11.44 kB / 0.5409 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004001/0.4133, allocations: 1.71 MB / 0.5426 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001877/0.4152, allocations: 0.6534 MB / 0.5432 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007972/0.416, allocations: 151.8 kB / 0.5433 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01205/0.4281, allocations: 7.424 MB / 0.5506 GB, free: 7.543 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000902/0.429, allocations: 75.91 kB / 0.5507 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/0.4292, allocations: 28 kB / 0.5507 GB, free: 7.441 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (76): * Single equations (assignments): 73 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0006267/0.4298, allocations: 309.5 kB / 0.551 GB, free: 7.129 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002027/0.43, allocations: 63.61 kB / 0.551 GB, free: 7.066 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002412/0.4324, allocations: 1.305 MB / 0.5523 GB, free: 5.734 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.317e-05/0.4325, allocations: 16 kB / 0.5523 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.4325, allocations: 0 / 0.5523 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.098e-06/0.4325, allocations: 3.984 kB / 0.5523 GB, free: 5.715 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004135/0.4366, allocations: 2.409 MB / 0.5547 GB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.4367, allocations: 0 / 0.5547 GB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002774/0.4394, allocations: 499.4 kB / 0.5552 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001084/0.4396, allocations: 40.83 kB / 0.5552 GB, free: 2.684 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.041e-05/0.4397, allocations: 16 kB / 0.5552 GB, free: 2.668 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001147/0.4408, allocations: 1.626 MB / 0.5568 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4408, allocations: 0 / 0.5568 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003377/0.4442, allocations: 2.009 MB / 0.5588 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002067/0.4444, allocations: 144.7 kB / 0.5589 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/0.4446, allocations: 20 kB / 0.5589 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005707/0.4452, allocations: 67.86 kB / 0.559 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/0.4453, allocations: 60.47 kB / 0.559 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.289e-05/0.4454, allocations: 23.92 kB / 0.5591 GB, free: 14.51 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003705/0.4458, allocations: 322.8 kB / 0.5594 GB, free: 14.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4458, allocations: 0 / 0.5594 GB, free: 14.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001094/0.4469, allocations: 236 kB / 0.5596 GB, free: 13.97 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],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 (67): * Single equations (assignments): 64 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003599/0.4505, allocations: 2.584 MB / 0.5621 GB, free: 11.33 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002974/0.4535, allocations: 1.57 MB / 0.5637 GB, free: 9.73 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.4535, allocations: 448 / 0.5637 GB, free: 9.73 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002788/0.4563, allocations: 1.005 MB / 0.5646 GB, free: 8.711 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.4573, allocations: 167.3 kB / 0.5648 GB, free: 8.559 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01754/0.4749, allocations: 9.442 MB / 0.574 GB, free: 14.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008275/0.4758, allocations: 1.075 MB / 0.5751 GB, free: 13.69 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000655/0.4764, allocations: 213.5 kB / 0.5753 GB, free: 13.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004811/0.4769, allocations: 283.3 kB / 0.5755 GB, free: 13.2 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4769, allocations: 0 / 0.5755 GB, free: 13.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04821/0.5251, allocations: 20.27 MB / 0.5953 GB, free: 9.125 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/13.14, allocations: 11.81 kB / 0.5954 GB, free: 9.117 MB / 462.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Rectifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe 2>&1)