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.001044/0.001044, allocations: 110.9 kB / 16.63 MB, free: 6.953 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.001186/0.001186, allocations: 193.8 kB / 17.55 MB, free: 6.043 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.373/1.373, allocations: 222.9 MB / 241.2 MB, free: 13.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.245/0.245, allocations: 38.01 MB / 329.4 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 64.03 kB / 398.3 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1054, allocations: 58.05 MB / 456.3 MB, free: 8.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.009622/0.1151, allocations: 7.346 MB / 463.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003929/0.1191, allocations: 1.78 MB / 465.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001022/0.1201, allocations: 51.69 kB / 465.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006188/0.1208, allocations: 123.2 kB / 465.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001261/0.1221, allocations: 350.5 kB / 466 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006867/0.1228, allocations: 179.8 kB / 466.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001346/0.1241, allocations: 0.9189 MB / 467.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000431/0.1246, allocations: 266.7 kB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007943/0.1254, allocations: 410.2 kB / 467.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000882/0.1263, allocations: 498.3 kB / 468.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000122/0.1264, allocations: 48 kB / 468.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001966/0.1266, allocations: 48 kB / 468.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002909/0.1269, allocations: 251.3 kB / 468.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004452/0.1274, allocations: 326.3 kB / 468.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007713/0.1282, allocations: 0.6657 MB / 469.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1282, allocations: 4 kB / 469.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1282, allocations: 0 / 469.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.671e-05/0.1282, allocations: 0 / 469.5 MB, free: 11.09 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.00209/0.1303, allocations: 0.9485 MB / 470.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.1304, allocations: 11.89 kB / 470.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.1305, allocations: 64.19 kB / 470.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009391/0.1314, allocations: 0.518 MB / 471.1 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.551e-05/0.1315, allocations: 45.12 kB / 471.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.867e-05/0.1316, allocations: 51.98 kB / 471.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.1326, allocations: 0.6171 MB / 471.8 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.1326, allocations: 7.938 kB / 471.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.251e-05/0.1327, allocations: 24 kB / 471.8 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001183/0.1328, allocations: 32.97 kB / 471.9 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008412/0.1337, allocations: 0.5074 MB / 472.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003058/0.1367, allocations: 2.234 MB / 474.6 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008323/0.1376, allocations: 0.4893 MB / 475.1 MB, free: 5.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006024/0.1382, allocations: 344.5 kB / 475.4 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-05/0.1383, allocations: 7.984 kB / 475.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.1383, allocations: 46.5 kB / 475.5 MB, free: 4.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.924e-06/0.1383, allocations: 0 / 475.5 MB, free: 4.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.00341/0.1417, allocations: 1.741 MB / 477.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.1418, allocations: 89.17 kB / 477.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004273/0.1422, allocations: 417.9 kB / 477.7 MB, free: 2.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.456e-05/0.1423, allocations: 33.7 kB / 477.7 MB, free: 2.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001874/0.1425, allocations: 300.4 kB / 478 MB, free: 2.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.1426, allocations: 157.7 kB / 478.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.1428, allocations: 98.16 kB / 478.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1429, allocations: 358.8 kB / 478.6 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002838/0.1432, allocations: 189 kB / 478.8 MB, free: 1.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003575/0.1436, allocations: 311.6 kB / 479.1 MB, free: 1.07 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.002583/0.1462, allocations: 1.241 MB / 480.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.1462, allocations: 0 / 480.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001155/0.1473, allocations: 0.7106 MB / 481.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.1474, allocations: 10.19 kB / 481.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.1474, allocations: 4 kB / 481.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003952/0.1478, allocations: 141 kB / 481.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004425/0.1482, allocations: 111.8 kB / 481.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002929/0.1512, allocations: 2.622 MB / 484 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003193/0.1515, allocations: 24.14 kB / 484 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.609e-05/0.1516, allocations: 27.92 kB / 484 MB, free: 11.96 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.0003134/0.1519, allocations: 235 kB / 484.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.181e-05/0.152, allocations: 55.28 kB / 484.3 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001127/0.1531, allocations: 0.6464 MB / 484.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1531, allocations: 8 kB / 485 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.1531, allocations: 3.984 kB / 485 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.1531, allocations: 11.94 kB / 485 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/0.1554, allocations: 1.373 MB / 486.3 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.1554, allocations: 0 / 486.3 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003549/0.1557, allocations: 75.98 kB / 486.4 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004077/0.1562, allocations: 152.8 kB / 486.6 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.342e-05/0.1562, allocations: 12 kB / 486.6 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002718/0.1589, allocations: 2.626 MB / 489.2 MB, free: 6.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.1589, allocations: 4.109 kB / 489.2 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.1603, allocations: 0.9885 MB / 490.2 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.1604, allocations: 120.6 kB / 490.3 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.59e-05/0.1605, allocations: 16 kB / 490.3 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002532/0.1608, allocations: 19.92 kB / 490.3 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.549e-05/0.1608, allocations: 43.88 kB / 490.4 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/0.1609, allocations: 16 kB / 490.4 MB, free: 5.273 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002956/0.1612, allocations: 287.1 kB / 490.7 MB, free: 4.992 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1612, allocations: 0 / 490.7 MB, free: 4.992 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006124/0.1618, allocations: 144 kB / 490.8 MB, free: 4.852 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.0001371/0.162, allocations: 111.2 kB / 490.9 MB, free: 4.734 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.1632, allocations: 0.7191 MB / 491.7 MB, free: 4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.1632, allocations: 4.25 kB / 491.7 MB, free: 3.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006386/0.1639, allocations: 434.7 kB / 492.1 MB, free: 3.559 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007279/0.1646, allocations: 141 kB / 492.2 MB, free: 3.422 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002087/0.1667, allocations: 1.542 MB / 493.8 MB, free: 1.832 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000457/0.1672, allocations: 0.9331 MB / 494.7 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003421/0.1675, allocations: 108.7 kB / 494.8 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.1676, allocations: 39.42 kB / 494.8 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1676, allocations: 0 / 494.8 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of Templates: time 0.01174/0.1794, allocations: 6.777 MB / 0.4899 GB, free: 10.01 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)