Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002111/0.002111, allocations: 185.6 kB / 8.354 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.651/1.651, allocations: 194.4 MB / 203.1 MB, free: 13.01 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00165/0.00165, allocations: 108.8 kB / 248.1 MB, free: 28 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1665/0.1665, allocations: 37.92 MB / 330.9 MB, free: 2.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.221e-05/1.222e-05, allocations: 0 / 390.4 MB, free: 7.094 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2428, allocations: 53.23 MB / 443.6 MB, free: 17.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3589/0.6017, allocations: 109.1 MB / 0.5398 GB, free: 38.16 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.602, allocations: 94.22 kB / 0.5398 GB, free: 38.16 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/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.0/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.07559/0.6776, allocations: 28.76 MB / 0.5679 GB, free: 31.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.6777, allocations: 3.938 kB / 0.5679 GB, free: 31.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.563e-05/0.6777, allocations: 19.53 kB / 0.568 GB, free: 31.91 MB / 378.7 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.004175/0.6819, allocations: 1.653 MB / 0.5696 GB, free: 30.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.682, allocations: 11.72 kB / 0.5696 GB, free: 30.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001029/0.683, allocations: 180.2 kB / 0.5698 GB, free: 30.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004553/0.6876, allocations: 1.62 MB / 0.5713 GB, free: 30.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005407/0.6882, allocations: 491.9 kB / 0.5718 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002486/0.6884, allocations: 66.11 kB / 0.5719 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002236/0.6907, allocations: 1.613 MB / 0.5734 GB, free: 29.42 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002188/0.6929, allocations: 1.668 MB / 0.5751 GB, free: 28.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/0.6929, allocations: 7.844 kB / 0.5751 GB, free: 28.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/0.6931, allocations: 0 / 0.5751 GB, free: 28.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001493/0.6932, allocations: 91.77 kB / 0.5752 GB, free: 28.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008398/0.7016, allocations: 5.686 MB / 0.5807 GB, free: 26.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.7032, allocations: 1.224 MB / 0.5819 GB, free: 25.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009685/0.7042, allocations: 0.9133 MB / 0.5828 GB, free: 25.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001345/0.7043, allocations: 13.83 kB / 0.5828 GB, free: 25.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001254/0.7056, allocations: 1.105 MB / 0.5839 GB, free: 25.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=120): time 3.968e-06/0.7056, allocations: 0 / 0.5839 GB, free: 25.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.01356/0.7192, allocations: 6.206 MB / 0.59 GB, free: 23.72 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.66e-05/0.7193, allocations: 104.9 kB / 0.5901 GB, free: 23.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004949/0.7198, allocations: 364.6 kB / 0.5904 GB, free: 23.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002985/0.7202, allocations: 35.73 kB / 0.5904 GB, free: 23.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002542/0.7204, allocations: 399.7 kB / 0.5908 GB, free: 23.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003279/0.7208, allocations: 397.3 kB / 0.5912 GB, free: 22.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.1e-05/0.7209, allocations: 0 / 0.5912 GB, free: 22.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.721, allocations: 389.8 kB / 0.5916 GB, free: 22.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000988/0.722, allocations: 0.8592 MB / 0.5924 GB, free: 22.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009709/0.7229, allocations: 1.011 MB / 0.5934 GB, free: 22.22 MB / 378.7 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.01159/0.7345, allocations: 4.322 MB / 0.5976 GB, free: 18.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/0.7346, allocations: 0 / 0.5976 GB, free: 18.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.01118/0.7458, allocations: 4.613 MB / 0.6021 GB, free: 14.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/0.7459, allocations: 65.11 kB / 0.6022 GB, free: 14.61 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/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.002002/0.748, allocations: 0.9839 MB / 0.6031 GB, free: 13.9 MB / 378.7 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated