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.001981/0.001981, allocations: 173.6 kB / 16.76 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.585/2.585, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.001043/0.001043, allocations: 85.44 kB / 271.3 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.416/0.416, allocations: 38.07 MB / 357.6 MB, free: 1.742 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007062/0.0007063, allocations: 12 kB / 423.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5535/0.5542, allocations: 56.32 MB / 480.3 MB, free: 9.223 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2525/0.8068, allocations: 101.1 MB / 0.5678 GB, free: 1.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004795/0.8074, allocations: 99.88 kB / 0.5679 GB, free: 1.133 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08463/0.892, allocations: 15.29 MB / 0.5828 GB, free: 1.656 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.447e-06/0.8921, allocations: 3.938 kB / 0.5828 GB, free: 1.652 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.556e-05/0.8922, allocations: 16 kB / 0.5828 GB, free: 1.637 MB / 410.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.003153/0.8953, allocations: 0.8759 MB / 0.5837 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.311e-05/0.8954, allocations: 8.031 kB / 0.5837 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002548/0.8957, allocations: 72.09 kB / 0.5837 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003104/0.8988, allocations: 0.7404 MB / 0.5845 GB, free: 15.85 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.973e-05/0.8989, allocations: 41.38 kB / 0.5845 GB, free: 15.81 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000168/0.8991, allocations: 52.38 kB / 0.5845 GB, free: 15.76 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001925/0.9011, allocations: 0.6302 MB / 0.5852 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.163e-05/0.9011, allocations: 11.81 kB / 0.5852 GB, free: 15.07 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.131e-05/0.9012, allocations: 20 kB / 0.5852 GB, free: 15.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.702e-05/0.9013, allocations: 12 kB / 0.5852 GB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.9028, allocations: 0.5074 MB / 0.5857 GB, free: 14.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006215/0.9091, allocations: 2.245 MB / 0.5879 GB, free: 12.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.9107, allocations: 485 kB / 0.5884 GB, free: 11.71 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001201/0.9119, allocations: 337.6 kB / 0.5887 GB, free: 11.37 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.92e-05/0.912, allocations: 8 kB / 0.5887 GB, free: 11.36 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.199e-05/0.912, allocations: 42.55 kB / 0.5887 GB, free: 11.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 5.931e-06/0.9121, allocations: 0 / 0.5887 GB, free: 11.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=47): time 0.006489/0.9186, allocations: 1.718 MB / 0.5904 GB, free: 9.523 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.089e-05/0.9187, allocations: 85.11 kB / 0.5905 GB, free: 9.422 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008866/0.9196, allocations: 417.8 kB / 0.5909 GB, free: 9.008 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.291e-05/0.9197, allocations: 37.7 kB / 0.5909 GB, free: 8.965 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000316/0.92, allocations: 284.5 kB / 0.5912 GB, free: 8.684 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002346/0.9203, allocations: 169.6 kB / 0.5914 GB, free: 8.516 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.936e-05/0.9203, allocations: 12 kB / 0.5914 GB, free: 8.504 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003154/0.9207, allocations: 370.7 kB / 0.5917 GB, free: 8.133 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005537/0.9212, allocations: 181 kB / 0.5919 GB, free: 7.957 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006916/0.922, allocations: 303.6 kB / 0.5922 GB, free: 7.609 MB / 426.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.005133/0.9271, allocations: 1.226 MB / 0.5934 GB, free: 6.312 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.9272, allocations: 0 / 0.5934 GB, free: 6.312 MB / 426.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002262/0.9294, allocations: 0.6914 MB / 0.5941 GB, free: 5.613 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.041e-05/0.9295, allocations: 14.28 kB / 0.5941 GB, free: 5.602 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.9295, allocations: 8.031 kB / 0.5941 GB, free: 5.594 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007066/0.9302, allocations: 136.8 kB / 0.5942 GB, free: 5.457 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009083/0.9312, allocations: 107.8 kB / 0.5943 GB, free: 5.352 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005057/0.9363, allocations: 2.35 MB / 0.5966 GB, free: 2.867 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006424/0.9369, allocations: 27.97 kB / 0.5966 GB, free: 2.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.339e-05/0.937, allocations: 23.98 kB / 0.5967 GB, free: 2.816 MB / 426.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.0006794/0.9377, allocations: 217.7 kB / 0.5969 GB, free: 2.594 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.9379, allocations: 51.34 kB / 0.5969 GB, free: 2.543 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001882/0.9398, allocations: 0.6541 MB / 0.5975 GB, free: 1.875 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.9398, allocations: 4 kB / 0.5976 GB, free: 1.871 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.9398, allocations: 4 kB / 0.5976 GB, free: 1.867 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.9398, allocations: 0 / 0.5976 GB, free: 1.867 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003518/0.9434, allocations: 1.349 MB / 0.5989 GB, free: 440 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.9434, allocations: 4.156 kB / 0.5989 GB, free: 436 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005673/0.944, allocations: 75.89 kB / 0.5989 GB, free: 360 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006862/0.9447, allocations: 148.7 kB / 0.5991 GB, free: 208 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.499e-05/0.9448, allocations: 16.09 kB / 0.5991 GB, free: 192 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004742/0.9496, allocations: 2.33 MB / 0.6014 GB, free: 13.73 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.9496, allocations: 3.938 kB / 0.6014 GB, free: 13.72 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002677/0.9523, allocations: 0.9687 MB / 0.6023 GB, free: 12.72 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.9526, allocations: 128.4 kB / 0.6025 GB, free: 12.58 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.9528, allocations: 16 kB / 0.6025 GB, free: 12.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004464/0.9532, allocations: 15.98 kB / 0.6025 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/0.9534, allocations: 39.95 kB / 0.6025 GB, free: 12.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.398e-05/0.9534, allocations: 16 kB / 0.6025 GB, free: 12.49 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006402/0.9541, allocations: 287.1 kB / 0.6028 GB, free: 12.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.9541, allocations: 0 / 0.6028 GB, free: 12.21 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001216/0.9553, allocations: 148 kB / 0.603 GB, free: 12.07 MB / 442.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.000345/0.9557, allocations: 131.1 kB / 0.6031 GB, free: 11.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002162/0.9579, allocations: 0.6611 MB / 0.6037 GB, free: 11.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.9579, allocations: 192 / 0.6037 GB, free: 11.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.9591, allocations: 426.2 kB / 0.6041 GB, free: 10.82 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/0.9607, allocations: 127 kB / 0.6043 GB, free: 10.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004801/0.9655, allocations: 1.645 MB / 0.6059 GB, free: 9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001088/0.9667, allocations: 0.9294 MB / 0.6068 GB, free: 8.043 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002587/0.9669, allocations: 39.44 kB / 0.6068 GB, free: 8.004 MB / 442.7 MB Notification: Performance of SimCode: time 1.183e-06/0.967, allocations: 0 / 0.6068 GB, free: 8.004 MB / 442.7 MB Notification: Performance of Templates: time 0.02586/0.9928, allocations: 9.156 MB / 0.6157 GB, free: 14.84 MB / 458.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)