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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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: 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.001126/0.001125, allocations: 108.4 kB / 16.51 MB, free: 6.715 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.001144/0.001144, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.377/1.377, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1813/0.1813, allocations: 38.03 MB / 329.3 MB, free: 8.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 66.05 kB / 398.1 MB, free: 34.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1089, allocations: 58.07 MB / 456.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007747/0.1167, allocations: 7.334 MB / 463.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002746/0.1195, allocations: 1.796 MB / 465.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003437/0.1198, allocations: 47.69 kB / 465.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004134/0.1203, allocations: 119.1 kB / 465.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006239/0.1209, allocations: 362.4 kB / 465.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003869/0.1213, allocations: 163.8 kB / 466 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001215/0.1225, allocations: 1.391 MB / 467.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003428/0.1229, allocations: 225.5 kB / 467.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005337/0.1234, allocations: 350.3 kB / 467.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006219/0.1241, allocations: 494.3 kB / 468.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.394e-05/0.1242, allocations: 32 kB / 468.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.1243, allocations: 32 kB / 468.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003017/0.1246, allocations: 247.3 kB / 468.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003115/0.1249, allocations: 306.3 kB / 469 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005755/0.1255, allocations: 0.65 MB / 469.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.1255, allocations: 4 kB / 469.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.02e-07/0.1255, allocations: 0 / 469.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1255, allocations: 0 / 469.7 MB, free: 10.94 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001793/0.1273, allocations: 0.9525 MB / 470.6 MB, free: 9.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.1274, allocations: 8.031 kB / 470.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.1275, allocations: 64.19 kB / 470.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008515/0.1284, allocations: 0.5141 MB / 471.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.587e-05/0.1284, allocations: 53 kB / 471.2 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.861e-05/0.1285, allocations: 51.98 kB / 471.3 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/0.1296, allocations: 0.621 MB / 471.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.1297, allocations: 4 kB / 471.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-05/0.1297, allocations: 24 kB / 471.9 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/0.1298, allocations: 32.97 kB / 472 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008399/0.1307, allocations: 0.5035 MB / 472.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003185/0.1339, allocations: 2.226 MB / 474.7 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.135, allocations: 0.4949 MB / 475.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006905/0.1357, allocations: 341.6 kB / 475.5 MB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.518e-05/0.1358, allocations: 7.938 kB / 475.5 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.122e-05/0.1358, allocations: 46.55 kB / 475.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 5.991e-06/0.1359, allocations: 0 / 475.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.004216/0.1401, allocations: 1.745 MB / 477.3 MB, free: 2.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.575e-05/0.1402, allocations: 89.17 kB / 477.4 MB, free: 2.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004573/0.1406, allocations: 417.9 kB / 477.8 MB, free: 2.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.1407, allocations: 33.7 kB / 477.9 MB, free: 2.375 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.1409, allocations: 304.3 kB / 478.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.141, allocations: 153.8 kB / 478.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.1411, allocations: 102.1 kB / 478.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1413, allocations: 358.8 kB / 478.8 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000285/0.1416, allocations: 185 kB / 478.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003682/0.142, allocations: 315.5 kB / 479.2 MB, free: 0.918 MB / 350.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.002738/0.1447, allocations: 1.241 MB / 480.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1447, allocations: 0 / 480.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001125/0.1459, allocations: 0.7067 MB / 481.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.1459, allocations: 8 kB / 481.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.1459, allocations: 4 kB / 481.2 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003931/0.1463, allocations: 141 kB / 481.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004982/0.1468, allocations: 107.9 kB / 481.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002844/0.1497, allocations: 2.377 MB / 483.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003859/0.1501, allocations: 23.98 kB / 483.8 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.1501, allocations: 20 kB / 483.9 MB, free: 12.06 MB / 366.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.0003922/0.1505, allocations: 239.9 kB / 484.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.644e-05/0.1506, allocations: 51.34 kB / 484.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001149/0.1518, allocations: 0.6542 MB / 484.8 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.351e-06/0.1518, allocations: 4 kB / 484.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1518, allocations: 8 kB / 484.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.1518, allocations: 3.984 kB / 484.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002228/0.1541, allocations: 1.373 MB / 486.2 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.1541, allocations: 0 / 486.2 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000343/0.1544, allocations: 75.89 kB / 486.3 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004154/0.1549, allocations: 156.8 kB / 486.4 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.673e-05/0.1549, allocations: 19.98 kB / 486.4 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002584/0.1575, allocations: 2.365 MB / 488.8 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1575, allocations: 0 / 488.8 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001442/0.159, allocations: 0.9846 MB / 489.8 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.1591, allocations: 124.5 kB / 489.9 MB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.633e-05/0.1592, allocations: 11.98 kB / 489.9 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00025/0.1594, allocations: 23.98 kB / 489.9 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.659e-05/0.1595, allocations: 39.89 kB / 490 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.193e-05/0.1596, allocations: 19.92 kB / 490 MB, free: 5.625 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003131/0.1599, allocations: 291.1 kB / 490.3 MB, free: 5.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1599, allocations: 0 / 490.3 MB, free: 5.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006425/0.1605, allocations: 148 kB / 490.4 MB, free: 5.195 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * 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 simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 Backend phase and start with SimCode phase: time 0.0001459/0.1607, allocations: 111.2 kB / 490.5 MB, free: 5.078 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.1618, allocations: 0.6486 MB / 491.2 MB, free: 4.414 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1619, allocations: 96 / 491.2 MB, free: 4.414 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006478/0.1625, allocations: 443.2 kB / 491.6 MB, free: 3.969 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007466/0.1633, allocations: 120.1 kB / 491.7 MB, free: 3.855 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.1655, allocations: 1.553 MB / 493.3 MB, free: 2.254 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005382/0.1661, allocations: 0.9256 MB / 494.2 MB, free: 1.301 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003209/0.1664, allocations: 108.7 kB / 494.3 MB, free: 1.195 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.1665, allocations: 43.42 kB / 494.4 MB, free: 1.152 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1665, allocations: 3.938 kB / 494.4 MB, free: 1.148 MB / 366.1 MB Notification: Performance of Templates: time 0.01146/0.178, allocations: 6.488 MB / 0.4891 GB, free: 10.71 MB / 382.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)