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/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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009487/0.0009487, allocations: 88.34 kB / 16.31 MB, free: 6.461 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.001165/0.001165, allocations: 181.3 kB / 17.21 MB, free: 6.328 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.387/1.387, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1746/0.1746, allocations: 38.1 MB / 330.4 MB, free: 8.621 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003467, allocations: 12 kB / 400.2 MB, free: 34.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.112, allocations: 59.18 MB / 459.4 MB, free: 7.277 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.007647/0.1197, allocations: 7.33 MB / 466.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004766/0.1245, allocations: 2.615 MB / 469.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006485/0.1252, allocations: 55.62 kB / 469.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000602/0.1258, allocations: 186.6 kB / 469.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00148/0.1273, allocations: 0.63 MB / 470.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001262/0.1286, allocations: 451.3 kB / 470.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002355/0.1309, allocations: 2.058 MB / 472.7 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001498/0.1324, allocations: 0.9406 MB / 473.6 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001189/0.1336, allocations: 0.6384 MB / 474.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001415/0.1351, allocations: 0.8883 MB / 475.1 MB, free: 7.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001445/0.1352, allocations: 64 kB / 475.2 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001152/0.1364, allocations: 0.5693 MB / 475.8 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007036/0.1371, allocations: 0.5495 MB / 476.3 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003696/0.1375, allocations: 229.2 kB / 476.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001647/0.1391, allocations: 1.563 MB / 478.1 MB, free: 4.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1391, allocations: 0 / 478.1 MB, free: 4.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1392, allocations: 4 kB / 478.1 MB, free: 4.426 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.1392, allocations: 0 / 478.1 MB, free: 4.426 MB / 350.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.003999/0.1432, allocations: 1.69 MB / 479.8 MB, free: 2.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.762e-05/0.1433, allocations: 8.031 kB / 479.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002905/0.1436, allocations: 176.5 kB / 480 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008067/0.1444, allocations: 174.5 kB / 480.1 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001647/0.146, allocations: 0.8765 MB / 481 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006468/0.1467, allocations: 0.5256 MB / 481.5 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002495/0.147, allocations: 99.98 kB / 481.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003936/0.1509, allocations: 2.145 MB / 483.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/0.1509, allocations: 3.984 kB / 483.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001249/0.1511, allocations: 36 kB / 483.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002038/0.1513, allocations: 93.88 kB / 483.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004667/0.156, allocations: 2.428 MB / 486.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009631/0.1656, allocations: 5.832 MB / 492.2 MB, free: 5.941 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00393/0.1696, allocations: 1.745 MB / 493.9 MB, free: 4.176 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002311/0.1719, allocations: 1.215 MB / 495.1 MB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.354e-05/0.172, allocations: 16.98 kB / 495.2 MB, free: 2.938 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00287/0.1749, allocations: 1.425 MB / 496.6 MB, free: 1.492 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 2.885e-06/0.1749, allocations: 0 / 496.6 MB, free: 1.492 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01921/0.1941, allocations: 7.924 MB / 0.4927 GB, free: 9.457 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.411e-05/0.1943, allocations: 102.1 kB / 0.4928 GB, free: 9.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006456/0.1949, allocations: 0.5027 MB / 0.4933 GB, free: 8.828 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.195, allocations: 53.7 kB / 0.4933 GB, free: 8.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003466/0.1954, allocations: 408.1 kB / 0.4937 GB, free: 8.363 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003553/0.1957, allocations: 394.5 kB / 0.4941 GB, free: 7.973 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.114e-05/0.1958, allocations: 20 kB / 0.4941 GB, free: 7.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002448/0.1961, allocations: 398.8 kB / 0.4945 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001894/0.198, allocations: 1.025 MB / 0.4955 GB, free: 6.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002028/0.2, allocations: 1.216 MB / 0.4967 GB, free: 5.254 MB / 382.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.009902/0.2099, allocations: 4.39 MB / 0.501 GB, free: 0.832 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.21, allocations: 0 / 0.501 GB, free: 0.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.2595/0.4695, allocations: 4.139 MB / 0.505 GB, free: 56.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000131/0.4697, allocations: 61.38 kB / 0.5051 GB, free: 56.12 MB / 382.1 MB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002733/0.4724, allocations: 1.11 MB / 0.5061 GB, free: 56.07 MB / 382.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated