Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 106.3 kB / 17.74 MB, free: 5.336 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.001133/0.001133, allocations: 185.4 kB / 18.67 MB, free: 4.418 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.297/1.297, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1772/0.1772, allocations: 37.99 MB / 309.9 MB, free: 5.953 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.001397/0.001397, allocations: 67.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08727/0.08868, allocations: 55.25 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.00815/0.09685, allocations: 6.489 MB / 494.3 MB, free: 1.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00354/0.1004, allocations: 1.909 MB / 496.2 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004842/0.1009, allocations: 27.88 kB / 496.2 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.1023, allocations: 445.8 kB / 496.6 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009816/0.1033, allocations: 421.8 kB / 497.1 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008539/0.1042, allocations: 343.3 kB / 497.4 MB, free: 14.69 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009859/0.1052, allocations: 1.032 MB / 498.4 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006925/0.1059, allocations: 0.4964 MB / 498.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005508/0.1065, allocations: 470.1 kB / 499.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006941/0.1072, allocations: 0.5763 MB / 500 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.1073, allocations: 64 kB / 0.4883 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000482/0.1078, allocations: 255.6 kB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003197/0.1081, allocations: 379 kB / 0.4889 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000392/0.1085, allocations: 421.9 kB / 0.4893 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.1095, allocations: 1.04 MB / 0.4903 GB, free: 9.977 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.574e-06/0.1095, allocations: 0 / 0.4903 GB, free: 9.977 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1095, allocations: 0 / 0.4903 GB, free: 9.977 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.1096, allocations: 0 / 0.4903 GB, free: 9.977 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.00204/0.1116, allocations: 1.125 MB / 0.4914 GB, free: 8.797 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.1116, allocations: 11.89 kB / 0.4914 GB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000716/0.1124, allocations: 127.8 kB / 0.4916 GB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/0.1135, allocations: 0.6118 MB / 0.4922 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.544e-05/0.1136, allocations: 49.67 kB / 0.4922 GB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001647/0.1137, allocations: 76.06 kB / 0.4923 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.1152, allocations: 1.01 MB / 0.4933 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.489e-05/0.1152, allocations: 4 kB / 0.4933 GB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.792e-05/0.1153, allocations: 27.92 kB / 0.4933 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002131/0.1155, allocations: 73.95 kB / 0.4934 GB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.117, allocations: 0.9758 MB / 0.4943 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004671/0.1216, allocations: 3.264 MB / 0.4975 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.1227, allocations: 0.6829 MB / 0.4982 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006556/0.1234, allocations: 427.4 kB / 0.4986 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.341e-05/0.1235, allocations: 9.438 kB / 0.4986 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.1235, allocations: 43.12 kB / 0.4986 GB, free: 1.188 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 2.796e-06/0.1235, allocations: 0 / 0.4986 GB, free: 1.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=75): time 0.003866/0.1274, allocations: 2.427 MB / 0.501 GB, free: 14.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.1275, allocations: 89.66 kB / 0.5011 GB, free: 14.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004895/0.128, allocations: 437.8 kB / 0.5015 GB, free: 14.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.778e-05/0.128, allocations: 37.7 kB / 0.5015 GB, free: 14.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/0.1283, allocations: 367.5 kB / 0.5019 GB, free: 13.71 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000191/0.1285, allocations: 256.3 kB / 0.5021 GB, free: 13.46 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/0.1287, allocations: 146.6 kB / 0.5023 GB, free: 13.31 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.1289, allocations: 382.7 kB / 0.5026 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004923/0.1294, allocations: 341.8 kB / 0.503 GB, free: 12.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006081/0.13, allocations: 0.5262 MB / 0.5035 GB, free: 11.99 MB / 398.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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005018/0.135, allocations: 2.241 MB / 0.5057 GB, free: 9.668 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.135, allocations: 0 / 0.5057 GB, free: 9.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001661/0.1367, allocations: 1.102 MB / 0.5067 GB, free: 8.535 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.1367, allocations: 8 kB / 0.5067 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.1367, allocations: 12.06 kB / 0.5068 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001475/0.1369, allocations: 40.83 kB / 0.5068 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007707/0.1377, allocations: 187.7 kB / 0.507 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.1389, allocations: 1.504 MB / 0.5084 GB, free: 6.641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004651/0.1394, allocations: 39.95 kB / 0.5085 GB, free: 6.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.4e-05/0.1395, allocations: 28 kB / 0.5085 GB, free: 6.574 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (95): * Single equations (assignments): 92 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004182/0.1399, allocations: 285.5 kB / 0.5088 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.1401, allocations: 67.14 kB / 0.5088 GB, free: 6.219 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.1416, allocations: 0.9622 MB / 0.5098 GB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.1416, allocations: 3.984 kB / 0.5098 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1416, allocations: 0 / 0.5098 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.1417, allocations: 132.3 kB / 0.5099 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.126e-05/0.1418, allocations: 23.98 kB / 0.5099 GB, free: 5.051 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003296/0.1422, allocations: 23.97 kB / 0.51 GB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.235e-05/0.1422, allocations: 40.5 kB / 0.51 GB, free: 4.988 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001949/0.1442, allocations: 1.102 MB / 0.5111 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001875/0.1461, allocations: 1.551 MB / 0.5126 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005267/0.1466, allocations: 408.4 kB / 0.513 GB, free: 1.902 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003299/0.147, allocations: 299.1 kB / 0.5133 GB, free: 1.613 MB / 398.1 MB Notification: Performance of Backend: time 4.71e-07/0.147, allocations: 0 / 0.5133 GB, free: 1.613 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.1487, allocations: 0.8299 MB / 0.5141 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of SimCode: time 0.002525/0.1513, allocations: 2.079 MB / 0.5161 GB, free: 14.63 MB / 414.1 MB Notification: Performance of Templates: time 0.01665/0.1679, allocations: 10.03 MB / 0.5259 GB, free: 4.582 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)