Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001341/0.001341, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.765/1.765, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001165/0.001166, allocations: 73.23 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2359/0.2359, allocations: 37.99 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.461e-05/2.473e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1212, allocations: 56.33 MB / 467 MB, free: 6.473 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4804/0.6016, allocations: 114.1 MB / 0.5675 GB, free: 12.66 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000302/0.602, allocations: 93.08 kB / 0.5676 GB, free: 12.57 MB / 411.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:17:7-17:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:20:7-20:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. Notification: Performance of FrontEnd - DAE generated: time 0.08358/0.6856, allocations: 28.77 MB / 0.5957 GB, free: 15.52 MB / 443.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.6857, allocations: 0 / 0.5957 GB, free: 15.52 MB / 443.1 MB Notification: Performance of Transformations before backend: time 5.528e-05/0.6857, allocations: 20 kB / 0.5957 GB, free: 15.5 MB / 443.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 264 * Number of variables: 264 Notification: Performance of Generate backend data structure: time 0.003953/0.6897, allocations: 1.654 MB / 0.5973 GB, free: 13.76 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.6897, allocations: 12.03 kB / 0.5973 GB, free: 13.75 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008126/0.6906, allocations: 174.6 kB / 0.5975 GB, free: 13.58 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004428/0.695, allocations: 1.624 MB / 0.5991 GB, free: 11.91 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006574/0.6957, allocations: 498.3 kB / 0.5995 GB, free: 11.35 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002118/0.6959, allocations: 59.94 kB / 0.5996 GB, free: 11.29 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002552/0.6985, allocations: 1.617 MB / 0.6012 GB, free: 9.676 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002587/0.7011, allocations: 1.663 MB / 0.6028 GB, free: 7.949 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.197e-05/0.7011, allocations: 7.938 kB / 0.6028 GB, free: 7.941 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001265/0.7012, allocations: 11.98 kB / 0.6028 GB, free: 7.93 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001539/0.7014, allocations: 77.95 kB / 0.6029 GB, free: 7.855 MB / 443.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0093/0.7107, allocations: 5.684 MB / 0.6084 GB, free: 2.059 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001814/0.7125, allocations: 1.223 MB / 0.6096 GB, free: 0.8164 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/0.7138, allocations: 0.9032 MB / 0.6105 GB, free: 15.91 MB / 459.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.302e-05/0.7139, allocations: 12.78 kB / 0.6105 GB, free: 15.9 MB / 459.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00159/0.7155, allocations: 1.112 MB / 0.6116 GB, free: 14.77 MB / 459.1 MB Notification: Performance of pre-optimization done (n=120): time 6.903e-06/0.7155, allocations: 0 / 0.6116 GB, free: 14.77 MB / 459.1 MB Notification: Performance of matching and sorting (n=122): time 0.01463/0.7302, allocations: 6.208 MB / 0.6177 GB, free: 8.5 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.876e-05/0.7303, allocations: 106.4 kB / 0.6178 GB, free: 8.379 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000518/0.7308, allocations: 361.1 kB / 0.6181 GB, free: 8.02 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001821/0.731, allocations: 45.69 kB / 0.6182 GB, free: 7.969 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003684/0.7314, allocations: 400.3 kB / 0.6185 GB, free: 7.57 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003896/0.7318, allocations: 386.2 kB / 0.6189 GB, free: 7.188 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.259e-05/0.7319, allocations: 4 kB / 0.6189 GB, free: 7.184 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0002152/0.7321, allocations: 386.8 kB / 0.6193 GB, free: 6.797 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001201/0.7333, allocations: 0.8577 MB / 0.6201 GB, free: 5.941 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001306/0.7346, allocations: 1.017 MB / 0.6211 GB, free: 4.875 MB / 459.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.0126/0.7472, allocations: 4.319 MB / 0.6253 GB, free: 0.5508 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/0.7473, allocations: 4 kB / 0.6253 GB, free: 0.5469 MB / 459.1 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.01277/0.76, allocations: 4.618 MB / 0.6298 GB, free: 11.92 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001289/0.7602, allocations: 53.69 kB / 0.6299 GB, free: 11.86 MB / 475.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/AC3ph/Impedances.mo:125:7-125:29:writable] Error: Initialization problem is structurally singular, error found sorting equations 112: $DER.ind.i[3] = 0.0; 60: 1.732050807568877 * $DER.ind.i[3] = 0.0; for variables meterDC.v(137), inverter.inverter.iDC1(92), inverter.inverter.v[2](84) Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002325/0.7626, allocations: 0.9862 MB / 0.6309 GB, free: 10.88 MB / 475.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated