Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00135/0.00135, 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.755/1.755, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0007864/0.0007864, allocations: 106.2 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.177/0.177, allocations: 38.07 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.0003518, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09986/0.1002, allocations: 56.34 MB / 479.1 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007313/0.1076, allocations: 6.511 MB / 485.6 MB, free: 11.49 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003364/0.111, allocations: 1.759 MB / 487.3 MB, free: 9.727 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007751/0.1118, allocations: 51.62 kB / 487.4 MB, free: 9.676 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006338/0.1124, allocations: 154.9 kB / 487.5 MB, free: 9.523 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001238/0.1137, allocations: 445.7 kB / 488 MB, free: 9.086 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007673/0.1145, allocations: 231.6 kB / 488.2 MB, free: 8.859 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001309/0.1158, allocations: 1.09 MB / 489.3 MB, free: 7.766 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000366/0.1162, allocations: 184.3 kB / 489.5 MB, free: 7.586 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007144/0.1169, allocations: 342.4 kB / 489.8 MB, free: 7.25 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008144/0.1177, allocations: 450.5 kB / 490.2 MB, free: 6.809 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.1178, allocations: 28 kB / 490.3 MB, free: 6.781 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001632/0.118, allocations: 24 kB / 490.3 MB, free: 6.758 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003124/0.1183, allocations: 243.3 kB / 490.5 MB, free: 6.52 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.1186, allocations: 133.4 kB / 490.7 MB, free: 6.383 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005343/0.1191, allocations: 0.4987 MB / 491.2 MB, free: 5.883 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1191, allocations: 0 / 491.2 MB, free: 5.883 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1191, allocations: 0 / 491.2 MB, free: 5.883 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.346e-05/0.1192, allocations: 0 / 491.2 MB, free: 5.883 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001838/0.121, allocations: 0.8511 MB / 492 MB, free: 4.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.1211, allocations: 12.03 kB / 492 MB, free: 4.969 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.1213, allocations: 67.2 kB / 492.1 MB, free: 4.902 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/0.1223, allocations: 0.5054 MB / 492.6 MB, free: 4.355 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.15e-05/0.1223, allocations: 37 kB / 492.6 MB, free: 4.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.307e-05/0.1224, allocations: 55.84 kB / 492.7 MB, free: 4.266 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.1235, allocations: 0.621 MB / 493.3 MB, free: 3.605 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.1235, allocations: 7.922 kB / 493.3 MB, free: 3.598 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.216e-05/0.1236, allocations: 20 kB / 493.3 MB, free: 3.578 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001137/0.1237, allocations: 40.92 kB / 493.4 MB, free: 3.539 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009156/0.1246, allocations: 0.5034 MB / 493.9 MB, free: 3.035 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003395/0.128, allocations: 2.23 MB / 496.1 MB, free: 0.707 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008428/0.1289, allocations: 497 kB / 496.6 MB, free: 208 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000619/0.1295, allocations: 341.6 kB / 496.9 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/0.1296, allocations: 4 kB / 496.9 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.1296, allocations: 38.56 kB / 497 MB, free: 15.81 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.964e-06/0.1296, allocations: 0 / 497 MB, free: 15.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.003391/0.133, allocations: 1.781 MB / 498.8 MB, free: 13.96 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.1331, allocations: 81.11 kB / 498.8 MB, free: 13.86 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004301/0.1335, allocations: 410.1 kB / 499.2 MB, free: 13.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/0.1336, allocations: 33.7 kB / 499.3 MB, free: 13.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001896/0.1338, allocations: 304.3 kB / 499.6 MB, free: 13.11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.1339, allocations: 165.6 kB / 499.7 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.299e-05/0.1339, allocations: 8 kB / 499.7 MB, free: 12.94 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1341, allocations: 362.8 kB / 0.4884 GB, free: 12.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.1344, allocations: 185 kB / 0.4885 GB, free: 12.39 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00035/0.1347, allocations: 307.6 kB / 0.4888 GB, free: 12.05 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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002043/0.1368, allocations: 0.7685 MB / 0.4896 GB, free: 11.26 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1368, allocations: 0 / 0.4896 GB, free: 11.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001135/0.1379, allocations: 0.7028 MB / 0.4903 GB, free: 10.55 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.138, allocations: 8 kB / 0.4903 GB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.138, allocations: 4 kB / 0.4903 GB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003978/0.1384, allocations: 137.2 kB / 0.4904 GB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004426/0.1388, allocations: 111.8 kB / 0.4905 GB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002689/0.1415, allocations: 2.365 MB / 0.4928 GB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003063/0.1419, allocations: 32.02 kB / 0.4929 GB, free: 7.758 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.323e-05/0.1419, allocations: 27.95 kB / 0.4929 GB, free: 7.73 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[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 (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 {(3,77.8%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003052/0.1422, allocations: 225.6 kB / 0.4931 GB, free: 7.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.623e-05/0.1423, allocations: 47.44 kB / 0.4931 GB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001105/0.1434, allocations: 0.6581 MB / 0.4938 GB, free: 6.785 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.064e-06/0.1434, allocations: 7.953 kB / 0.4938 GB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1435, allocations: 4 kB / 0.4938 GB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.1435, allocations: 3.984 kB / 0.4938 GB, free: 6.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0021/0.1456, allocations: 1.373 MB / 0.4951 GB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.1456, allocations: 0 / 0.4951 GB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000342/0.1459, allocations: 80.05 kB / 0.4952 GB, free: 5.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000445/0.1464, allocations: 148.9 kB / 0.4954 GB, free: 5.082 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.83e-05/0.1464, allocations: 16.08 kB / 0.4954 GB, free: 5.066 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002591/0.149, allocations: 2.373 MB / 0.4977 GB, free: 2.559 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1491, allocations: 0 / 0.4977 GB, free: 2.559 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.1505, allocations: 0.9693 MB / 0.4986 GB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.1506, allocations: 128.4 kB / 0.4988 GB, free: 1.406 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.617e-05/0.1507, allocations: 12.03 kB / 0.4988 GB, free: 1.395 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002513/0.151, allocations: 20.08 kB / 0.4988 GB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.394e-05/0.151, allocations: 39.89 kB / 0.4988 GB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.1511, allocations: 16 kB / 0.4989 GB, free: 1.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003218/0.1514, allocations: 291.1 kB / 0.4991 GB, free: 1.035 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1514, allocations: 0 / 0.4991 GB, free: 1.035 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005816/0.152, allocations: 148 kB / 0.4993 GB, free: 0.8906 MB / 346.7 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 (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 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001622/0.1522, allocations: 115.1 kB / 0.4994 GB, free: 0.7695 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.1533, allocations: 0.6521 MB / 0.5 GB, free: 104 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.1534, allocations: 0 / 0.5 GB, free: 104 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006866/0.1541, allocations: 435.6 kB / 0.5004 GB, free: 15.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007762/0.1548, allocations: 133.8 kB / 0.5006 GB, free: 15.53 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.1571, allocations: 1.657 MB / 0.5022 GB, free: 13.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006448/0.1578, allocations: 0.9334 MB / 0.5031 GB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.1579, allocations: 39.44 kB / 0.5031 GB, free: 12.82 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.1579, allocations: 0 / 0.5031 GB, free: 12.82 MB / 362.7 MB Notification: Performance of Templates: time 0.0128/0.1707, allocations: 9.096 MB / 0.512 GB, free: 3.723 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)