Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 114.2 kB / 17.75 MB, free: 5.215 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.00113/0.00113, allocations: 181.4 kB / 18.67 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.318/1.318, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1742/0.1742, allocations: 37.99 MB / 309.9 MB, free: 5.957 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 75.88 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0927/0.09415, allocations: 55.23 MB / 487.8 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007551/0.1017, allocations: 6.095 MB / 493.9 MB, free: 2.23 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002561/0.1043, allocations: 1.458 MB / 495.3 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003962/0.1047, allocations: 23.88 kB / 495.4 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005484/0.1053, allocations: 146.9 kB / 495.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009438/0.1063, allocations: 382 kB / 495.9 MB, free: 228 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005025/0.1068, allocations: 199.5 kB / 496.1 MB, free: 28 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008707/0.1077, allocations: 0.9187 MB / 497 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003596/0.108, allocations: 274.7 kB / 497.3 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004643/0.1085, allocations: 410.3 kB / 497.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006148/0.1091, allocations: 478.4 kB / 498.1 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.106e-05/0.1092, allocations: 48 kB / 498.2 MB, free: 13.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.1093, allocations: 48 kB / 498.2 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002573/0.1096, allocations: 259.3 kB / 498.5 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003069/0.1099, allocations: 322.4 kB / 498.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006519/0.1106, allocations: 0.6734 MB / 499.5 MB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.1106, allocations: 0 / 499.5 MB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1106, allocations: 0 / 499.5 MB, free: 12.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.826e-06/0.1106, allocations: 0 / 499.5 MB, free: 12.62 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001637/0.1122, allocations: 0.9486 MB / 0.4887 GB, free: 11.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.1123, allocations: 11.89 kB / 0.4887 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.1124, allocations: 72.09 kB / 0.4888 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009941/0.1134, allocations: 0.557 MB / 0.4893 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.089e-05/0.1135, allocations: 49.06 kB / 0.4893 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.775e-05/0.1135, allocations: 48 kB / 0.4894 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008589/0.1144, allocations: 0.621 MB / 0.49 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.1144, allocations: 4 kB / 0.49 GB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.715e-05/0.1145, allocations: 20 kB / 0.49 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001032/0.1146, allocations: 36.97 kB / 0.4901 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007541/0.1154, allocations: 0.5035 MB / 0.4906 GB, free: 9.633 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002958/0.1183, allocations: 2.21 MB / 0.4927 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008177/0.1192, allocations: 0.4933 MB / 0.4932 GB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00064/0.1198, allocations: 350.2 kB / 0.4935 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.1199, allocations: 7.953 kB / 0.4935 GB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.1199, allocations: 38.56 kB / 0.4936 GB, free: 6.414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=45): time 2.194e-06/0.1199, allocations: 0 / 0.4936 GB, free: 6.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.003169/0.1231, allocations: 1.742 MB / 0.4953 GB, free: 4.594 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.1231, allocations: 88.98 kB / 0.4954 GB, free: 4.488 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004056/0.1236, allocations: 421.8 kB / 0.4958 GB, free: 4.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.658e-05/0.1236, allocations: 37.7 kB / 0.4958 GB, free: 4.023 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001964/0.1238, allocations: 296.5 kB / 0.4961 GB, free: 3.727 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.1239, allocations: 165.6 kB / 0.4962 GB, free: 3.562 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.1241, allocations: 98.19 kB / 0.4963 GB, free: 3.461 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.1242, allocations: 366.8 kB / 0.4967 GB, free: 3.094 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002895/0.1245, allocations: 185 kB / 0.4969 GB, free: 2.914 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000347/0.1249, allocations: 307.7 kB / 0.4971 GB, free: 2.562 MB / 382.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002488/0.1274, allocations: 1.239 MB / 0.4984 GB, free: 1.258 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.1274, allocations: 4 kB / 0.4984 GB, free: 1.254 MB / 382.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001093/0.1285, allocations: 0.7027 MB / 0.499 GB, free: 0.543 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.1285, allocations: 4.469 kB / 0.4991 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.1285, allocations: 8 kB / 0.4991 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003726/0.1289, allocations: 140.8 kB / 0.4992 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004586/0.1294, allocations: 111.8 kB / 0.4993 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002809/0.1322, allocations: 2.614 MB / 0.5019 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/0.1325, allocations: 24.03 kB / 0.5019 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.522e-05/0.1325, allocations: 23.98 kB / 0.5019 GB, free: 13.48 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002696/0.1328, allocations: 221.7 kB / 0.5021 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.919e-05/0.1329, allocations: 55.28 kB / 0.5022 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.134, allocations: 0.6503 MB / 0.5028 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.134, allocations: 3.984 kB / 0.5028 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.134, allocations: 0 / 0.5028 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.1341, allocations: 132.4 kB / 0.5029 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.702e-05/0.1342, allocations: 11.94 kB / 0.5029 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.1344, allocations: 15.98 kB / 0.503 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.277e-05/0.1345, allocations: 40.47 kB / 0.503 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001481/0.136, allocations: 0.8508 MB / 0.5038 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001115/0.1371, allocations: 1.005 MB / 0.5048 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002836/0.1374, allocations: 227.3 kB / 0.505 GB, free: 10.21 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002777/0.1377, allocations: 299.2 kB / 0.5053 GB, free: 9.926 MB / 398.1 MB Notification: Performance of Backend: time 4.5e-07/0.1377, allocations: 0 / 0.5053 GB, free: 9.926 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001208/0.1389, allocations: 0.5701 MB / 0.5059 GB, free: 9.332 MB / 398.1 MB Notification: Performance of SimCode: time 0.00211/0.141, allocations: 1.74 MB / 0.5076 GB, free: 7.543 MB / 398.1 MB Notification: Performance of Templates: time 0.01264/0.1537, allocations: 7.191 MB / 0.5146 GB, free: 348 kB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)