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 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.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.001143/0.001143, allocations: 105.3 kB / 16.92 MB, free: 6.145 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.001031/0.001031, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.361/1.361, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.176/0.176, allocations: 38.03 MB / 329.7 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 65.64 kB / 398.8 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1086, allocations: 58.06 MB / 456.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.009556/0.1182, allocations: 6.484 MB / 463.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003753/0.122, allocations: 1.873 MB / 465.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004302/0.1225, allocations: 27.88 kB / 465.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001303/0.1238, allocations: 441.1 kB / 465.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008635/0.1247, allocations: 421.8 kB / 466.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008862/0.1256, allocations: 347.3 kB / 466.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.1266, allocations: 1.028 MB / 467.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007058/0.1273, allocations: 0.4965 MB / 467.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006066/0.1279, allocations: 466.1 kB / 468.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000752/0.1287, allocations: 0.5685 MB / 469 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.1288, allocations: 68 kB / 469 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005677/0.1294, allocations: 271.6 kB / 469.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003527/0.1297, allocations: 375 kB / 469.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000436/0.1302, allocations: 421.9 kB / 470.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001128/0.1313, allocations: 1.02 MB / 471.1 MB, free: 9.734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1313, allocations: 7.922 kB / 471.1 MB, free: 9.727 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1314, allocations: 0 / 471.1 MB, free: 9.727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.1314, allocations: 0 / 471.1 MB, free: 9.727 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002124/0.1335, allocations: 1.109 MB / 472.2 MB, free: 8.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.1336, allocations: 12.03 kB / 472.2 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007382/0.1343, allocations: 135.8 kB / 472.4 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009564/0.1353, allocations: 0.5727 MB / 472.9 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.016e-05/0.1353, allocations: 49.69 kB / 473 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/0.1355, allocations: 76.05 kB / 473.1 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.1369, allocations: 1.014 MB / 474.1 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.137, allocations: 3.938 kB / 474.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.353e-05/0.1371, allocations: 28 kB / 474.1 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002093/0.1373, allocations: 69.95 kB / 474.2 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001602/0.1389, allocations: 0.9758 MB / 475.1 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005024/0.1439, allocations: 3.276 MB / 478.4 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.145, allocations: 0.6853 MB / 479.1 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005891/0.1456, allocations: 430 kB / 479.5 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.874e-05/0.1457, allocations: 8.547 kB / 479.5 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.541e-05/0.1458, allocations: 43.12 kB / 479.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 3.326e-06/0.1458, allocations: 0 / 479.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.003973/0.1497, allocations: 2.428 MB / 482 MB, free: 14.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/0.1498, allocations: 89.61 kB / 482.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004824/0.1503, allocations: 441.8 kB / 482.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.75e-05/0.1504, allocations: 37.7 kB / 482.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002568/0.1506, allocations: 359.5 kB / 482.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002048/0.1508, allocations: 260.2 kB / 483.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002135/0.1511, allocations: 150.6 kB / 483.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1512, allocations: 374.7 kB / 483.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000506/0.1517, allocations: 345.8 kB / 484 MB, free: 12.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006136/0.1524, allocations: 0.5185 MB / 484.5 MB, free: 11.79 MB / 366.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.004961/0.1573, allocations: 2.253 MB / 486.8 MB, free: 9.445 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1573, allocations: 0 / 486.8 MB, free: 9.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001657/0.159, allocations: 1.098 MB / 487.9 MB, free: 8.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.159, allocations: 8 kB / 487.9 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.1591, allocations: 4 kB / 487.9 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001788/0.1592, allocations: 49.33 kB / 487.9 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007538/0.16, allocations: 191.6 kB / 488.1 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/0.1613, allocations: 1.496 MB / 489.6 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004807/0.1618, allocations: 35.97 kB / 489.7 MB, free: 6.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.014e-05/0.1619, allocations: 32 kB / 489.7 MB, free: 6.363 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[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.0004364/0.1623, allocations: 277.6 kB / 490 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001394/0.1625, allocations: 67.17 kB / 490 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001527/0.164, allocations: 0.9699 MB / 491 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.512e-05/0.1641, allocations: 15.94 kB / 491 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1641, allocations: 8 kB / 491 MB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.1641, allocations: 11.92 kB / 491 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003201/0.1673, allocations: 1.997 MB / 493 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/0.1673, allocations: 8 kB / 493 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006721/0.168, allocations: 151.7 kB / 493.2 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001134/0.1681, allocations: 37.41 kB / 493.2 MB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.426e-05/0.1682, allocations: 27.98 kB / 493.3 MB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/0.1694, allocations: 1.492 MB / 494.7 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/0.1694, allocations: 11.94 kB / 494.8 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001973/0.1714, allocations: 1.525 MB / 496.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.1716, allocations: 144.4 kB / 496.4 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.789e-05/0.1716, allocations: 19.98 kB / 496.4 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003709/0.172, allocations: 35.97 kB / 496.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.999e-05/0.1721, allocations: 56.38 kB / 496.5 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-05/0.1722, allocations: 27.98 kB / 496.6 MB, free: 15.06 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000351/0.1726, allocations: 303.1 kB / 496.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1726, allocations: 0 / 496.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007104/0.1733, allocations: 184 kB / 497 MB, free: 14.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (75): * Single equations (assignments): 71 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003184/0.1736, allocations: 155 kB / 497.2 MB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00191/0.1755, allocations: 1.184 MB / 498.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.1755, allocations: 1.438 kB / 498.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000692/0.1762, allocations: 0.5216 MB / 498.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008498/0.1771, allocations: 157.3 kB / 499 MB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003128/0.1802, allocations: 1.978 MB / 0.4893 GB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006343/0.1809, allocations: 1.013 MB / 0.4903 GB, free: 9.438 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006047/0.1815, allocations: 213.4 kB / 0.4905 GB, free: 9.227 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001667/0.1817, allocations: 55.42 kB / 0.4905 GB, free: 9.172 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1817, allocations: 3.938 kB / 0.4905 GB, free: 9.168 MB / 382.1 MB Notification: Performance of Templates: time 0.0148/0.1965, allocations: 7.941 MB / 0.4983 GB, free: 1.281 MB / 382.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)