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.001018/0.001018, allocations: 96.36 kB / 16.3 MB, free: 5.656 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.001226/0.001226, allocations: 183.2 kB / 17.2 MB, free: 5.59 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.25/1.25, allocations: 223.2 MB / 241.1 MB, free: 424 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1638/0.1638, allocations: 38.09 MB / 330.3 MB, free: 9 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003084/0.0003085, allocations: 11.98 kB / 400.1 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1104, allocations: 59.17 MB / 459.2 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.007735/0.1182, allocations: 7.023 MB / 466.3 MB, free: 320 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004442/0.1227, allocations: 2.639 MB / 468.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005954/0.1233, allocations: 51.62 kB / 468.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005197/0.1238, allocations: 178.9 kB / 469.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001283/0.1251, allocations: 0.5024 MB / 469.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.1263, allocations: 451.1 kB / 470.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001152/0.1274, allocations: 1.049 MB / 471.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001247/0.1287, allocations: 0.9336 MB / 472 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007358/0.1294, allocations: 0.5804 MB / 472.6 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008269/0.1303, allocations: 0.6897 MB / 473.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001341/0.1304, allocations: 68 kB / 473.4 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000808/0.1312, allocations: 0.5148 MB / 473.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004777/0.1317, allocations: 0.5145 MB / 474.4 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002288/0.1319, allocations: 237.1 kB / 474.6 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001276/0.1332, allocations: 1.559 MB / 476.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.1332, allocations: 0 / 476.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1333, allocations: 0 / 476.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.1333, allocations: 0 / 476.2 MB, free: 6.301 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.003525/0.1368, allocations: 1.694 MB / 477.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.1368, allocations: 12.03 kB / 477.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002305/0.1371, allocations: 172.5 kB / 478.1 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007583/0.1379, allocations: 186.5 kB / 478.3 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001859/0.1397, allocations: 0.8726 MB / 479.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006345/0.1404, allocations: 0.5218 MB / 479.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002595/0.1406, allocations: 104 kB / 479.7 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003803/0.1445, allocations: 2.133 MB / 481.9 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/0.1445, allocations: 8 kB / 481.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001254/0.1446, allocations: 36 kB / 481.9 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002028/0.1448, allocations: 93.94 kB / 482 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004698/0.1495, allocations: 2.416 MB / 484.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009044/0.1586, allocations: 5.832 MB / 490.3 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00397/0.1626, allocations: 1.749 MB / 492 MB, free: 6.055 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.633e-05/0.1627, allocations: 13.05 kB / 492 MB, free: 6.043 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002661/0.1654, allocations: 1.406 MB / 493.4 MB, free: 4.617 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.477e-06/0.1654, allocations: 0 / 493.4 MB, free: 4.617 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.02772/0.1931, allocations: 10.53 MB / 0.4922 GB, free: 9.938 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.1933, allocations: 102.1 kB / 0.4922 GB, free: 9.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007807/0.1941, allocations: 0.5105 MB / 0.4927 GB, free: 9.301 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003283/0.1944, allocations: 53.69 kB / 0.4928 GB, free: 9.242 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003314/0.1947, allocations: 412.1 kB / 0.4932 GB, free: 8.832 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003887/0.1951, allocations: 390.5 kB / 0.4936 GB, free: 8.445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.642e-05/0.1952, allocations: 24 kB / 0.4936 GB, free: 8.422 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.1954, allocations: 390.8 kB / 0.494 GB, free: 8.031 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001941/0.1974, allocations: 1.025 MB / 0.495 GB, free: 7.004 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002021/0.1994, allocations: 1.213 MB / 0.4961 GB, free: 5.734 MB / 382.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendEquation.mo:2449:7-2449:76:writable] Error: Internal error function solveEquation failed 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.01088/0.2103, allocations: 4.61 MB / 0.5006 GB, free: 1.082 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.2103, allocations: 0 / 0.5006 GB, free: 1.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.2388/0.4491, allocations: 5.164 MB / 0.5057 GB, free: 55.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.4493, allocations: 60.75 kB / 0.5057 GB, free: 55.89 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.002551/0.4519, allocations: 1.106 MB / 0.5068 GB, free: 55.83 MB / 382.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated