Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001968/0.001967, allocations: 177.1 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.613/1.613, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001/0.001001, allocations: 90.3 kB / 270.3 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1895/0.1895, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003613, allocations: 16 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1059, allocations: 56.33 MB / 479.1 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.007185/0.1131, allocations: 6.878 MB / 485.9 MB, free: 11.12 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005061/0.1182, allocations: 2.195 MB / 488.1 MB, free: 8.918 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001217/0.1195, allocations: 51.69 kB / 488.2 MB, free: 8.867 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007058/0.1202, allocations: 170.7 kB / 488.4 MB, free: 8.699 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001397/0.1217, allocations: 469.6 kB / 488.8 MB, free: 8.238 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.1228, allocations: 363.3 kB / 489.2 MB, free: 7.883 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001167/0.124, allocations: 1.196 MB / 490.4 MB, free: 6.684 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.1251, allocations: 0.6367 MB / 491 MB, free: 6.012 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005327/0.1256, allocations: 382.3 kB / 491.4 MB, free: 5.637 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007072/0.1263, allocations: 0.5492 MB / 491.9 MB, free: 5.086 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.26e-05/0.1264, allocations: 36 kB / 492 MB, free: 5.051 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004637/0.1269, allocations: 203.6 kB / 492.2 MB, free: 4.852 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003036/0.1272, allocations: 331.1 kB / 492.5 MB, free: 4.527 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.1274, allocations: 161.3 kB / 492.6 MB, free: 4.363 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007649/0.1281, allocations: 0.7677 MB / 493.4 MB, free: 3.594 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1282, allocations: 0 / 493.4 MB, free: 3.594 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1282, allocations: 0 / 493.4 MB, free: 3.594 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.1282, allocations: 0 / 493.4 MB, free: 3.594 MB / 330.7 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.001966/0.1301, allocations: 0.9843 MB / 494.4 MB, free: 2.559 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.1302, allocations: 12.03 kB / 494.4 MB, free: 2.547 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007007/0.1309, allocations: 126.9 kB / 494.5 MB, free: 2.422 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009547/0.1319, allocations: 0.5639 MB / 495.1 MB, free: 1.816 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.179e-05/0.1319, allocations: 45.31 kB / 495.1 MB, free: 1.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000166/0.1321, allocations: 79.97 kB / 495.2 MB, free: 1.691 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.1336, allocations: 1.01 MB / 496.2 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.239e-05/0.1337, allocations: 3.938 kB / 496.2 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.291e-05/0.1337, allocations: 31.98 kB / 496.3 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002026/0.1339, allocations: 69.95 kB / 496.3 MB, free: 0.543 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.1354, allocations: 0.972 MB / 497.3 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00486/0.1403, allocations: 3.28 MB / 0.4888 GB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.1415, allocations: 0.6828 MB / 0.4895 GB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006114/0.1421, allocations: 419.5 kB / 0.4899 GB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.652e-05/0.1422, allocations: 13.5 kB / 0.4899 GB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/0.1422, allocations: 39.12 kB / 0.49 GB, free: 10.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=73): time 3.176e-06/0.1422, allocations: 7.875 kB / 0.49 GB, free: 10.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=75): time 0.003893/0.1461, allocations: 2.428 MB / 0.4923 GB, free: 8.457 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.532e-05/0.1462, allocations: 89.62 kB / 0.4924 GB, free: 8.352 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004666/0.1467, allocations: 441.8 kB / 0.4928 GB, free: 7.914 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.383e-05/0.1467, allocations: 37.7 kB / 0.4929 GB, free: 7.871 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/0.1469, allocations: 367.6 kB / 0.4932 GB, free: 7.504 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.1471, allocations: 256.3 kB / 0.4935 GB, free: 7.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.1472, allocations: 15.98 kB / 0.4935 GB, free: 7.234 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.1473, allocations: 374.8 kB / 0.4938 GB, free: 6.859 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004826/0.1478, allocations: 337.8 kB / 0.4942 GB, free: 6.531 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006075/0.1484, allocations: 0.5146 MB / 0.4947 GB, free: 5.945 MB / 346.7 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.003993/0.1524, allocations: 1.392 MB / 0.496 GB, free: 4.535 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.1525, allocations: 4 kB / 0.496 GB, free: 4.531 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001747/0.1542, allocations: 1.086 MB / 0.4971 GB, free: 3.418 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.1543, allocations: 15.95 kB / 0.4971 GB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.1543, allocations: 8 kB / 0.4971 GB, free: 3.395 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001594/0.1544, allocations: 44.77 kB / 0.4972 GB, free: 3.348 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007595/0.1552, allocations: 191.8 kB / 0.4973 GB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001223/0.1564, allocations: 1.39 MB / 0.4987 GB, free: 1.633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000482/0.1569, allocations: 35.97 kB / 0.4987 GB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.607e-05/0.157, allocations: 32 kB / 0.4988 GB, free: 1.566 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004131/0.1574, allocations: 285.5 kB / 0.499 GB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.1576, allocations: 67.19 kB / 0.4991 GB, free: 1.211 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.1591, allocations: 0.9544 MB / 0.5 GB, free: 232 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.509e-05/0.1591, allocations: 12 kB / 0.5 GB, free: 220 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.1591, allocations: 3.938 kB / 0.5001 GB, free: 216 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.1592, allocations: 11.98 kB / 0.5001 GB, free: 204 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003299/0.1625, allocations: 2.005 MB / 0.502 GB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.1625, allocations: 4 kB / 0.502 GB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006556/0.1632, allocations: 155.8 kB / 0.5022 GB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001156/0.1633, allocations: 37.38 kB / 0.5022 GB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.848e-05/0.1633, allocations: 27.98 kB / 0.5022 GB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001071/0.1644, allocations: 1.386 MB / 0.5036 GB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.1644, allocations: 8.062 kB / 0.5036 GB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001959/0.1664, allocations: 1.514 MB / 0.5051 GB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.1666, allocations: 136.4 kB / 0.5052 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.1667, allocations: 20 kB / 0.5052 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003812/0.1671, allocations: 39.97 kB / 0.5053 GB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.199e-05/0.1672, allocations: 60.38 kB / 0.5053 GB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.121e-05/0.1673, allocations: 24 kB / 0.5053 GB, free: 10.4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003337/0.1676, allocations: 291.1 kB / 0.5056 GB, free: 10.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1676, allocations: 4 kB / 0.5056 GB, free: 10.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006925/0.1683, allocations: 195.9 kB / 0.5058 GB, free: 9.918 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002872/0.1686, allocations: 143 kB / 0.5059 GB, free: 9.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001469/0.1701, allocations: 0.9381 MB / 0.5069 GB, free: 8.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1701, allocations: 3.938 kB / 0.5069 GB, free: 8.816 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006878/0.1708, allocations: 0.5154 MB / 0.5074 GB, free: 8.289 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008316/0.1716, allocations: 137.8 kB / 0.5075 GB, free: 8.152 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003396/0.175, allocations: 2.438 MB / 0.5099 GB, free: 5.621 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006577/0.1757, allocations: 1.009 MB / 0.5109 GB, free: 4.586 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002176/0.1759, allocations: 67.36 kB / 0.5109 GB, free: 4.52 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.1759, allocations: 0 / 0.5109 GB, free: 4.52 MB / 362.7 MB Notification: Performance of Templates: time 0.2015/0.3774, allocations: 11.87 MB / 0.5225 GB, free: 50.04 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)